Tiled Map Editor to Godot 4: Import Your Tiled Maps
Import a Tiled map into Godot 4: .tmx or .tmj layers on TileMapLayer, with flipped and tall tiles, animations, collisions and objects, step by step.

Your level is finished in Tiled: ground, walls and decoration on their own layers, flipped corner pieces, tall trees, rippling water, collision on every wall tile, and spawn points and door triggers on an object layer. You drag the .tmx into your Godot 4 project and nothing happens. The importer a tutorial pointed you to was written for the old TileMap node. The other way is to paint the whole map again in Godot, then the collisions, then every spawn point, and again after every change in Tiled.
Godot 4 opens no Tiled file by itself. This guide shows what each part of a Tiled map becomes in Godot 4, brings it over by hand, and then shows the Tiled Map to Godot Converter doing the whole map at once.
What Tiled saves and what Godot 4 wants
Tiled saves:

- The map as .tmx (XML) or .tmj (JSON).
- Tilesets inside the map, or in their own .tsx or .tsj files, each pointing at its PNG.
- Tile layers as one number per cell, called a GID, written as CSV or Base64, which can be compressed with zlib, gzip or Zstandard.
- Object layers with points, rectangles, polygons, polylines and tile objects, each with its own properties.
Godot 4 wants:
- A TileSet (.tres) with one atlas source per picture, holding collision, custom data and animations.
- One TileMapLayer node per layer. The old TileMap node is deprecated since Godot 4.3.
- Nodes for everything else. A spawn point is a Marker2D, a trigger an Area2D with a shape, a patrol route a Path2D.
Community importer plugins exist, each one more addon to keep in step with every Godot release. The steps below need none.
Step 1: Get the map ready in Tiled
Open Map > Map Properties and check three things:

