The short answer
To make an SVG file, pick the route that fits what you have. Trace a picture into an SVG with the JPEG to SVG converter, draw shapes and text in a free vector editor such as Inkscape, write the SVG code by hand in a text editor, or edit a ready made SVG in the free SVG editor on this site. Tracing is fastest when you already have an image. Drawing gives the most control. Writing code suits simple icons and shapes.
Choose the route that fits what you have
| Starting point | Route | Best for |
|---|---|---|
| A JPG, PNG or WebP picture | Trace it with a converter | Logos, icons and line art you already have as an image |
| A blank page and an idea | Draw in a vector editor | Original logos, icons and illustrations |
| A simple shape or icon | Write the SVG code | Circles, rectangles, simple icons and learning how SVG works |
| An SVG that needs a fix | Edit it in the browser editor | Changing colors, text or shapes in a file you already have |
Route 1: make an SVG from a picture
Tracing turns the pixels of a picture into vector paths. It is the fastest route when the artwork already exists as a JPG, PNG or WebP, and it works best for flat logos, icons and line art with few colors and clear edges.
- Open the JPEG to SVG converter for a JPG, or the PNG to vector converter for a PNG or WebP.
- Choose the image and a preset that matches it: a logo, silhouette or illustration preset is a good start.
- Pick a small color count for line art, or more colors for flat artwork with several colors.
- Compare the vector preview with the original, then download the SVG. Open it in a vector editor to clean up any rough edges.
Route 2: draw it in a vector editor
A vector editor lets you draw shapes, curves and text as real paths, so the result is a true SVG from the start, with no tracing and no guesswork. Inkscape is free and open source, and it saves SVG as its native format. Adobe Illustrator is the paid editor most design studios use, and it also saves and exports SVG.
- Open Inkscape or Illustrator and start a new document.
- Draw with the shape tools for circles, rectangles and polygons, and the pen tool for custom curves.
- Add text with the text tool and pick a font. Convert the text to paths before you share the file, so it looks the same on a computer without that font.
- Set the fill and stroke colors, group the parts that belong together, and save or export the file as SVG.
Route 3: write the SVG code yourself
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 120" width="200" height="120">
<rect x="10" y="10" width="110" height="100" rx="12" fill="#243d2e"/>
<circle cx="150" cy="60" r="40" fill="#c74b31"/>
</svg>The viewBox sets the internal coordinate system, here 200 units wide and 120 tall. The rect draws the dark green panel, with rx rounding its corners. The circle draws the red dot. Change a number, save the file with an .svg extension, and refresh the browser to see the change.
Save the file as plain text with the .svg extension, for example icon.svg. If your editor adds a .txt extension, rename the file so it ends in .svg.
Route 4: edit and check an SVG in the browser
If you already have an SVG file and only need to change a color, a word or a shape, you do not need to install software. Open the free SVG editor on this site, paste the SVG code, and edit it with a live preview.
- Open the SVG editor on this site.
- Paste the SVG code, or open an SVG file from your computer.
- Edit the code and watch the preview update. Change fill colors, move shapes, or edit text.
- Download the SVG when it looks right, or export a PNG copy for places that do not accept SVG.
Text, fonts and images inside an SVG
- Text typed in a vector editor stays editable until you convert it to paths. Convert it before sharing, or the file may show a different font on another computer.
- A font is not stored inside the SVG by default. If the font is missing where the file opens, the text falls back to another font.
- A photo placed inside an SVG stays a raster image. It does not become scalable, and it makes the file larger.
- Simple shapes, flat colors and clear lettering make the most reliable SVG files.
Common mistakes
- Tracing a photo and expecting a clean logo. Photos trace as rough, posterized shapes.
- Saving a PNG inside an SVG wrapper and calling it a vector. It is still pixels inside.
- Leaving text as live text with a rare font, so it changes on another computer.
- Forgetting the viewBox, so the SVG renders at an unexpected size or crops badly.
- Deleting the original picture or project file, so a new size or color means starting again.
Check the SVG before you use it
Open the finished SVG in a browser and zoom in close. Edges should stay sharp at every size, and text should read clearly. Check the file in the place it will be used, such as a website, a cutting machine app or a print shop, because each one reads SVG a little differently.
- Open the SVG in a browser and zoom to several sizes.
- Check it on a phone screen as well as a computer screen.
- If it is for a cutting machine, upload a test copy and check the cut lines before the real material.
- Keep the original SVG safe. Export PNG or PDF copies from it whenever another format is needed.
Sources
Written by Shahab Uddin. Published ; updated . Corrections are welcome through the contact page.