Why pixel art goes blurry
Many engines smooth textures unless you tell them not to: when a sprite is drawn bigger, smaller or between two screen pixels, each screen pixel is a blend of the nearest pixels of the art. That suits painted art and ruins pixel art. The fix is nearest-neighbour filtering, which copies the closest pixel instead of blending.
The setting to change in each engine
| Engine | What to set |
|---|---|
| Godot 4 | Project Settings › Rendering › Textures › Canvas Textures › Default Texture Filter: Nearest. For one node only: Texture › Filter (texture_filter): Nearest. |
| Unity | Select the sprite’s texture and set Filter Mode to Point (no filter) in the Inspector. |
| Phaser 3 and 4 | pixelArt: true in the game config: textures use nearest-neighbour filtering, antialiasing is off and sprites are drawn on whole pixels. |
| PixiJS 8 | TextureStyle.defaultOptions.scaleMode = 'nearest' before loading, or texture.source.scaleMode = 'nearest' for one texture. |
| GameMaker | Texture filtering smooths sprites when they are scaled or moved off whole pixels. It is set per platform in the Game Options, and in code with gpu_set_texfilter(false). |
| Roblox | Set the ImageLabel’s ResampleMode to Pixelated. |
| A web page | image-rendering: pixelated in the CSS of the image or canvas. |
In Phaser, it is one line in the game config:
const game = new Phaser.Game({
type: Phaser.AUTO,
width: 320,
height: 180,
pixelArt: true,
scene: MyScene,
});In PixiJS 8, set the default before loading the sheet:
import { Assets, TextureStyle } from 'pixi.js';
TextureStyle.defaultOptions.scaleMode = 'nearest';
const sheet = await Assets.load('hero.json');The setting names are from each engine’s own documentation, checked on 23 November 2026. Both snippets run as shown in Phaser 3.90, Phaser 4.2 and PixiJS 8.23.
Still soft or uneven? Check the scale and the position
- Scale by whole numbers. At 2×, 3× or 4× every pixel of the art becomes the same square. At 1.5×, some pixels are drawn twice as wide as others, so lines look uneven even with nearest-neighbour filtering.
- Draw on whole pixels. A sprite halfway between two screen pixels is blended again. Phaser’s
pixelArtturns onroundPixels; Godot hasrendering/2d/snap/snap_2d_transforms_to_pixelandsnap_2d_vertices_to_pixel. - Don’t resize the frames with smoothing before you pack them. The Sprite Sheet Maker keeps frames at their original size; only the VRChat preset resizes, and its Pixel art option uses nearest neighbour and enlarges small frames by whole numbers.
Thin lines or dark edges between frames
With smoothing or mipmaps on, the engine can sample a pixel just outside a frame: from the next frame on the sheet, or from the transparent gap around it. That shows up as thin lines, flickering edges or a dark outline.
- Nearest-neighbour filtering, above, fixes most of it for pixel art.
- Leave Spacing between frames when you make the sheet, so the next frame isn’t right against the edge.
- Turn on Extrude edges (1–2 px) in the Sprite Sheet Maker: each frame’s edge pixels are repeated around it, so whatever the engine samples just outside the frame is still the frame. The data files keep pointing at the frames themselves.
FAQ
Why is my pixel art blurry only when the game is scaled up?
Scaling is when the engine has to make up pixels. With smoothing on, it blends neighbouring pixels to do it. Switch the texture filter to nearest-neighbour and scale by whole numbers.
Do I need to change the sprite sheet itself?
Usually not: the blur comes from how the engine draws the sheet. Keep the frames at their original size and change the engine’s filter setting. For thin lines between frames, add spacing or extruded edges when you make the sheet.
Will nearest-neighbour filtering make other art look jagged?
Yes, it keeps hard edges. Use it for pixel art, and keep smoothing for painted or vector-style art.
Is the sprite sheet maker free?
Yes. It runs in your browser with no sign-up and no watermark, and keeps your frames at their original size unless you pick the VRChat preset.
More free tools
- Sprite Sheet Maker — pack frames into a sheet, with spacing and extruded edges
- GIF to Spritesheet — split an animated GIF and keep its timing
- Sprite Sheet Cutter — split a sheet back into PNG frames, or get its data file
- Roblox Sprite Sheet Maker — sheets Roblox won’t shrink, and where the numbers go
- VRChat Emoji Sprite Sheet Generator — a GIF as a 1024 × 1024 animated emoji
- GIF to Phaser Animation — a GIF as a Phaser animation, step by step