Can ChatGPT make SVG files?
ChatGPT can write SVG code, because SVG is text: an XML-based markup language that describes shapes. For simple shapes, icons and diagrams you can describe in words, asking for the code works.
The pictures its image generator makes are a different kind of file. They are raster images, made of pixels, and the same goes for the pictures Midjourney and Gemini make. OpenAI's image generation guide, for example, lists PNG, JPEG and WebP as its output formats. To turn such a picture into vector paths, it has to be traced: the areas of color are found and outlined as paths.
Which AI images trace well
Tracing reduces an image to at most 24 flat colors and outlines each one, so the images that trace cleanly are the ones that already look like that:
- flat, solid colors;
- bold, clean outlines;
- few colors;
- no gradients, soft shading or texture;
- a plain or transparent background;
- a large image, with no small text.
Sticker, logo, icon and clip-art styles usually tick every box. Photo-real images, painterly styles and heavy texture come out as flat color areas, like a poster.
Prompt for images that trace cleanly
Add phrases like these to your prompt:
- "flat illustration"
- "4 solid colors"
- "no gradients, no shading, no texture"
- "thick clean outlines"
- "plain white background"
- "no text"
For example:
A flat illustration of a fox head, 4 solid colors, no gradients, no shading, no texture, thick clean outlines, centered on a plain white background, no text
The result is still a PNG or another raster file; the style only makes it trace cleanly. Some generators can make a transparent background when you ask for one; OpenAI's image generation guide, for example, documents a transparent background option. If yours cannot, ask for a plain single-color background and turn on Remove background when you convert.
Convert the AI image to SVG
- Download the image from the AI tool. PNG, JPG and WebP are all accepted, so a .webp file needs no conversion first.
- Upload it in the box on this page.
- Choose a preset: Standard for most images, Cricut / Vinyl if you will cut it (PNG to SVG for Cricut and Silhouette), or Line art / Stencil for black and white.
- Move the Colors, up to slider to the number of colors you asked for in the prompt, plus one if an opaque background stays in the image (or turn on Remove background).
- Check the free watermarked preview, with no sign-up, and re-trace if the shapes are off.
- Unlock the clean SVG for 1 credit (1 free with an account).
Images over 2048 px on the long side are scaled down to that size before tracing.
Questions
Does png2svg.art use AI?
No. Tracing is deterministic image processing, not AI: it groups the pixels into flat colors and outlines each color with straight segments and curves. It does not generate images.
Why did my AI image download as WebP?
Some AI tools save their images as WebP, a compact image format. png2svg.art accepts WebP as it is, so you can upload the file without converting it; see WebP to SVG.
Can I sell an SVG made from an AI image?
That depends on rights png2svg.art does not control. You keep the rights you already have in the image, and the terms of the AI tool you used still apply, so check them. png2svg.art grants no license of its own.
How many colors should I use?
The number of colors you asked for in the prompt, plus one if an opaque background stays in the image (or turn on Remove background). The slider goes from 2 to 24, and if two colors you wanted come out as one, go one higher. More in how many colors a traced SVG should have.