Vector graphics guide

How to convert PNG or JPG to SVG (vectorize an image)

By Taha Tahir Ali · Updated

Short answer

Open the image in a vector editor such as Raaj Draw or Inkscape, select it, open Path > Trace Bitmap (Shift+Alt+B), pick Brightness cutoff for a one-colour logo or Multiple scans > Colors for several colours, click Apply, then delete the original image and save as SVG. Simple, high-contrast images trace best.

A PNG or JPG is a grid of pixels: enlarge it and it gets blurry. An SVG describes shapes with paths, so it stays sharp at any size, from a visiting card to a hoarding. Converting a pixel image to a vector is called tracing or vectorizing.

What traces well (and what doesn't)

  • Good: logos, icons, line drawings, signatures, stamps, text on a plain background, cartoon-style art with flat colours.
  • Poor: photographs, gradients, soft shadows and blurry or tiny images. Tracing a photo produces thousands of blobs; it is rarely useful.

If the source is a small, blurry logo, results will be rough. Ask for the original file first; it may already exist as AI, PDF, EPS or CDR, which Raaj Draw can open directly.

Trace an image step by step

These steps are for Raaj Draw, which is based on Inkscape 1.4, so they work the same in Inkscape.

  1. Import the image: File > Import (Ctrl+I), choose the PNG or JPG, and click OK.
  2. Select it with the selection tool (S).
  3. Open Path > Trace Bitmap (Shift+Alt+B).
  4. Choose a mode:
    • Single scan > Brightness cutoff for one-colour logos, signatures and line art. Raise or lower the Threshold until the preview shows clean edges.
    • Single scan > Edge detection when you want outlines of shapes rather than filled areas.
    • Multiple scans > Colors for logos with several flat colours. Set Scans to the number of colours in the logo (plus one for the background); tick Remove background if it adds a background shape.
  5. Smooth the result: Speckles removes small dots (raise it for noisy scans); Smooth corners rounds jagged corners; Optimize reduces the number of nodes.
  6. Click Apply. The vector is placed on top of the original image.
  7. Move the vector aside (or delete the original image) and compare. Then delete the image.
  8. Save: File > Save As, choose Plain SVG for sharing with other programs, or export PNG and PDF for print.

Clean up the trace

  • Node tool (N): select the path to see its nodes; delete stray nodes and drag curves into shape.
  • Path > Simplify (Ctrl+L): reduces nodes on wobbly curves. Apply once or twice; too much rounds sharp corners.
  • Replace traced text. Traced lettering is never as clean as real type. Retype it with the Text tool in the same or a similar font, then Path > Object to Path if the file is going to a printer.
  • Fix colours: in Fill and Stroke (Shift+Ctrl+F), set each colour to the exact brand value.

Common mistakes

  • Tracing a low-resolution image. Upscaling first doesn't add detail. Use the largest original available.
  • Leaving the bitmap in the file. The SVG then still contains the pixel image underneath. Delete it after tracing.
  • Too many scans. Twenty colour scans on a three-colour logo create overlapping shapes. Match scans to the real colours.
  • Calling it done without zooming in. Check edges at 400% before sending to a printer.

Frequently asked questions

Is there a free way to convert PNG to SVG?

Inkscape is free and has Trace Bitmap. Raaj Draw is a paid build of Inkscape with a monthly plan and a free 15-minute demo; online converters also exist but upload your image.

Can I convert SVG back to PNG?

Yes. File > Export (Shift+Ctrl+E), choose PNG and the size or DPI you need.

What resolution should the PNG be for tracing?

As large as possible; a logo at least 1000 px wide traces far more cleanly than a 200 px icon.

Will the SVG be editable in Illustrator or CorelDRAW?

Yes. SVG is a standard format. Save as Plain SVG for the best compatibility.

Sources and further reading

Raaj Software

May you never need us again.

We build solutions that make themselves indispensable, not problems that make us indispensable.

A philosophy of customer independence, not customer dependency.