Guides

Pixel Art for Godot: Keep Sprites Sharp (Import Settings)

How to import pixel art into Godot without blur, covering the texture filter setting, import presets, snapping, and exporting sprites and spritesheets from SpriteGen.

Godot is a fantastic engine for 2D, but its default texture filtering will soften your pixel art if you let it. The fix is a couple of settings. This guide covers how to keep every pixel crisp in Godot and how to export sprites from SpriteGen cleanly.

Start from true-size art

Draw at a real, fixed resolution so each cell is one pixel. A 32x32 sprite should be exactly 32 by 32. In SpriteGen the grid is fixed, so your exported PNG is exact pixel art with nothing to clean up. Not sure what size to use? See the pixel art sizes guide.

The setting that matters: nearest-neighbor filtering

By default Godot can filter (smooth) textures, which blurs pixel art. Turn that off:

Nearest-neighbor means each source pixel becomes a clean block when scaled, instead of a soft gradient.

Import presets

In the Import dock you can save a preset (for example "2D pixel art") with filtering off and mipmaps off, then set it as the default for that file type. New sprites then import correctly with no clicking.

Keep movement and the camera pixel-aligned

For crisp motion, snap things to whole pixels. Godot offers snapping options for 2D transforms and a stretch mode of "viewport" with an integer scale, which keeps the rendered image aligned to a clean pixel grid as the window resizes. This stops sprites from shimmering when the camera or characters move.

Spritesheets and animation

For animation, export a spritesheet and use AnimatedSprite2D or a SpriteFrames resource, slicing by your frame size. SpriteGen can pack frames into a sheet so the grid lines up. See how to make a spritesheet and how to animate pixel art.

Exporting from SpriteGen to Godot

SpriteGen exports PNG, animated GIF, spritesheets, and engine-ready formats including a Godot option. Export at true size, then on the Godot side make sure filtering is Nearest and you are set.

Quick checklist

Make a Godot-ready sprite now: open the editor and draw or generate one at your target size.

Make it in SpriteGen, truly free

Hand-draw on a real grid or generate sprites with AI. No sign-up needed, and the editor and PNG export are free, with 10 AI credits a month.

Open the studio