Sprite Sheet Generator for Godot 4
Export a ready-made SpriteFrames resource. Assign it to an AnimatedSprite2D and every frame is already in place, in order, at the right region.

Format menu
Godot
SpriteFrames resource (.tres)
The Godot export writes a real SpriteFrames resource: one AtlasTexture sub-resource per frame with its exact region rect, wrapped in a looping animation at 12 FPS. Put the .tres next to your PNG in the project (the resource references the image by name), assign it to an AnimatedSprite2D, and skip the whole Add frames from Sprite Sheet dialog.
Getting the sheet into Godot
- 1
Export both files
Export the PNG, then use Format > Godot to export the .tres. Keep the same file name stem so the resource resolves the texture.
- 2
Drop them in the project
Copy both into your Godot project folder. Godot imports them on focus. The .tres path to the texture is res:// relative, so keep them side by side.
- 3
Assign the resource
Add an AnimatedSprite2D node and drag the .tres into its Sprite Frames property. The frames are already sliced and ordered.
- 4
Turn off filtering
Project Settings > Rendering > Textures > Canvas Textures > Default Texture Filter > Nearest. Set once, applies project-wide.
- 5
Play it
Call play() from code, or tick Autoplay on the default animation in the inspector.
@onready var sprite := $AnimatedSprite2D
func _ready() -> void:
sprite.play("default")
func run() -> void:
sprite.play("walk")| Setting | Godot value |
|---|---|
| Node | AnimatedSprite2D |
| Resource | SpriteFrames (.tres) |
| Static regions | AtlasTexture + Region rect |
| Filtering | Default Texture Filter > Nearest |
| Default speed | 12 FPS, looping |
Real .tres output
Not a JSON blob you have to convert. A SpriteFrames resource Godot 4 opens directly, with one AtlasTexture per frame.
Exact region rects
Each frame carries its own Rect2, so nothing depends on you retyping the grid into the SpriteFrames dialog.
Loop preset
The exported animation is named default, loops, and runs at 12 FPS. Change either in the inspector.
AtlasTexture path too
Need one static frame instead of an animation? Use the PNG as an AtlasTexture atlas and set the region by hand.
Want the long version? Read the engine import guide, or see every export format.
Export for Godot
Pack your frames in the browser. What you walk away with: SpriteFrames resource (.tres), ready for Godot.