Image to Tileset & Tilemap Extractor

Painted a level as one big image? Split it into a grid, keep each distinct tile once, and get a map that rebuilds the original exactly, ready for Tiled, Godot or your own engine.

Drop a tile-based level image here (map screenshot or mockup), or click to choose.
Finds the unique tiles and rebuilds the map as a Tiled map. Nothing is uploaded.

How to turn a level image into a tilemap

  1. Drop a PNG of your level at its original 1× scale.
  2. Enter the tile size. If the map doesn't start at the image's top-left corner, set the offsets.
  3. Check the rebuilt map below the tileset. It should look exactly like your image. The number of unique tiles tells you how big the tileset is.
  4. Download the ZIP and open the .tmj in Tiled, or read the CSV in your own engine.

When this is useful

Reading the CSV in code

// each line is a row; 0 = empty, n = tile n-1 in the tileset (left-to-right, top-to-bottom)
const rows = csv.trim().split('\n').map((r) => r.split(',').map(Number));
rows.forEach((row, y) => row.forEach((gid, x) => {
  if (!gid) return;
  const flipH = gid & 0x80000000, flipV = gid & 0x40000000;
  const tile = (gid & 0x1fffffff) - 1;
  drawTile(tile, x, y, flipH, flipV);
}));

The flip bits only appear when Reuse flipped tiles is turned on.

FAQ

What files do I get?

A tileset PNG with each unique tile once, a Tiled map (.tmj, JSON) that references it, and a CSV of tile indices (0 = empty, 1 = first tile) for custom engines.

What does 'Reuse flipped tiles' do?

If a tile is a mirror image of one already found, it is stored once and placed with Tiled's horizontal/vertical flip flags. This shrinks tilesets for symmetric levels; your engine must support flip flags (Tiled, Godot's Tiled importers and most loaders do).

Why are there more unique tiles than expected?

Usually the grid is misaligned (set Offset X/Y) or the image was scaled or saved as JPEG, so identical tiles differ slightly. Use the original PNG at 1× or raise Tolerance a little.

How do I open the result in Godot?

Open the .tmj in Tiled and export, or use a Tiled importer add-on for Godot. For a pure Godot workflow, create a TileSet from the tileset PNG and place tiles from the CSV with a small script.

Is my image uploaded?

No. Everything is computed locally in your browser.