Toolvito

Works on this device

Level Editor

Make a 2D tile map for a game: set the size of the grid, choose tiles from a palette of colours or cut them from a tileset picture, and paint, fill and erase on layers. Save the level as JSON, a layer as CSV, or the whole map for the Tiled map editor. Your pictures are opened in this browser and are not uploaded.

Your level

Cells across, 1 to 256.

Cells down, 1 to 256.

In pixels, 1 to 512.

Tool
Tile to draw with
Layer to draw on

Click or drag on the map to use the tool. With the keyboard: put the focus on the map, move the cross with the arrow keys (hold Shift for 5 cells) and press Enter or Space. A rectangle needs Enter at two corners; Escape stops it.

Tile map.

Ready. Choose a tile and draw on the map, or choose Try an example.

Palette

A picture of tiles of the tile size above, in rows. It is opened in this browser and is not uploaded.

Pixels around the edge of the picture.

Pixels between the tiles.

Layers

Your map

Size
Layers, from the bottom
Tiles
Cells with a tile on the chosen layer
Tiles used on each layer

How to use the editor

  1. Set the columns, rows and tile size, then choose Make a new empty map, or choose Try an example.
  2. Choose a tile in the palette. Add colour tiles with a name and a colour, or open a tileset picture and choose Cut the picture into tiles.
  3. Choose a layer and a tool: Paint, Erase, Fill or Rectangle.
  4. Draw with the mouse (drag to paint many cells), or put the focus on the map, move the cross with the arrow keys (hold Shift for 5 cells) and press Enter. For a rectangle, press Enter at one corner and again at the opposite corner.
  5. Check the table of tiles and the layer as text, then download the level as JSON, the layer as CSV, or a Tiled map.

How the tools work

  • Fill changes the cell and every cell joined to it through left, right, up and down neighbours that holds the same tile, as in a paint program.
  • Rectangle fills every cell between two corner cells, both included.
  • Layers are drawn from the bottom layer up. Empty cells (tile 0) show the layers below.
  • A tileset picture is cut like the Tiled map editor does: columns = floor((width − 2 × margin + spacing) ÷ (tile width + spacing)), and the same for rows. The tiles are numbered from 1, row by row.
  • Changing the size keeps each tile at its column and row; cells past the new edge are dropped.
  • Undo and Redo step through every change, also changes of layers, tiles and size.

The files

  • JSON: this page's own format with the size, the tiles and each layer as rows of tile numbers (0 is empty). You can open it again here to go on working.
  • CSV: one layer, one line for each row, tile numbers separated by commas.
  • Tiled map (.tmj): an orthogonal map in the JSON map format of the Tiled map editor, with one tileset whose first tile number is 1. With colour tiles, also download tiles.png, a picture of the colours that the map uses as its tileset; keep it in the same folder.

Worked example

The example is an island of 16 × 12 cells of 16 pixels. On the layer Ground, water runs round the edge, sand inside it and grass in the middle, with a pond of 4 × 3 cells. Filling the pond with Sand changes 12 cells. On the layer Objects, a wall of 8 cells and 4 trees stand on the grass.

Limits you should know

  • Up to 256 × 256 cells, 8 layers and 256 tiles; tiles of up to 512 pixels; pictures up to 8,192 pixels on a side and 50 MB.
  • Square (orthogonal) maps only; no isometric or hexagonal maps, objects, animated tiles or tile properties.
  • A saved JSON file holds the name of a tileset picture, not the picture. Open the picture again after you open the file.
  • The page does not make levels by itself (no random or procedural maps) and does not test paths.

Related tools