{"id":136,"date":"2026-10-18T21:10:30","date_gmt":"2026-10-18T21:10:30","guid":{"rendered":"https:\/\/refracttools.com\/blog\/?p=136"},"modified":"2026-10-18T21:10:30","modified_gmt":"2026-10-18T21:10:30","slug":"convert-png-to-svg","status":"publish","type":"post","link":"https:\/\/refracttools.com\/blog\/image-optimisation\/convert-png-to-svg\/","title":{"rendered":"How to convert a PNG or JPG to SVG (and when not to)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">To convert a PNG or JPG to SVG, you trace it: software groups similar colours into areas, finds the outline of each one and redraws it as smooth vector curves. Tracing works well for logos, icons, line art and flat illustrations, and poorly for photos. The <a href=\"https:\/\/refracttools.com\/image-to-svg\/\">Refract image to SVG converter<\/a> traces in your browser, so you can pick the number of colours and smoothness, remove the background and download an optimised SVG without uploading the file.<\/p>\n\n\n\n<div class=\"wp-block-group is-style-refract-takeaways is-layout-constrained wp-block-group-is-layout-constrained\">\n<h3 class=\"wp-block-heading\">Key takeaways<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A real conversion traces the image into paths. Some &#8220;converters&#8221; just wrap the original pixels inside an SVG file, which doesn&#8217;t make it sharper.<\/li>\n\n\n<li>Use the largest, cleanest copy of the image you have. Tracing can&#8217;t recover detail that isn&#8217;t there.<\/li>\n\n\n<li>Fewer colours give cleaner, smaller files. Most logos need between two and eight.<\/li>\n\n\n<li>Photos make huge, blotchy SVGs. Keep them as JPEG, WebP or AVIF.<\/li>\n<\/ul>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">What is the difference between PNG and SVG?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A PNG or JPG is a raster image: a grid of coloured pixels. Enlarge it past its original size and the browser has to invent pixels, so edges go soft or blocky. An SVG is a vector image: a set of shapes described with coordinates and curves. The browser redraws those shapes at whatever size is needed, so the same file is sharp on a phone, a 5K monitor and a printed banner.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><div class=\"table-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"Scrollable table\"><table><thead><tr><th><\/th><th>Raster (PNG, JPG, WebP)<\/th><th>Vector (SVG)<\/th><\/tr><\/thead><tbody><tr><td>Made of<\/td><td>Pixels<\/td><td>Paths, shapes and text<\/td><\/tr><tr><td>Scaling<\/td><td>Blurs when enlarged<\/td><td>Sharp at any size<\/td><\/tr><tr><td>Best for<\/td><td>Photos and complex textures<\/td><td>Logos, icons, illustrations, diagrams<\/td><\/tr><tr><td>Editing colours<\/td><td>Repainting pixels<\/td><td>Changing a fill value<\/td><\/tr><tr><td>File size<\/td><td>Grows with dimensions<\/td><td>Grows with the number of shapes<\/td><\/tr><\/tbody><\/table><\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Does saving a PNG as SVG make it a vector?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Not by itself. Some online converters, and &#8220;Save as SVG&#8221; in a few apps, simply embed the original pixels inside an SVG wrapper using an <code>&lt;image&gt;<\/code> element. The file ends in .svg, but it is still a bitmap and blurs exactly like the PNG did. It is also usually bigger, because the image is stored as Base64 text.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can tell by opening the file in a text editor. A real vector SVG is mostly <code>&lt;path d=\"M12 4 C\u2026\"&gt;<\/code> elements. An embedded bitmap contains a long <code>data:image\/png;base64,<\/code> string.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How do you convert a logo to SVG?<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Find the best source.<\/strong> Ask for the original logo file first; designers often have the vector already. Otherwise use the largest, sharpest PNG you can find, not a small screenshot.<\/li>\n\n\n<li><strong>Choose the image type.<\/strong> In the converter, &#8220;Logo&#8221; or &#8220;Black and white&#8221; sets sensible starting values.<\/li>\n\n\n<li><strong>Set the number of colours<\/strong> to match the logo. A two-colour logo traced with 16 colours gains dozens of pointless shapes in the anti-aliased edges.<\/li>\n\n\n<li><strong>Adjust smoothness and speck size.<\/strong> More smoothness gives cleaner curves; a larger speck size removes stray dots left by JPEG compression.<\/li>\n\n\n<li><strong>Remove the background<\/strong> if you need a transparent SVG.<\/li>\n\n\n<li><strong>Download and check it<\/strong> at a large size, then optimise it for the web.<\/li>\n<\/ol>\n\n\n<aside class=\"tool-card tool-card--inline\"><span class=\"swatch\" style=\"background:linear-gradient(135deg,#5ce1c6,#1e3a8a)\" aria-hidden=\"true\"><\/span><div class=\"tool-card__body\"><p class=\"tool-card__eyebrow\">Free tool<\/p><p class=\"tool-card__name\">Image to SVG converter<\/p><p class=\"tool-card__blurb\">Trace PNG and JPG logos and art into clean, scalable SVG.<\/p><\/div><a class=\"btn primary\" href=\"https:\/\/refracttools.com\/image-to-svg\/\">Try it free <span aria-hidden=\"true\">\u2192<\/span><\/a><\/aside>\n\n\n\n<div class=\"wp-block-group is-style-refract-callout is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\"><strong>JPEG artefacts:<\/strong> JPEG compression leaves faint blocks and halos around sharp edges, and the tracer will dutifully turn them into tiny shapes. If you only have a JPG, raise the speck size and lower the colour count before tracing.<\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Why does my traced SVG look different from the original?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Tracing simplifies. It reduces the image to a set number of flat colours and fits smooth curves to the edges, so gradients become bands, tiny details may merge, and very sharp corners can soften slightly. For a logo that is usually an improvement. If it is too simple, increase the colours, lower the smoothness or choose the fine detail setting.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For fine-tuning afterwards, open the SVG in Figma, Illustrator or Inkscape, or paste a single path into the <a href=\"https:\/\/refracttools.com\/svg-path-editor\/\">SVG path editor<\/a> to see and drag every point.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Can you convert a photo to SVG?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can, but the result is a poster-like effect rather than a faithful copy. A photo has smooth gradients and fine texture everywhere, so tracing produces thousands of small shapes. The SVG can easily be larger than the JPEG and still look blotchy. Use photo mode as a creative effect; for actual photos on a website, use a compressed raster format and responsive sizes instead.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using the SVG with Cricut, Canva or a laser cutter<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The download is a standard SVG made of filled paths, so it opens in Cricut Design Space, Canva, Inkscape and laser cutter software. For cutting, use &#8220;Black and white&#8221; mode or very few colours, because every colour becomes a separate layer and every shape a separate cut. Turn on background removal so the machine doesn&#8217;t try to cut a rectangle around your design.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Making the SVG small for the web<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Traced SVGs often contain more decimal places and points than they need. The Refract converter runs SVGO on the output by default. For files from other tools, use the <a href=\"https:\/\/refracttools.com\/svg-optimiser\/\">SVG optimiser<\/a>, and see our guide to <a href=\"\/blog\/image-optimisation\/optimise-svg-files\/\">optimising SVG files without breaking them<\/a>. If the SVG is going into CSS as a background or icon mask, the <a href=\"https:\/\/refracttools.com\/svg-to-css\/\">SVG to CSS converter<\/a> turns it into a data URI.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Is it safe to upload my logo to a converter?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Many online vectorisers upload your file to their server, and some keep it or add it to a public gallery. That matters for client logos before a launch or anything under NDA. The <a href=\"https:\/\/refracttools.com\/image-to-svg\/\">Refract image to SVG converter<\/a> traces in your browser using a background worker, so the file never leaves your device and there is no limit on how many you convert.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Last checked: October 2026.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Sources: <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/SVG\" rel=\"noopener\" target=\"_blank\">MDN: SVG introduction<\/a>, <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/SVG\/Element\/image\" rel=\"noopener\" target=\"_blank\">MDN: &lt;image&gt; SVG element<\/a>.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Converting a PNG or JPG to SVG means tracing it into vector paths. Here is how to get a clean result from a logo, how to spot a fake SVG that just wraps pixels, and why photos are better left as JPEG or WebP.<\/p>\n","protected":false},"author":1,"featured_media":135,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_refract_tool":"image-to-svg","footnotes":""},"categories":[9],"tags":[5,6,30],"class_list":["post-136","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-image-optimisation","tag-image-tools","tag-privacy","tag-svg"],"_links":{"self":[{"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/posts\/136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/comments?post=136"}],"version-history":[{"count":1,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/posts\/136\/revisions"}],"predecessor-version":[{"id":170,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/posts\/136\/revisions\/170"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/media\/135"}],"wp:attachment":[{"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/media?parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/categories?post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/tags?post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}