Pixel Art Garden guide · 5 minute read
Pixel art export sizes and formats
The best export depends on where the artwork will be used. Pixel Art Garden creates a raster PNG for general use, an SVG representation for scalable layouts, a four-variant palette sheet and code examples for development.
Image dimensions in the editor
The editor keeps the source aspect ratio and processes an output whose longest side is at most 2,048 pixels. Smaller images retain their original dimensions. If an uploaded image is larger, Pixel Art Garden scales it down before applying the pixel grid. The visible preview and PNG download use those processed dimensions.
Pixel size is measured in pixels on the processed image. For example, a 1,200-pixel-wide image with a 10-pixel setting is sampled into roughly 120 columns before it is enlarged with nearest-neighbour rendering. The final output is enlarged back to the processed image dimensions.
PNG and transparent PNG
PNG is a lossless raster format supported by browsers, image editors and most game-development workflows. The transparent PNG option writes the same processed image while retaining alpha values from the source. If the original is an opaque photograph, that file will still have an opaque background—transparency is preserved, not invented.
Use PNG for a stable, broadly compatible copy. If a project requires a specific sprite size or color profile, verify the downloaded file in the target application before importing it.
What is inside the palette sheet?
Pixel Art Garden's palette sheet is a static 2 × 2 PNG. Each cell shows the same source processed with a different palette: Original, Game Boy, SNES-inspired and Warm. The cell images are scaled to fit a maximum sheet edge of 2,048 pixels. This makes the sheet useful for comparing treatments, but it is not a sequence of animation frames and does not include timing metadata.
3D exports
The editor's 3D view can also export the converted artwork as a 3D model: GLB, OBJ and STL files, plus a PNG render. Those formats are covered on the 3D pixel art maker page.
SVG and code exports
For grids up to 40,000 reduced pixels, the SVG export groups same-coloured pixel runs into vector paths. This can scale cleanly and remain compact. More detailed grids are exported as an SVG file containing an embedded PNG so that a very large number of vector shapes does not make the file unwieldy.
Code examples include CSS, HTML Canvas, JavaScript, SVG, Python with Pillow and p5.js. Browser-based snippets embed the generated image data so they can reproduce the current output. The Python example reads a local input.png file and recreates a similar pixelation and palette-reduction process; results can differ slightly because image libraries use different resampling and quantization implementations.
Choosing a format
Before you publish
Check that the artwork remains legible at its final display size, inspect transparent edges against a contrasting background and confirm that the source image is yours to use. If the export is for a game atlas, create and validate your final atlas layout in the game engine or image editor that will consume it.
See the photo-to-pixel-art guide for help tuning the image before you export, or open the editor to make a new version.