IMG · Images tools

Pixel Art Scaler

Shareable link

Settings are written to the URL as you change them. Nothing differs from the defaults yet.

Enlarge pixel art by a whole-number factor and keep every edge hard. Pick the algorithm by how much it is allowed to change the drawing, and check the result at full size in the preview before downloading it as PNG.

Three ways to enlarge

Nearest neighbour repeats each pixel as a square block. A 16 × 16 sprite at 4× becomes 64 × 64 with nothing added and nothing lost. Use it for anything that must stay faithful: tilesets, UI icons, art for a game that renders at integer scale.

Scale2x / Scale3x (also called EPX and AdvMAME2x/3x) look at the four neighbours of each pixel. Where two adjacent neighbours share a colour and the opposite two do not, the corner between them takes that colour. Diagonal stair-steps become finer steps, and the output contains only colours that were in the source. A 16-colour sprite stays a 16-colour sprite.

xBR examines 21 pixels around each one, measures which direction an edge runs by comparing colour distances in YUV, and blends along the edge at one of three slopes. Curves and diagonals come out smooth, and outlines keep a constant weight. It adds intermediate colours along edges, so the palette grows.

Art that was already enlarged

A sprite exported at 400%, or cropped from a screenshot, has blocks instead of pixels. Run an edge rule on it and nothing changes, because the rule compares a pixel with neighbours that are copies of itself.

Source pixel size handles this. On Auto, the largest block size up to 16 for which the whole image is uniform blocks is measured, and the image is reduced to one pixel per block before scaling. The readout shows the art size that results. A 256 × 256 file made of 4 px blocks is 64 × 64 art, and 4× xBR of that gives a smooth 256 × 256.

Auto needs exact blocks. A JPEG, or a screenshot that was resized by a fractional amount, has soft block edges and reads as 1. Set the size by hand in that case; the centre pixel of each block is used, which is the one least affected by the smearing.

Example: a 32 × 32 character sprite

Load the PNG. With xBR at 4× the output is 128 × 128: the round helmet is a curve instead of a staircase, and the one-pixel black outline is still one consistent line. Switch to Scale2x / Scale3x at 4× and the same curve has small steps, with no new colours. Switch to nearest neighbour and it is the original, four times larger. Use Show before on the preview to compare each against the source.

Mistakes that spoil the result

Dithered shading confuses edge rules. A checkerboard dither is, pixel for pixel, a field of diagonal edges, and xBR will join them into stripes. Use nearest neighbour for heavily dithered art.

Anti-aliased art has already been smoothed by hand. Scale2x and Scale3x only match identical colours, so they leave it mostly alone; xBR treats similar colours as equal and usually copes better.

Text at very small sizes can change shape. A 3 × 5 pixel font has no room for an edge rule to be right, and letters such as e and a may close up. Scale text with nearest neighbour.

Limits

Factors are whole numbers. Scaling pixel art by 2.5× forces some pixels to be 2 wide and others 3, which is the uneven look these algorithms exist to avoid.

Images above about 1500 × 1500 pixels are refused. That size is a photograph, not pixel art, and an edge rule gains nothing on it. To enlarge a photo, use the Image Resizer.

Frequently Asked Questions

It enlarges a sprite, tileset, icon or other pixel art by a whole-number factor and downloads the result as PNG. It reads PNG, WebP and JPEG up to about 1500 × 1500 pixels. PNG is the format to use, because JPEG compression has already blurred the hard edges these algorithms look for.

Use nearest neighbour when the art must stay exactly as drawn, only larger. Use Scale2x / Scale3x to round the stair-steps on diagonals while keeping the original palette. Use xBR for the smoothest curves and diagonals when a few in-between colours are acceptable.

Most editors and browsers enlarge with bilinear or bicubic interpolation, which averages neighbouring pixels. That suits photographs and smears pixel art, where each pixel is a deliberate square of one colour. The algorithms here copy or choose colours and never average across an edge.

Pixel art is often saved already enlarged, so each art pixel is a block of 2 × 2, 4 × 4 or more screen pixels. Edge rules do nothing on such a file, because every neighbour inside a block is identical. Auto measures the block size and reduces the image to one pixel per block before scaling. Set it by hand when the file is a JPEG or a screenshot with soft block edges.

xBR is defined here as a 2× step, so it reaches 2×, 4× and 8× by running one, two or three times. Scale2x and Scale3x combine to give 2×, 3×, 4×, 6× and 8×. Nearest neighbour works at any whole factor.

Yes. Transparent pixels stay transparent, and xBR treats the boundary between a sprite and its transparent background as an edge, so outlines are smoothed like any other diagonal. The download is always PNG, which stores the alpha channel without loss.

Explore Our Tools

Browse all tools