PNG to SVG (Tracing)

Convert PNG to SVG online: turn a black logo, signature or line drawing into a one-colour vector by setting a brightness threshold, done in your browser.

Runs in your browser. Files never leave your device.

Drop your image here or click to browse

Supports PNG, JPG, JPEG, WEBP · Max size 25MB

About the PNG to SVG (Tracing)

Convert PNG to SVG for simple, high-contrast artwork: black logos, signatures, stamps, line drawings, icons and text. Upload a PNG, JPG or WebP, move the threshold slider until the shape looks right, pick a fill colour and download a one-colour vector SVG. Craft projects, engraving, print work and web icons are the usual reasons: anywhere a solid silhouette is needed as a vector.

The conversion is plain arithmetic on the pixels, done in this page, so the picture stays on your device. The tool turns dark areas into a single filled shape; it isn't a full-colour photo vectorizer, so it works best when the picture is already close to black and white.

How the PNG to SVG converter works

First the image is scaled so its longer side is at most 800 pixels; smaller images keep their own size. Each pixel's brightness is then worked out with the standard luma weights, which count green as brighter than red and red as brighter than blue, just as the eye does. A pixel becomes part of the shape when its brightness is below the threshold and it is not transparent.

The tool then scans the image row by row. Each unbroken stretch of dark pixels in a row becomes one rectangle one pixel high, and all the rectangles are joined into a single SVG path in the colour you chose, with an outline half a pixel wide that hides the hairline seams between rows. The SVG keeps the size of the scaled image as its viewBox, so it fills whatever space you give it.

Because the shape is built from pixel rows, the edges follow the original pixels exactly. Curves keep the stepped edge of the source at 800 pixels; the SVG can be enlarged as much as you like without blurring, but it will not invent smoother curves than the picture had.

brightness = 0.299 × R + 0.587 × G + 0.114 × B   (0 = black, 255 = white)
pixel is filled when brightness < threshold and alpha > 50
scale = min(1, 800 ÷ longer side)

Assumptions and limits

  • The output has one colour. Coloured logos come out as one silhouette of every area darker than the threshold; to keep several colours, convert each colour separately from images that contain only that part.
  • Images larger than 800 pixels on their longer side are reduced to 800 before conversion, so very fine detail in a big image can merge together.
  • Transparency counts: pixels with an alpha of 50 or less (out of 255) are always left empty, and the background of a transparent PNG is never filled.
  • Photos, gradients and soft shadows don't convert well: they become speckled areas because each pixel is either in or out. Increase the contrast first, or start from a clean scan.
  • Files up to 25 MB are accepted in PNG, JPG and WebP. The fill colour starts as indigo (#6366f1); change it to black first if that's what you need. Busy images with many small dots make larger SVG files, roughly 12 to 20 bytes for every run of dark pixels.

Worked examples

A signature for documents

Photograph a signature on white paper and upload it. At the default threshold of 128 the dark ink is kept and the paper drops out. If faint strokes go missing, move the slider towards Dark details, to around 170, so lighter grey ink is included too. Choose black or dark blue as the fill and download.

A large logo for engraving or print

A 2400 × 1200 black logo on a transparent background is reduced to 800 × 400 and every opaque dark pixel becomes part of one path. Engraving and print software fills it as one solid shape. A vinyl cutter or plotter follows outlines instead, and here each pixel row is its own thin strip, so merge the strips into one outline in a vector editor first (Path > Union in Inkscape does this) before you send it to cut.

800 ÷ 2400 = 0.333
2400 × 0.333 = 800, 1200 × 0.333 = 400

Why a yellow area disappears

A yellow star (255, 255, 0) has a brightness of about 226, far above the default threshold, so it is treated as background. Move the slider to 240, its highest setting, to include it, or darken that part of the image before converting.

0.299 × 255 + 0.587 × 255 + 0.114 × 0 = 225.9

Which colours are filled at a given threshold

Brightness of common colours by the formula above, and the lowest threshold on the slider that turns them into shape.

Colour (RGB)BrightnessFilled at 128 (default)?Filled from threshold
Black (0, 0, 0)0Yes10 (the minimum)
Navy blue (0, 0, 128)14.6Yes15
Pure red (255, 0, 0)76.2Yes77
Purple (128, 0, 128)52.9Yes53
Pure green (0, 255, 0)149.7No150
Orange (255, 165, 0)173.1No174
Sky blue (135, 206, 235)188.1No189
Yellow (255, 255, 0)225.9No226
White (255, 255, 255)255NoNever (slider stops at 240)

How to use the PNG to SVG (Tracing)

  1. Upload the image. Drop in the picture (PNG, JPG or WebP, 25 MB at most), ideally dark artwork on a light or transparent background.
  2. Adjust the threshold and colour. Slide Trace Threshold towards Light details or Dark details until the preview shows the shape you want, then set the fill colour.
  3. Download the SVG. Press Download SVG to save the file, named after your image with _traced.svg at the end.

Frequently asked questions

How do I convert a PNG to SVG?

Upload the PNG, check the vector preview and adjust Trace Threshold until the dark parts you want are filled and the background is empty. Pick a fill colour and press Download SVG. The file opens in Illustrator, Inkscape, Figma, Cricut Design Space and other vector programs.

Can it vectorize a colour logo or a photo?

Only as one colour. Every pixel is either part of the shape or not, so a photo becomes a black-and-white style silhouette and a multi-colour logo becomes one solid shape. For artwork with separate colours, convert each part on its own and layer the SVGs in a vector editor.

What does the threshold slider do?

It sets how dark a pixel must be to become part of the vector. Lower values towards Light details keep only the darkest areas, which cleans up a grey background. Higher values towards Dark details also keep lighter strokes and shading, which helps with faint pencil or a pale scan.

Will the SVG have smooth curves?

Only as smooth as the source. It has the same edges as the pixels it came from, at up to 800 pixels across. A clean, large source gives edges that look smooth at normal sizes; a small or blurry source gives visible steps. For the smoothest result, upload the largest and sharpest version of the image you have.

Can I use the SVG with a cutting machine?

Yes, after one extra step. The path is built from one-pixel rows, which fill as a solid shape but give a cutter hundreds of separate strip outlines. Open the SVG in a vector editor and merge it into a single outline first, for example with Path > Union in Inkscape. Engraving in fill mode and printing work without that step.

Is my image uploaded?

No. Scaling, the brightness test and building the SVG are all done by the code in this page. The image is never transmitted, so signatures and unreleased logos stay private.

This tool runs entirely in your browser. What you enter or upload stays on your device and is never sent to our servers.