A JPG is a grid of pixels, and pixels get blurry when you enlarge them. If your JPG is a signature, a hand drawing, a stamp or a simple logo, you can trace it into an SVG, which is a set of shapes that stays sharp at any size. The JPG to SVG tool does this in your browser. This guide covers the settings that decide whether you get a clean vector or a messy one, and the limits you should expect.
What is happening
The tool does not recognise objects; it traces outlines. In Black & white mode it uses Potrace, a well-known tracing method, to find the dark shapes in your picture and draw them as paths of one color. In Color mode it uses a color vectoriser that keeps the colors of the image. Tracing works best on pictures with clear shapes and good contrast, such as logos, icons, line art and signatures. A photograph has too many tones to turn into a clean vector.
Step by step
- Drop the JPG on the page, paste it, or choose a file. The conversion starts by itself.
- Choose a Mode: Black & white for a one-color trace or Color to keep colors.
- In black and white, adjust Detail (threshold) from 1 to 255 and Remove specks (size) from 1 to 50. The SVG updates after a moment.
- Download the .svg file, or copy the SVG code to paste it into a web page or a design tool.
What the two sliders do
| Slider | Low value | High value |
|---|---|---|
| Detail (threshold) | Fewer shapes; thin lines may vanish | More of the picture becomes black; fine lines appear, but so does paper texture |
| Remove specks (size) | Keeps tiny dots, including dust from the scan | Drops small blobs; at too high a value it drops real details such as dots on an i |
The tool says that higher values of Detail keep more detail. Work like this: raise Detail until your thin lines are complete, then raise Remove specks until the dust disappears but the real details stay. Compare with the source at each step.
Prepare the scan first
Most poor traces come from poor scans, not from the settings. Before converting:
- Scan or photograph on plain white paper in even light, with no shadow across the page.
- Use dark ink. Pencil and light pen produce faint lines that fall below the threshold.
- Crop out the borders with the Image Crop tool, so edges of the scanner do not become black shapes.
- Straighten a tilted scan with Rotate and Flip before you trace it.
- Use a large enough image. A tiny JPG gives blocky shapes. If the source is small, try the Image Upscaler first.
Color or black and white?
- Choose black and white for signatures, stamps, line drawings, silhouettes and one-color logos. The result is a single color you can recolor later in CSS or a design tool.
- Choose Color for flat multi-color artwork such as a simple logo or cartoon. Gradients and soft shadows turn into stepped bands.
- Photos are poorly suited to either. They produce large files and posterised results.
Limits
- The black and white trace works on a copy no wider than 1024 pixels, so extremely fine details in huge images are simplified.
- The result is only as good as the shapes in the source. A smudged JPG will give smudged shapes.
- JPG compression leaves noise around edges, which can create little extra shapes. That is what Remove specks is for.
- The SVG is not a text conversion. Lettering becomes shapes, not editable text.
After tracing
Check the SVG by opening it in a browser at a big size; jagged curves will show up. Reduce its file size with the SVG Optimizer. If you need a bitmap again at an exact size, the SVG to PNG tool exports one. For a PNG source, the PNG to SVG tool uses the same engine and has its own guide.
Common problems
- Everything is a black blob. Detail is too high for the contrast of the scan. Lower it.
- Lines are broken. Detail is too low, or the ink is too faint. Raise Detail or rescan with darker ink.
- A rough, wobbly outline. The source is low resolution. Use a larger scan.
- "Cannot convert this image" error. The file may be damaged or an unsupported format. Try another file.
A worked example: a handwritten signature
You sign a sheet of white paper with a dark pen, photograph it in daylight and crop it tight. Drop the JPG into the tool in Black and white mode. At first the SVG may be a gray smear, because the paper is slightly gray and the threshold is too high. Lower Detail until the paper turns blank, then raise it a little until the thinnest strokes are complete. A few dust specks may remain, so raise Remove specks step by step until they vanish, but stop before the dot of an i is lost. Download the SVG and open it at a large size in a browser. If the curves look smooth and the signature is complete, you can place it in a document, where it scales without blur.
Saving and reusing the result
Keep the original JPG next to the SVG, in case you want to trace it again with different settings later. Name the SVG after what it is, such as signature-black, so you can find it. When placing it on a colored background, remember that a black and white trace has a transparent background, so it works on any color, and you can change its fill color in the code to match your design.
FAQ
Is my image uploaded?
No. The tracing happens in your browser.
Can I recolor the SVG?
Yes, in a black and white trace the shape has one fill color you can change in the code or in a design tool.
Will my signature be legal?
The tool just converts the picture. Whether a digital signature is accepted depends on the document and your country.