Redraw a PNG Icon as SVG Code

Attach an icon or interface glyph with a transparent background. Entro looks at it and writes SVG code that you copy and save as an .svg file. This is an approximate redraw. It does not vectorize screenshots, photos or detailed artwork, and there is no .svg download.

Redraw the cart icon on a transparent background in the attached PNG as SVG code. Use viewBox 0 0 24 24 and draw the shape with strokes only: stroke width 2, round caps and joins. Use currentColor for the color so the icon picks up the color of the text around it. Add no background and keep it transparent. Write a filled version at the same size as well. Give the code in two separate blocks and tell me where it differs from the original icon.

Blue parts are the places to fill in with your own details. Tab selects the next one, Enter sends, Shift and Enter starts a new line.

This tool runs on Entro.

Example results

It looks at the icon and writes its code

Redrawn by eye, with no pixel conversion

Entro does not trace a PNG into vectors. It looks at the icon and writes the same shape in code with lines, circles and curves. For flat icons with few parts the result is close to the original; it may not be identical.

The background stays transparent

Whatever is not drawn in an SVG is empty. Tell Entro to add no background and the icon works on dark and light surfaces alike. The semi-transparent edge smoothing in a PNG is not carried into the code; edges are drawn crisp.

Code that is ready for an interface

You set the viewBox, the stroke width and the color in your request. With currentColor the icon takes the color of the text it sits in. The code arrives in a highlighted block; press Copy and embed it in your page or save it as an .svg file.

One rule for the whole icon set

You can attach up to 5 images per message. Send five icons together and ask for all of them with the same viewBox, stroke width and corner radius, so PNGs collected from different places look like one family. In the next message say "write filled versions of all of them" or "make the stroke 1.5" and Entro updates the code by the same rule.

PNGs this does not work for

Screenshots, photos, shaded or gradient illustrations and crests with many parts are too detailed to redraw in code, and the result is a rough outline. Don't expect pixel art to come back with every pixel as a square: Entro miscounts the grid. Images like these need a vector program that traces, or drawing by hand.

Moving from a transparent PNG to SVG code

  • Have your PNG menu, search and cart icons rewritten as SVG code that follows one rule. SVG stays sharp when enlarged and can take its color from the text color.

