Skip to main content

Pixel art upscaler

Enlarges pixel art with nearest-neighbour scaling at whole-number multiples, so every pixel edge stays exactly where it was. Drop in several files and download them as one ZIP.

Files are processed only inside this browser and are never sent to a server.

Drag and drop images here

Click to choose files · or paste with Ctrl+V

Convert many at once · up to 50MB per file

Accepts PNG, GIF, WebP and BMP. For animated GIFs only the first frame is used.

Scaling

How to pick the scale
Scale

The original pixel size is estimated from the GCD of same-colour run lengths, then every block is checked to be a single colour.

How to use it

  1. Drop PNG, GIF, WebP or BMP files into the box above. Several at once is fine.
  2. Under Choose a multiple, pick 2×, 4×, 8× and so on. Or pick Fit the longest side within and type a target such as 512 px; the tool then uses the largest whole multiple that fits.
  3. The preview shows the original, an ordinary smooth enlargement and this tool's result side by side. The result is shown at actual size, so scroll if it is larger than the box.
  4. Press Save PNG for a single file or Download all as ZIP. The scale is appended to each file name, e.g. _4x.

Transparency is kept and the output is always PNG. JPG is not accepted: JPG compression leaves smudges around pixel edges, and whole-number scaling would simply enlarge those smudges too.

Why ordinary upscaling blurs

The default resize in most image editors and libraries interpolates: each new pixel is a weighted average of several nearby source pixels. That reduces jagged edges in photos, but in pixel art the hard edges are the drawing, and averaging smears them.

To put numbers on it, a 16×16 potion sprite was drawn for this article, using seven colours plus a transparent background. It was enlarged with this tool's nearest-neighbour function and with the default resize of the sharp image library (lanczos3). The figure below shows each result magnified another 3× for viewing.

A hand-drawn 16×16 potion sprite enlarged four ways. From left: 4× nearest (64×64, crisp edges), 4× sharp default lanczos3 (64×64, smeared outline with a blurry fringe), 3.5× nearest (56×56, crisp but uneven pixel sizes), 3.5× sharp default (56×56, smeared)

ResultSizeColours usedSemi-transparent pixels
Original16×1670
4× nearest (this tool)64×6470
4× sharp default (lanczos3)64×64959706
3.5× sharp default (lanczos3)56×56984690

Nearest-neighbour scaling never invents a colour that was not in the source. Interpolation turned a seven-colour sprite into 959 colours and added over 700 semi-transparent pixels along the edge that touches the transparent background. That is where the soft halo around characters comes from, and why palette-swap shaders can run into unexpected colours.

Why the multiple must be a whole number

Even nearest-neighbour has a problem at non-integer scales. At 3.5× each source pixel should be 3.5 screen pixels wide, but a screen pixel cannot be split, so some become 4 px and others 3 px. Counting the width of all 16 source columns in the 3.5× nearest result above gives 4, 3, 4, 3 … alternating all the way across.

The body of the 3.5× nearest result magnified with the result's pixel grid overlaid. Source pixels alternate between 4 px and 3 px wide, and between 4 px and 3 px tall

In a still image this is easy to miss, but when a character moves one pixel at a time, parts of it appear to grow and shrink. So when you ask for "longest side at most 512 px" on a 48 px sprite, the tool picks 10× (480 px) instead of 10.67×. If exactly 512 px is required, scale by a whole number first and pad the rest with transparent space. The guide on making game images a consistent size covers fitting many images onto one canvas size.

Restoring already-enlarged pixel art

Sprites found online or exported long ago are often already 4× or so. Multiplying those by 3 again makes them 12×, far larger than intended. When a file is added, the tool estimates how many screen pixels one original pixel spans.

The method is simple. Along every row and every column it measures how many pixels in a row share the same colour (the run length), then takes the greatest common divisor of all those lengths and of the image width and height. In a 4× image every run is a multiple of 4, so the GCD is 4. Because that could happen by coincidence, every 4×4 block is then checked to be a single colour. If it passes, the file is reported as already enlarged 4×, and with Restore to 1× before scaling switched on, the tool shrinks it back to 1× before applying the chosen scale. To only restore, pick 1× as the scale.

There are limits. Fully transparent pixels count as the same colour even if their RGB values differ, but an image that went through JPG or a smooth resize has slightly varying colours inside each block, so it is reported as native 1×. Conversely, a drawing made entirely of 2 px wide strokes may really be 1× yet be detected as 2×. If the detection looks wrong, switch restoring off.

Checking the palette

The tool lists the colours used in the selected image, most used first, up to 256, and can copy the colour codes. Fully transparent pixels are counted separately, as are semi-transparent ones. Pixel art that turns out to have hundreds of colours has usually been through a smooth resize or a JPG save somewhere along the way.

Keeping it crisp in engines and on the web

A cleanly scaled file still blurs if the renderer interpolates again when drawing it. These are the relevant settings in common environments; menu locations can move between versions, so check the documentation for yours.

  • Unity: set the texture import Filter Mode to Point (no filter). The scripting reference describes FilterMode.Point as filtering where "texture pixels become blocky up close". Compression settings can also shift colours, so check the result.
  • Godot 4: set a CanvasItem's texture_filter to Nearest, or change the project's default texture filter to Nearest. For window scaling, the multiple resolutions page recommends stretch mode viewport and stretch scale mode integer for pixel art, to prevent uneven pixel scaling.
  • CSS: use image-rendering: pixelated. According to MDN, this value may scale with nearest-neighbour up to the nearest integer multiple and smooth the rest, so whole-number display sizes still look best on the web.
  • Canvas 2D: set imageSmoothingEnabled to false before enlarging with drawImage.

This tool does not rely on any canvas smoothing setting: it copies pixel data directly, filling exactly an n×n block for every source pixel, so the output PNG contains the same colours as the source. The site is run by a solo game developer; everything runs inside your browser and no file is sent to a server.

Good to know

  • Only the first frame of an animated GIF is read.
  • If the output would exceed 16,384 px on a side or roughly 67 million pixels in total, the scale is lowered automatically because of browser memory limits.
  • Semi-transparent pixels can shift by one or two RGB steps when passing through the browser canvas. Fully opaque and fully transparent pixels are unchanged.

This page was last updated on 2026-11-21

Other tools