Skip to content
Marvin's Toolbox.

SVG to PNG Converter

Rasterize SVG files to PNG, WebP or JPEG at any size. Set an exact width and height or a scale such as 2x or 4x, keep transparency or fill a background colour, and download one file or the whole batch.

Runs entirely in your browser. Nothing you put in here gets uploaded.

Your SVGs

Drop SVG files here

Several at once is fine. Click to choose files.

They never leave your browser.

Output size

Scale

1x is the size the SVG asks for.

Output format

Format

PNG is lossless, so there is no quality to set.

Background

Next steps

Send this tool's output straight into another tool.

Compress images to JPEG at a target file size or quality, with presets for WhatsApp, Instagram and Discord, optional resizing and EXIF kept or stripped.

Turn any image into a complete favicon set: a multi-size favicon.ico, PNG icons in every common size, Apple touch and Android icons, a web manifest and the HTML tags to paste into your page. Download everything as a zip.

Convert images between JPEG, PNG, WebP and AVIF, and open iPhone HEIC photos too. Drop in as many as you like, pick a format, and dial in the quality for the lossy ones. When you convert to JPEG, choose the colour that fills any transparency. Live previews, download one or all at once.

See and edit the EXIF metadata inside a photo, then download it with your changes or save a copy with all metadata removed, GPS included. It reads JPEG, PNG, HEIC and more, and edits JPEG files.

Copy the EXIF metadata from one photo onto another without changing the destination's pixels. That covers camera model, lens, focal length, exposure, GPS and more. Choose to replace all metadata or only fill in what the source provides.

Draw arrows, boxes, text, highlights and numbered steps on a screenshot, blur or pixelate anything private, crop the result and add a watermark. The finished image downloads as PNG or JPG or goes straight to your clipboard.

Hash text or a file with MD5, SHA-1, SHA-256, SHA-512, SHA-3, BLAKE2, BLAKE3, CRC32 and more, all computed live as you type. Compare against an expected checksum and copy any digest.

Verify a file against its checksum. Drop the file and paste the expected hash or a sha256sum line, and the hash type is detected for you, from MD5 to BLAKE3.

Compress text or a file with gzip, deflate, brotli or Zstandard and see the size before and after, the compression ratio and how long it took. One click tries every method and recommends the smallest result.

About the SVG to PNG Converter Tool

This tool turns SVG files into PNG, WebP or JPEG images at the size you need. Drop in a batch of files or paste the markup, pick a scale or an exact size, and download one image or a zip of all of them.

Each SVG is redrawn at the final size instead of being enlarged from a small bitmap, so a 24 pixel icon stays sharp at 1024 pixels. Sizes in mm, pt or em are converted to pixels, and files with no size at all get one from their viewBox.

What you can do

  • Convert SVG to PNG with a transparent background
  • Export an SVG at 2x, 3x, 4x or any custom scale
  • Rasterize an SVG to an exact width, height or both
  • Convert SVG to JPEG or WebP with adjustable quality
  • Fill the background with a colour
  • Convert a batch of SVGs and download them as a zip
  • Paste SVG markup copied from Figma or a web page
  • Copy the result to the clipboard as a PNG
  • Find SVGs that link images or fonts that will not render

How to use the SVG to PNG Converter

  1. 1Drop your SVG files in, or switch to Paste markup and paste the code.
  2. 2Choose the output size by scale, width, height or both. Each file shows its final size in pixels.
  3. 3Pick PNG, WebP or JPEG. Set the quality for a lossy format and choose a background.
  4. 4Check the previews. Transparent areas show on a checkerboard.
  5. 5Download each image, copy it as a PNG, or download everything as a zip.

How the size is worked out

A stated width and height come first, with physical units converted at 96 pixels per inch. When one is missing, the viewBox supplies the shape. When both are missing, one viewBox unit counts as one pixel. A percentage has nothing to refer to in a standalone file, so it is treated as missing, and each file tells you when this happened.

With width and height both set, the aspect lock fits every file inside that size and keeps its shape. With the lock off, every file comes out at exactly that size, either padded with empty space or stretched to fill it.

Linked images and fonts

A browser draws an SVG image in isolation, so linked images, stylesheets and web fonts never load, and they will be missing from the result. The tool lists what a file links to so you can catch this before you export. Embed images as data URIs and convert text to outlines to get a faithful result. Text set in a locally installed font renders here, but it may look different on another computer.

Very large images

Browsers limit how big a canvas can be, and the limit is lower on phones. When a size is too large, that file fails with a message giving the largest size that fits, and the rest of the batch still converts. To shrink the SVG itself instead of rasterizing it, use the SVG Optimizer. For an icon set, send the result to the Favicon Generator.

Tools that share a tag with this one.

Turn a series of images into a video. Drop in your frames, reorder them, set the frame rate and resolution, and encode the result as MP4 or WebM, ready to play anywhere.

Convert an animated GIF into an MP4 or WebM video. Videos are far smaller than GIFs and play everywhere, so this is the quickest way to make a heavy GIF shareable.

Convert images between JPEG, PNG, WebP and AVIF, and open iPhone HEIC photos too. Drop in as many as you like, pick a format, and dial in the quality for the lossy ones. When you convert to JPEG, choose the colour that fills any transparency. Live previews, download one or all at once.

Read the text out of a screenshot, photo or scan with OCR. Pick the language, watch the recognition progress, review the result with per-word confidence, and copy or download the extracted text.

Extract still frames from a video. Grab every frame, every Nth one or one per second, or step through and pick single frames by hand. Choose PNG, JPEG or WebP for the output and download everything as a zip.

Turn a video clip into an animated GIF. Pick the exact section on a timeline, set the frame rate, size and loop behavior, and fine-tune the palette for a small file that still looks good.