SVG, explained: turning a vector into PNG, JPG & PDF .

An SVG isn't a grid of pixels — it's a set of drawing instructions, which is why it stays razor-sharp at any size and weighs almost nothing. It's also why so many apps, sites, and printers refuse to open it. Here's what SVG really is, and when to rasterise it to a PNG, JPG, or PDF that works everywhere.

Last updated 2026-07-12

SVG is a set of instructions, not a grid of pixels

SVG stands for Scalable Vector Graphics, a W3C web standard: version 1.0 became an official Recommendation in September 2001, and the widely targeted 1.1 revision followed in 2003 (with a maintenance Second Edition in 2011). Unlike a photo, an SVG file is plain XML text. Instead of recording a colour for every pixel, it describes shapes — lines, curves, coordinates, fills, and strokes — as math. You can open one in an ordinary text editor and read the geometry line by line.

Because that drawing is recalculated from scratch at whatever size it's displayed, a 4 KB logo renders perfectly on a business card or a billboard: no blur, no extra bytes. PNG and JPG are the opposite. They're raster formats — a fixed grid where each cell holds one colour. Enlarge a raster and there's no new detail to invent, so edges turn soft or blocky. That single difference is why SVG is the default for logos, icons, and line art, and why it's the wrong tool for photographs, where a vector would need millions of tiny shapes to fake what a JPG stores with ease.

Why you end up converting to PNG or JPG anyway

For all its strengths, SVG hits a wall the moment it leaves a web page. Most social platforms and image-upload fields accept only PNG or JPG. Many email clients won't render SVG at all — Gmail, Yahoo Mail, and Outlook for Windows either ignore it or show a broken-image placeholder, and Microsoft has been actively winding down what little inline-SVG support Outlook had. Older office suites, plenty of CMS and e-commerce product-image uploaders, and much print and RIP software either can't parse SVG or reject it on sight.

There's also a deliberate reason some sites block it: an SVG can carry executable code (more on that below), so uploaders that worry about it simply refuse the format outright. Whenever one of these gatekeepers turns your SVG away, the fix is to rasterise it — bake the vector down into a fixed grid of pixels — so you hand over something that opens reliably everywhere.

PNG keeps transparency, JPG flattens it, PDF makes a document

The three export targets are not interchangeable. PNG has an alpha channel, so an SVG logo with a see-through background stays transparent — exactly what you want when you're placing a mark over a coloured banner or a photo. Its compression is lossless, so crisp edges and flat colour stay clean and sharp. For most SVGs that's the safe default: convert with the SVG to PNG tool.

JPEG has no transparency at all. Any transparent region gets filled with a solid colour — GotConvert's SVG to JPG tool lets you choose which, since the format forces the issue — and JPEG's lossy compression tends to smear sharp outlines and flat colour with visible artefacts. JPG only earns its place when the SVG is a dense, photo-like scene and small file size matters more than crisp edges.

PDF is the one you reach for when the destination is a document or a print shop rather than a screen. It's worth being precise here: a PDF can technically hold vector paths, but GotConvert's SVG to PDF tool renders the SVG and embeds it as a full-resolution image on a single PDF page, so the output is a fixed-resolution document, not an infinitely scalable one. That's ideal for sharing artwork, dropping a logo into a report, or handing a print shop a file it will accept. If you specifically need live vector paths preserved inside the PDF, a desktop tool like Illustrator or Inkscape is the right call.

Choosing an export size — and what you give up

The instant you rasterise, scalability is gone: the PNG or JPG is locked to the pixel dimensions you export, and nothing brings the math back. GotConvert renders each SVG at its own declared width and height, so the way to control the output resolution is to set those dimensions on the SVG before you convert. Pick the size for where the image will actually live — a 512x512 app icon, a 1200-pixel-wide web banner, and so on.

For high-DPI (Retina) screens, remember the nominal layout size is measured in CSS pixels, but the screen packs two or three device pixels into each one — so a 512px icon really wants somewhere around 1024 to 1536 actual pixels. Because a vector renders flawlessly at any size, just set the SVG to those true pixel dimensions; there's no quality cost for going bigger. For print, work backwards from the final physical size at roughly 300 DPI (a 4-inch-wide logo is about 1200 px). The rule of thumb is to export a little larger than you think you need — you can always shrink a raster cleanly, but you can never truly sharpen a blurry one back up. That one-way loss is the real price of leaving vector-land.

One caveat worth knowing: if your SVG pulls in web or system fonts, the converter draws with whatever fonts are available at that moment. If a font is missing, the text can shift or substitute — so if exact typography matters, convert your text to outlines in your design tool before exporting.

SVGs can run code — which is why this converts on your device

Because an SVG is just XML, it can legally contain <script> tags and event handlers like onload. That makes a booby-trapped SVG a well-documented cross-site-scripting vector, and it's one of the reasons some platforms won't accept the format at all. It also means any 'convert my SVG' service that uploads your file to a server is passing around something that may carry active code.

GotConvert's SVG converters run entirely inside your browser, drawing the file with the same engine your browser already uses to display SVGs — and browsers deliberately disable scripting when an SVG is rendered as an image, so nothing in the file executes during conversion. Your artwork is never uploaded: a logo draft, unreleased client work, anything confidential stays on your machine. And because the file that comes out is plain pixels, it can't carry a live script at all — which is exactly why the platforms that reject SVG will happily accept the PNG or JPG you hand back.

Frequently asked

Why won't my SVG open or display on Windows or in an app?

It's almost never a corrupt file — it's a support gap. Web browsers render SVG, but many desktop programs, image-upload fields, and older software still don't. Converting to PNG or JPG gives you a file that opens everywhere.

Should I convert my SVG to PNG or JPG?

Choose PNG for anything with transparency or crisp edges — logos, icons, line art — because it has an alpha channel and lossless compression. Choose JPG only for dense, photo-like artwork where file size matters; it can't store transparency and will fill the background with a solid colour (GotConvert lets you pick which).

What resolution should I export at?

Match the final use, then size up. Because the source is a vector, you can render it at the exact pixels you need with no quality loss — so aim for roughly 2x-3x the CSS layout size for high-DPI screens, and work back from the physical size at about 300 DPI for print. When in doubt, go bigger: you can shrink a raster cleanly, but upscaling one later just blurs.

Can I convert a PNG or JPG back into an SVG?

Not cleanly. Going from raster to vector requires tracing, which only approximates the shapes and rarely reproduces the original — text and gradients especially fall apart. Rasterising is effectively one-way, so keep the source SVG whenever you can.

Is it safe to convert an SVG I downloaded?

It's a fair worry, since SVGs can contain embedded scripts. GotConvert converts the file locally in your browser and never uploads it — and browsers disable scripting when an SVG is drawn as an image, so nothing in the file runs during conversion. The PNG, JPG, or PDF you get back is plain pixels, with no active code carried over.