- Tile Width and Tile Height, for example 16 and 16. The Godot TileSet must use the same size.
- Infinite is off. An infinite map stores its tiles in chunks.
- Tile Layer Format is CSV: plain numbers you can read.
Note each tileset's Margin and Spacing. Tick Embed tilesets under the export options in Edit > Preferences, then use File > Export As with the JSON map format. The .tmx stays the file you edit.
Step 2: Build the TileSet in Godot
- Copy the tileset PNG and the .tmj into your project, and set Project Settings > Rendering > Textures > Default Texture Filter to Nearest.
- Add a Node2D for the level and a TileMapLayer under it. In the Inspector, set Tile Set to New TileSet and its Tile Size to Tiled's.
- Drag the PNG into the list on the left of the TileSet tab in the bottom panel. Set Margins and Separation to Tiled's Margin and Spacing before the tiles are made, or every tile is cut off by a few pixels.
- Right-click the TileSet in the Inspector and Save As a .tres, so every layer shares it.
The whole panel is covered in the Godot 4 tileset tutorial.
Step 3: Copy a layer with a script
A GID is the tileset's first GID plus the tile's index, counted left to right, top to bottom. Its top three bits flag a horizontal, vertical and diagonal flip. Godot 4 keeps the same three on a cell's alternative tile ID: TRANSFORM_FLIP_H, TRANSFORM_FLIP_V and TRANSFORM_TRANSPOSE (Tiled's diagonal flip swaps x and y, as a transpose does).
This tool script fills a TileMapLayer from one top-level tile layer of the .tmj (Godot 4.4 or later, for the button).
@tool
extends TileMapLayer
@export_file("*.tmj") var map_path := ""
@export var layer_index := 0
@export_tool_button("Copy layer from Tiled") var copy_button = copy_layer
func copy_layer() -> void:
var map: Dictionary = JSON.parse_string(FileAccess.get_file_as_string(map_path))
var layer: Dictionary = map["layers"][layer_index]
var tileset: Dictionary = map["tilesets"][0]
var first_gid := int(tileset["firstgid"])
var columns := int(tileset["columns"])
var width := int(layer["width"])
var data: Array = layer["data"]
clear()
for i in data.size():
var gid := int(data[i])
if gid == 0:
continue
var alt := 0
if gid & 0x80000000:
alt |= TileSetAtlasSource.TRANSFORM_FLIP_H
if gid & 0x40000000:
alt |= TileSetAtlasSource.TRANSFORM_FLIP_V
if gid & 0x20000000:
alt |= TileSetAtlasSource.TRANSFORM_TRANSPOSE
var id := (gid & 0x0FFFFFFF) - first_gid
set_cell(Vector2i(i % width, i / width), 0, Vector2i(id % columns, id / columns), alt)
Attach it, pick the .tmj, set the layer index (0 is the bottom layer in Tiled's Layers panel) and press the button. Make one TileMapLayer per Tiled layer, in the same order: Godot draws the node lower in the scene tree on top. Tall tiles, animations, collisions, properties and objects are still to do.
Step 4: Tall tiles, animations and collisions
Tall tiles. Tiled draws a tile bigger than the grid from the bottom-left corner of its cell. Godot centres every tile on its cell, so a 16x32 tree on a 16x16 grid lands 8 pixels low. Select the tile in the TileSet tab's Select mode and set Rendering > Texture Origin: Y = (picture height − cell height) / 2, X = (cell width − picture width) / 2. A positive Y moves the picture up, so the tree gets (0, 8).
Animations. Tiled lets any tile be a frame and counts milliseconds. Godot animates a tile only when its frames follow it at an even step along its row or down its column, and counts seconds: 150 ms is 0.15. Select the first frame, open Animation, and set Columns, Frames Count and each Duration.
Collisions. Add a Physics Layer to the TileSet and draw each tile's polygon in Paint mode. A platform you jump up through needs its polygon set to one way.
Tile properties. Each becomes a Custom Data Layer, read with get_custom_data("name") on the cell's tile data.
Step 5: Objects become nodes
Both measure in pixels with Y pointing down, so positions copy over as they are while the level sits at (0, 0).
- Point: a Marker2D at its X and Y.
- Rectangle: Tiled's X and Y are the top-left corner, and Godot centres a RectangleShape2D on its node, so put the Area2D at (X + width / 2, Y + height / 2).
- Polygon and polyline: an Area2D with a CollisionPolygon2D, or a Path2D, at the object's X and Y. Tiled stores the points relative to it, so they copy as they are.
- Tile object: a Sprite2D. Tiled places it by its bottom-left corner, Godot by its centre.
- Properties: Add Metadata at the bottom of the Inspector, read with
get_meta(). Make the object's class a group, andget_nodes_in_group("door")finds every door.
Four layers and fifty objects take an afternoon, and it starts over after every change in Tiled.
The fast way: convert the whole map
The Tiled Map to Godot Converter does all of the above in one pass, with no plugin to install.
- Drop the .tmx or .tmj with its tilesets (.tsx) and pictures, or one ZIP of the Tiled folder. It reads CSV, Base64, zlib and gzip layers, embedded and external tilesets, infinite maps, group, image and object layers, and names any file you left out.
- Every tile layer becomes a TileMapLayer in Tiled's order, with its flips and turns, offset, opacity and tint. Tall trees and crops stand on their cells as they do in Tiled.
- Animated tiles keep Tiled's frame times, tile collisions land on a physics layer with one-way platforms kept, and tile properties become custom data.
- Points become Marker2D, rectangles and polygons Area2D with their shape, paths Path2D, tile objects Sprite2D, each with its properties as metadata and its class as a group.
- The page draws your map as Tiled does and as Godot will, and counts the pixels that differ. Untick the layers you don't want and pick what comes over.
Download the ZIP (a .tscn scene, a .tres TileSet, the pictures and a README), copy its folder into your project and open the scene. Our own Tiled maps from six packs came out the same in Godot 4.7.2, pixel for pixel. It runs on your computer and never uploads your map.
Every Gridwright asset pack, made to fit together, and all 44 tools for the fiddly work, with every new release, for $17 a month. Try it in your own game first: 3 days for $1 with every tool and up to 10 packs. Cancel any time.
Start: 3 days for $1 See everything it includesCommon problems and their fixes
The tiles are blurry. Set Default Texture Filter to Nearest.
Mirrored corners face the wrong way. The flip bits were dropped. They belong in the cell's alternative tile ID.
The water stands still. Its frames don't follow the first tile along a row or down a column. Move them next to it in the picture. The converter keeps other layouts to their first frame and says how many.
The map stops at Zstandard. In Tiled, set Tile Layer Format to CSV or Base64 (zlib) and save again.
The player falls through the floor. The body's collision mask doesn't include the TileSet's physics layer.
Bring your next map over
Draw in Tiled, convert, open the scene. The converter is one of 44 tools in Gridwright, next to 150 asset packs, several of which ship Tiled maps.
Every Gridwright asset pack, made to fit together, and all 44 tools for the fiddly work, with every new release, for $17 a month. Try it in your own game first: 3 days for $1 with every tool and up to 10 packs. Cancel any time.
Start: 3 days for $1 See everything it includes