Fix Blurry Pixel Art

Pixel art looks blurry when the engine smooths it as it scales or moves it. Here is the setting that turns smoothing off in each engine, what else makes sprites soft, and how to stop thin lines between frames.

Updated

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

EngineWhat to set
Godot 4Project Settings › Rendering › Textures › Canvas Textures › Default Texture Filter: Nearest. For one node only: Texture › Filter (texture_filter): Nearest.
UnitySelect the sprite’s texture and set Filter Mode to Point (no filter) in the Inspector.
Phaser 3 and 4pixelArt: true in the game config: textures use nearest-neighbour filtering, antialiasing is off and sprites are drawn on whole pixels.
PixiJS 8TextureStyle.defaultOptions.scaleMode = 'nearest' before loading, or texture.source.scaleMode = 'nearest' for one texture.
GameMakerTexture 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).
RobloxSet the ImageLabel’s ResampleMode to Pixelated.
A web pageimage-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 pixelArt turns on roundPixels; Godot has rendering/2d/snap/snap_2d_transforms_to_pixel and snap_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