Icon code Entro has written

  • Entro's answer

    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M3 10.5L12 3l9 7.5" /> <path d="M5 9.5V20a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9.5" /> <path d="M10 21v-6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v6" /> </svg>

    Draw a house icon as SVG code: viewBox 0 0 24 24, one color, outline only, stroke width 2, round caps and joins. A triangular roof, a square body and a small door in the middle. Use currentColor and add no background. Give the code in one block.

  • Entro's answer

    Here is the outlined version: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M1 2h3.28a1 1 0 0 1 .97.76l2.5 10.48a2 2 0 0 0 1.95 1.53h8.72a2 2 0 0 0 1.93-1.48L22 7H6" /> <circle cx="10" cy="20.5" r="1.5" fill="currentColor" stroke="none" /> <circle cx="18" cy="20.5" r="1.5" fill="currentColor" stroke="none" /> </svg> Here is the filled version…

    Write a shopping cart icon in viewBox 0 0 24 24: a cart body with an angled handle and two small wheels below. Give the outlined version with a stroke of 2 first, then a filled version at the same size, in separate code blocks. Use currentColor and keep the background transparent.

  • Entro's answer

    Shared attributes for all three icons: • viewBox="0 0 24 24" • fill="none" • stroke="currentColor" • stroke-width="1.5" • stroke-linecap="round" • stroke-linejoin="round" Search <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"> <circle cx="11" cy="11" r="7" /> <path d="m20 20-4.35-4.35" /> </svg> User <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"…

    Write three icons that follow one rule: search (a magnifying glass), user (head and shoulders) and settings (three horizontal sliders). All in viewBox 0 0 24 24, stroke 1.5, round caps, currentColor. Give each icon its own code block and state the shared rules once at the top.

  • Entro's answer

    Here are the three SVG status badges: Success <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32" fill="none"> <circle cx="16" cy="16" r="14" fill="#1e8e3e"/> <path d="M9 16.5l4.5 4.5 9.5-9.5" stroke="#ffffff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/> </svg> Warning <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32" fill="none"> <path d="M16 3.5L29 27H3L16 3.5z" fill="#f9ab00"/> <path d="M16…

    Write SVG for three status badges: success (a white check in a green #1e8e3e circle), warning (an exclamation mark in a yellow #f9ab00 triangle) and error (a cross in a red #d93025 circle). All in viewBox 0 0 32 32, flat fills, no shadows, transparent background. Put each in its own code block.

  • Entro's answer

    To make an SVG icon adapt to the surrounding text color, replace the hardcoded color (#000000) with currentColor. This CSS keyword automatically inherits the active color property of the parent element. Here is the updated SVG and an example placing it inside a link: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <style> /* Base link styling */ .icon-link { display: inline-flex; align-items: center; gap: 8px; color: #2563eb; /* Default…

    Edit this icon so it takes the color of the text around it, and show with an HTML example how to place it inside a link: <svg viewBox="0 0 24 24"><path d="M4 12h16M12 4l8 8-8 8" stroke="#000000" stroke-width="2" fill="none"/></svg>. Add the CSS line that changes the color on hover.

  • Entro's answer

    Here is the simplified SVG optimized for a 16x16 pixel grid: <svg viewBox="0 0 16 16" width="16" height="16"> <circle cx="8" cy="8" r="7" fill="#1a73e8"/> <path d="M4.5 8.5l2.5 2.5 4.5-5" stroke="#fff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" fill="none"/> </svg> What was removed and changed 1. Inner decorative ring removed: The thin inner circle (stroke-width="1") would render at roughly 0.25px at a 16x16 display size, causing muddy anti-aliasing artifacts and…

    Simplify this SVG so it still reads at 16x16 and tell me what you removed: <svg viewBox="0 0 64 64"><circle cx="32" cy="32" r="30" fill="#1a73e8"/><path d="M20 34l8 8 16-18" stroke="#fff" stroke-width="3" fill="none"/><circle cx="32" cy="32" r="26" stroke="#fff" stroke-width="1" fill="none"/></svg>

How to turn a PNG icon into SVG code

  1. 1

    State the size and color

    Edit the highlighted parts of the request above: which icon, which viewBox, which color. Sending it opens the Entro chat. Without an account you sign up first, and your request is kept.

  2. 2

    Attach the PNG

    Add the icon to the chat: up to 5 images per message, each up to 4 MB. Entro writes the SVG code for every icon in its own code block.

  3. 3

    Copy and compare side by side

    Take the code with the Copy button, save it to a file with the .svg extension and open it in your browser next to the original PNG. Tell Entro what is off and it corrects the code at the same size.

Frequently asked questions

Does it automatically convert my PNG into an SVG file?

No. Entro does not trace a PNG into vectors and there is no .svg download. It looks at a flat icon and writes SVG code in the chat, which is an approximate redraw. You take the code with the Copy button and save it to a file with the .svg extension yourself, or embed it straight into your page.

Is the transparent background kept?

As long as no background is drawn in the SVG code, the backdrop is empty, which means transparent. Write "no background" in your request and check the code for a rectangle that covers the whole area. Semi-transparent shadows and edge smoothing from the PNG do not carry over; ask for an opacity value separately if you need one.

Can it convert a screenshot or a photo saved as PNG?

You won't get a usable result. Screenshots and photos carry a great many colors and details, and Entro cannot draw them one by one in code. If you crop a single icon out of a screenshot and attach it, Entro will try to redraw that icon. Moving a whole screen to vectors is beyond what this page can do.

Can it convert pixel art to SVG?

It cannot do so reliably. In pixel art the position of every square matters, and when Entro looks at the image it cannot count the squares exactly and may shift rows. You can try with a very small drawing, but you will have to check the result square by square. Larger pixel art needs a tool that turns each pixel into a square.

How do I add the code to my site?

There are two ways. Save the code to a file with the .svg extension and use it like an image, or paste the code straight into your page's HTML. With the second way, if you used currentColor, the icon takes the color of the surrounding text. Tell Entro how you plan to use it and it adds sample HTML and CSS lines.

Will the result match the original icon?

It will be close and may not be identical. Stroke width, corner radius and spacing can drift a little. Save the code to a file, open it next to the original PNG and describe the difference: "make the handle a bit bigger", "move the wheels down". For brand icons that need pixel precision, leave the final check to a designer.

Can I convert several icons at once?

You can attach up to 5 images per message, each up to 4 MB. Send five icons together and ask for a separate code block for each. With many icons a long answer does not fit in one message; Entro writes part of it and you type "continue".

Can I ask for an icon from scratch, with no PNG?

If you describe the icon in words, Entro writes the SVG code without a PNG: "24x24, one color, a house icon with rounded corners", for example. For a colorful, detailed logo draft, look at the logo generator in Canvas; Canvas output is a PNG or JPG image, and it does not give you SVG.

More AI tools

  • JPG to SVG Converter

    Attach a JPG of a scanned logo or sketch and Entro redraws the simple shapes as SVG code. It does not trace photos or give you an .svg file to download.

  • Restaurant Logo Prompt: 8 Ready-to-Use Prompts for ChatGPT

    AI Logo Generator

    Type your brand name and style, and Canvas draws four logo options in one go. A logo template, flat vector presets and your own color codes. Start free.

  • AI HTML Code Generator

    Entro writes HTML and CSS in chat for a form, a table, an email template or a single-file page. Copy the code, save it and open it in your browser.

  • Veterinary Clinic Website: Veterinary Clinic

    AI Website Builder

    An AI website builder that builds what you describe. Write a few sentences, preview the site next to the chat, fix it by asking and publish it for free.

  • PNG to Word Converter

    Attach a PNG screenshot. Entro reads the text and tables in it and lays them out as a Word document you download as .docx. The image itself is left out.

  • PDF to Word Converter

    Attach a PDF and Entro reads the text and rewrites it as a Word document with headings, lists and tables. Download it as .docx. Page layout is not kept.

You describe it, Entrobase builds it.

Create with Entrobase