Text of <https://pic2svg.com/pixel-art-to-svg/>.

# Pixel art to SVG

Turn a small PNG sprite or pixel icon into real SVG rectangles. Keep square edges and transparent areas, without tracing curves or embedding the PNG. Free, no account; your file stays in this browser.

Choose PNG → preview → download SVG. Or try the pixel-heart example on the page.

## How the conversion works

Choose a still PNG at its native size. The tool reads the browser-decoded pixels, merges adjacent identical RGBA runs into rectangles and writes an SVG with the same dimensions and viewBox. Fully transparent pixels produce no shapes; partial transparency becomes fill-opacity. Download the SVG for vector geometry, or keep the PNG when your application wants a raster sprite.

## What the comparison receipt checks

The exact exported SVG is rendered again at native size in this browser. The receipt compares alpha and premultiplied color against the decoded PNG, ignoring invisible RGB under zero alpha. It reports changed pixels and the largest channel difference on a 0–255 scale. This checks this browser at native size; it does not certify other editors, color profiles, printing or cutting. Differences are reported rather than hidden.

## Colors, scaling and transparent edges

Browser decoding and canvas can round colors, especially at partial alpha: a stored channel value of 240 can become 239. The receipt compares decoded pixels, not the original PNG's stored palette or profile. SVG rectangles may show thin seams at fractional scales or in renderers that handle crispEdges differently. Test the file at its intended display size. Separate rectangles are not a united cutting outline.

## Limits and when to keep the PNG

Use a still PNG up to 512 × 512 pixels and 4 MB. Animated PNGs are rejected; export one frame first. Output is capped at 16,384 rectangles and 4 MB to keep conversion and preview bounded. Noise, dithering and photographs can hit that cap. An SVG can be larger than the original PNG; the receipt shows both byte counts. This tool does not remove backgrounds, infer a smaller art grid or turn photographs into pixel art.

## A tracer is a different job

On 6 November 2026, the pic2svg engine CLI in sharp/spline mode converted our 8 × 8 diagnostic PNG into one filled path. At 16× nearest-neighbor size, sharp/polygon produced four paths (684 bytes) but flattened the transparent border to white. A native-size Chromium comparison found 7,424 of 16,384 pixels differed. That is documented tracing behavior, not a general quality score. Use the pixel tool when the squares and alpha are the artwork; use normal tracing for smooth outlines.

[8×8 source PNG](https://pic2svg.com/examples/pixel-art-to-svg/native-8x8.png) · [128×128 source PNG](https://pic2svg.com/examples/pixel-art-to-svg/upscaled-128x128.png) · [polygon trace SVG](https://pic2svg.com/examples/pixel-art-to-svg/traced-128x128.svg)

## Related

[PNG to SVG tracing](https://pic2svg.com/png-to-svg/) · [Check whether an SVG is real vector](https://pic2svg.com/how-to-check-if-svg-is-a-real-vector/) · [SVG cut-file checker](https://pic2svg.com/svg-cut-file-checker/)
