Godot 4 Pixel Art Import Settings

Pixel art in Godot 4 can look crisp with almost no work — or permanently soft because of one checkbox. The settings below are the ones that matter. Everything else is secondary.

If you are importing a sheet for the first time, read Godot 4: SpriteFrames from a sprite sheet first, then come back for the project-wide settings.

1. The import dock

Select the PNG in the FileSystem dock, open Import, and set:

Setting Value Why
Filter Off Nearest-neighbor sampling; no blending between pixels
Mipmaps Off No smaller versions to blur or bleed
Compress Mode Lossless No artifacts around hard edges
Detect 3D Off Keeps the texture in the 2D path

Click Reimport. If the sprite is already in a scene, it updates in place.

When Filter on is correct

Filter on is for painted art, high-resolution illustrations, and smooth gradients. It is not “better quality.” For pixel art it is the main cause of blur.

If you need Filter on for one texture and off for another, set it per import, not globally.

2. The project-wide canvas filter

The import setting controls the texture. The canvas filter controls how 2D draws it. Set both.

Project → Project Settings → Rendering → Textures:

Or via code:

ProjectSettings.set_setting(
    "rendering/textures/canvas_textures/default_texture_filter",
    0 # Nearest
)

If this is left on Linear, a texture imported with Filter off can still be drawn with linear sampling.

3. Pixel snap

Project Settings → Rendering → 2D → Snap:

This keeps sprites on whole pixels when the camera or parent moves by fractions. It reduces shimmering and uneven pixel sizes.

Do not enable it for smooth, high-resolution art; it will make motion look stepped.

4. Window scaling

Pixel art looks best at integer scales. A 320×180 game at 3× is 960×540; at 3.5× it is a blurry mess unless you use a viewport stretch mode.

Project Settings → Display → Window → Stretch:

Setting Value
Mode canvas_items (or viewport for a hard pixel grid)
Aspect keep
Scale Mode integer (Godot 4.2+)

canvas_items scales the 2D canvas; viewport renders at the base resolution and scales the result. viewport gives a more consistent pixel size; canvas_items gives smoother UI text.

If your Godot version does not expose Scale Mode, use a viewport stretch and size the window to integer multiples.

5. Per-node override

CanvasItem has a texture_filter property. Use it when one node must differ from the project default:

$Sprite2D.texture_filter = CanvasItem.TEXTURE_FILTER_NEAREST

Useful for a UI icon or a mixed-style scene. Do not use it as a substitute for fixing the import; the texture still needs the right settings.

6. Camera and motion

A sprite that is crisp when still but blurry when moving is usually being drawn at a fractional position or a fractional scale.

The common blur cases

Symptom Likely cause Fix
Everything is soft Filter on, or canvas filter Linear Filter off; canvas Nearest
Only one sprite is soft Per-import setting or node override Check the import dock and texture_filter
Blurry when the window is resized Fractional window scale Integer scale mode or integer window size
Shimmering while moving Sub-pixel positions Snap 2D transforms/vertices
Thin seams between tiles Filtering samples neighbors Padding/extrude; see texture bleeding
Colors look muddy Lossy compression Lossless
Sprite is pixelated in a bad way Upscaled with nearest from a low-res source Author at the target resolution or use integer scale

A checklist for a new pixel-art project

If all seven are true, the usual remaining problem is the art itself: a sprite authored at 48×48 and displayed at 64×64 will never be crisp without a proper pixel-art upscale.

FAQ

Should I import at 1× or 2×? Import at the authored resolution. Scale in the engine with integer factors, or author at a higher base resolution if the game targets 4K.

Does Filter off affect performance? Not meaningfully. It changes the sampling mode, not the texture size.

Why is the text blurry if the sprites are crisp? Fonts are textures too. Use a pixel font, import it with Filter off, and keep UI at integer scales.

Can I mix pixel art and painted art? Yes. Set the project default for the dominant style and override per texture/node for the exception.

Does viewport stretch mode break UI? It can make UI scale with the game resolution. For pixel art, that is often desirable; for complex UI, canvas_items is easier.


That closes the Godot import series. If you are starting from an AI video, go back to the full workflow.