PIXEL ART GUIDE
Why pixel art gets blurry when upscaled and which scale factors are safe
Pixel art follows different scaling rules from photographs. Smooth interpolation is useful for continuous tones, but a pixel-art edge is part of the design. If the scaler invents intermediate colors, the original staircase, outline thickness, and tile rhythm can become inconsistent.
Why nearest-neighbor scaling is useful
Typical image scaling blends neighboring pixels. Nearest-neighbor scaling instead repeats the source color exactly. If a 16×16 sprite is enlarged by 4×, each source pixel becomes a 4×4 block of the same color. No semi-transparent blend is introduced along the edge, so the original grid remains visible.
Why integer scale factors are recommended
At 2×, 3×, or 4×, every source pixel expands to the same rectangular size. At 2.5×, some source pixels must occupy two output columns while others occupy three. That uneven distribution can alter one-pixel outlines, dot fonts, and repeating tile patterns. Integer factors avoid this class of distortion.
Large scale factors are primarily a memory problem
Scaling width and height by 4× creates 16 times as many pixels; 8× creates 64 times as many. Browser Canvas works with decoded pixel buffers rather than the compressed PNG file size, so a large background can consume substantial memory even if the source file on disk is small. Character sprites are usually manageable, but large images at 8× or 16× should be tested carefully.
Separate in-game assets from store and marketing composition
For in-game pixel art, integer nearest-neighbor scaling is a good way to preserve the source style. Store screenshots and marketing banners may require dimensions that do not match an integer scale. A safer approach is to enlarge the pixel-art element to a sufficiently large integer size first, then position that enlarged element inside the final composition rather than scaling the sprite itself by an awkward fractional ratio.
Checks after upscaling
- Are one-pixel outlines the same thickness in every direction?
- Did any semi-transparent or intermediate colors appear?
- Do repeating tiles still meet cleanly?
- Does a bitmap font still follow a regular grid?
- Does the final resolution stay within engine or platform limits?
When a normal image resizer is better
Photos, painted illustrations, and UI backgrounds with smooth curves or gradients can look harsh with nearest-neighbor scaling. Use Image Resizer for those assets and reserve Pixel Art Upscaler for images whose visible pixel grid should remain part of the design.