How do I enlarge pixel art and keep every pixel the same width?

Nov 21, 2026

The highlights on these cherries are just a few squares. Part of the stem is one square thick. To take the drawing from 16 × 16 to 32 × 32 and keep those decisions intact, choose nearest neighbor in an image editor and double both dimensions. One red square becomes a block of four, all the same shade of red.

A pair of pixel cherries enlarged from 16 × 16 to 32 × 32, with each source pixel occupying a 2 × 2 block

Why 32 pixels works neatly and 40 gets awkward

Going from 16 to 32 gives every column two columns of its own. Going from 16 to 40 means a 2.5× scale. The screen can't draw half a column. With nearest neighbor, some columns end up two pixels wide and others three. A stepped stem can look thicker halfway up.

If the icon slot has to measure 40 × 40, enlarge the sprite to 32 × 32 and center it with a four-pixel margin on each side. If the cherries themselves must fill all 40 pixels, redraw the outline at that size. Save a PNG and check it at its actual display size. A viewer set to fit the window can scale it again.

For a screen that uses two device pixels for each layout pixel, make the high-density version from the same plan. Double the whole 40-pixel canvas to 80, including its margins. The 32-pixel drawing becomes 64 pixels with eight clear pixels on each side. Display that asset in the original 40-pixel slot. Delivering just the 64-pixel drawing and asking the layout to squeeze it into 40 starts the uneven scaling problem all over again.

If the saved PNG looks crisp in the editor and uneven on the menu, check its displayed dimensions too. A 32-pixel file stretched across a 40-pixel slot undergoes the very 1.25× resize you were trying to avoid. Put the 32-pixel drawing inside a 40-pixel transparent canvas and place the whole canvas at 40 pixels. Zoom in to count the squares, then return to normal size to judge the icon.

Find the original grid in an old export

Suppose the only copy in the project folder is a 48 × 48 PNG. Zoom in on the straight part of the stem and count the identical columns between color changes. If every original square has become an aligned 3 × 3 block, the cherries may already be a three-times export of the 16-pixel drawing. Check the highlight and a corner of the outline as well. A broad patch of one color alone doesn't tell you where one square ends and the next begins.

If the whole grid lines up, make a copy, reduce it to 16 × 16 with nearest neighbor, and enlarge it back to 48 × 48 the same way. Compare it with the file you started from. The stepped outline and the highlight should come back in exactly the same places. If they move, check whether a transparent border has shifted the grid or whether someone redrew a detail at the larger size. Keep that larger file until you know which details belong to it.

A screenshot copied out of a menu can look square at first glance and still have pale intermediate colors around every red step. Those blended colors become more little squares when you enlarge it. If the designer still has the sprite sheet or a layered file, ask for that. For a single simple icon, tracing the intended steps on a fresh grid may take less time than trying to remove dozens of almost-red pixels.

What if the sprite sits on top of a photo?

Suppose a dessert menu has a photograph with these cherries tucked into one corner. If you have the layers, put the photograph through the SeedVR2 image tool on its own. Place the cherries back on the finished canvas at an integer scale. If the file is flattened, finding the original icon will often take less work than rebuilding all the steps along a softened edge.

If someone else is laying out the menu, send them the cherries separately as a PNG with a transparent background. Give them the intended display size along with the file. Next time the photo changes, they can drop the icon straight back in without redrawing the stem.

Keep animated frames on the same grid

The cherries might blink through four animation frames, each on a 16 × 16 canvas. With the four cells side by side and no gaps, the sheet measures 64 × 16. A two-times enlargement makes it 128 × 32 with four 32-pixel cells. If the original sheet has spacer columns, double those spaces too and set the frame boundaries to match when you import the new sheet.

Give every frame the same point of reference, such as the bottom of the left cherry. Trimming the transparent area from each frame separately can move that point when the stem bends. One frame looks fine on its own, but in a loop the fruit jumps sideways. Play the exported sequence at its intended size over a plain background. A steady base and a moving stem mean the animation is doing the moving, exactly as the artist drew it.

SeedVR2 Team

SeedVR2 Team

How do I enlarge pixel art and keep every pixel the same width? | SeedVR2