Skip to content
OddsockLocal
Local

No files yet.

Waiting for inputRuns in this browser. Nothing is uploaded.

How to use

  1. Drop one SVG.
  2. If the preview is missing art, the cleaner removed it. Adjust the source.
  3. Download the PNG.
  4. If the pixel size is wrong, set width and height in the SVG and run it again.

What is SVG to PNG?

A favicon pipeline, a slide, or an app icon slot wants pixels. SVG to PNG cleans the drawing the same way the viewer does, then paints it to a PNG. The pixel size follows the SVG's width and height after that cleanup, including the fallback when those attributes were missing or given as percentages. A drawing with a huge viewBox can ask for a bitmap past the canvas limit, and the page refuses anything over 64 million pixels rather than locking the tab.

Read more

What you see is the safe subset. A script will not run during rasterization, and an external image will not be fetched. If the PNG looks flatter than the SVG did in the authoring tool, the missing piece was a filter or a linked asset. Fix it in the source, or accept the flat version.

For a multi-size icon set there is a favicon tool. This page is one PNG of one drawing.

Use cases

  • A slide deck that cannot place SVG gets a PNG of the logo.
  • A social post needs the icon as a bitmap.
  • A developer checks the raster of an illustration before embedding it.
  • A print template imports PNG only.
  • An SVG with a percent width is rasterized at the concrete fallback size so you can see the default.

A logo with a 512 viewBox

logo.svg whose width and height resolve to 512.

A 512-pixel PNG of the cleaned drawing. Filters and remote images that were stripped do not appear in the pixels.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

The bitmap follows the cleaned SVG's width and height. Set those attributes in the file to control the pixels. A missing size falls back to the viewBox.