Skip to content
Tejo Tools
Search
Menu
Processed on your device

SVG to PNG

Make a PNG of an SVG at the size you need, right in your browser.

Size
Background

Linked images and web fonts in the SVG are left out.

Your files will appear here.

Last updated

What it does

This tool draws each SVG file and saves the drawing as a PNG image. Choose a size:

How to use it

  1. Drop your SVG files on the box, paste them, or select Choose files. Select “Try a sample” to see an example logo turned into a PNG.
  2. Choose a Size and a Background. Every file is drawn again when you change a choice.
  3. Select Download on a card to save one PNG, or Download all to save them together in a ZIP file.
  4. Press Ctrl+Enter (⌘+Enter on a Mac) to run every file again, or Esc to stop the ones still working.

How the size is worked out

The own size is the SVG’s width and height. A number on its own, or one in px, is pixels; 1 pt is 4/3 px, 1 pc is 16 px, 1 in is 96 px, 1 cm is 96 ÷ 2.54 px and 1 mm is a tenth of that. Each side is rounded to a whole pixel. A side that is missing or given as a percentage follows the other side and the viewBox’s proportions. A side in another unit, such as em, is the size your browser draws it at. For example, width="48" with viewBox="0 0 20 10" is 48 × 24 px, and 4× of it is 192 × 96 px.

Good to know

Privacy

Your files are processed on your device: the tool runs in your browser and doesn’t upload them. As an image, the SVG can’t reach the network or run code.

Advertisements

Frequently asked questions

Is the background transparent?

Yes, by default. Wherever the SVG draws nothing, the PNG is transparent, because PNG keeps transparency. Choose Background White if the PNG goes somewhere that shows transparency as black or as a checkerboard, such as some email programs and document editors.

Which size should I pick?

Own size uses the size written in the SVG. An SVG is drawn from shapes, so it stays sharp at any size: pick 2× or 4× for screens with dense pixels or for printing, or Width to get an exact width in pixels, with the height following the SVG's proportions. A PNG is made of pixels, so it can't be enlarged later without blurring; make it at the size you need.

Why are fonts or pictures missing from the PNG?

The SVG is drawn the way a web page shows an SVG image: nothing it links to is fetched. Pictures it links from a web address, web fonts it loads and style sheets it imports are left out: a linked picture's place stays empty, or shows your browser's small broken-image mark, and text falls back to a font your device has. Pictures stored inside the SVG file itself are drawn. To keep text exactly as designed, convert it to outlines in your design app before you save the SVG.

What is the SVG's own size?

It is the width and height written in the SVG, in pixels, or in pt, pc, mm, cm or in at 96 pixels per inch. If only one is given, the other follows the shape of the SVG's viewBox; if neither is given, the viewBox size is used. An SVG with no size and no viewBox is drawn at 300 × 150 pixels, as browsers do, and its card says so.

Are my files uploaded?

No. Your SVG files are drawn by your browser, on your device, and they aren't sent anywhere. Scripts inside an SVG don't run. A PNG is saved only when you select Download.

Advertisements