How to Split a Tileset into 16×16 or 32×32 Tiles

Tilesets are the building blocks of 2D levels: grass, walls, water edges, doors and decorations, all packed into one image at a fixed tile size. Most engines can use a tileset as-is, but there are plenty of reasons to cut it into individual tiles: editing a single tile, building an image collection in a level editor, creating auto-tile rules, or simply browsing a huge pack to find the tiles you need.

This guide shows how to split a tileset into 16 × 16 or 32 × 32 tiles (or any other size) using a free tileset splitter, including the margin and spacing settings that many tilesets use.

Tileset Basics

Tile sizeTypical use
8 × 8Very retro, Game Boy-style art
16 × 16Classic retro RPGs and platformers
24 × 24Slightly more detailed retro art
32 × 32Modern pixel art games, more detail
48 × 48 and upHigh-resolution or hand-drawn tiles

A tileset image’s width and height should be multiples of the tile size, plus any margin and spacing. A 256 × 256 tileset with 16 × 16 tiles has 16 columns and 16 rows, 256 tiles in total.

Margin and Spacing in Tilesets

Many tilesets, especially those made for level editors like Tiled, include a margin (a border around the whole sheet) and spacing (a gap between tiles). Spacing helps prevent “bleeding”, where the edge of one tile shows up next to another in the game. If you ignore these when splitting, your tiles drift further off-grid with every column.

To check, use this formula: width = 2 × margin + columns × tile size + (columns − 1) × spacing. For example, a sheet with 1-pixel margin, 1-pixel spacing and 20 columns of 16-pixel tiles is 2 + 320 + 19 = 341 pixels wide.

How to Split a Tileset into Tiles

  1. Upload the tileset PNG to the sprite sheet splitter.
  2. Set “Define cells by” to Cell size and enter 16 × 16, 32 × 32 or your tile size.
  3. Enter the margin as the offset. Offset left and offset top equal the tileset margin, often 0 or 1.
  4. Enter the spacing. Horizontal and vertical spacing equal the gap between tiles, often 0, 1 or 2.
  5. Check the preview. Every dashed line should sit exactly on the edge of a tile. If they drift, recheck spacing.
  6. Keep “Skip empty cells” on to ignore blank slots.
  7. Download the tiles as PNGs in a ZIP.

Auto-detection works on tilesets with transparent gaps, but tiles usually touch, so entering the cell size yourself is faster and more reliable.

Keep Pixel Art Crisp

  • Never resize the tileset before splitting; resizing blurs the edges between tiles.
  • Export as PNG, which is lossless.
  • If you need bigger tiles, scale each tile by a whole number (2×, 3×, 4×) using nearest-neighbour scaling after splitting.

Splitting Huge Tilesets or Many Sheets

Big asset packs can include dozens of tilesets with the same tile size. Processing them one at a time is tedious. The batch image splitter applies the same grid to up to 20 images at once. For tile sizes that aren’t about games, such as 512 × 512 texture tiles or AI training crops, see how to split images into fixed-size tiles.

What to Do with Individual Tiles

  • Build a “collection of images” tileset in Tiled when tiles have different sizes.
  • Edit single tiles, such as recoloring a wall, then rebuild the sheet.
  • Create auto-tile or terrain rules by organizing tiles into folders.
  • Use tiles as sprites for props and pickups.
  • Print them for tabletop games; see printing a battle map at 1-inch scale.

A Worked Example

Say you’ve downloaded a dungeon tileset that measures 544 × 272 pixels, and the description says “32 × 32 tiles, 1 px margin, 2 px spacing”. Check the width with the formula: 2 × 1 + columns × 32 + (columns − 1) × 2. With 16 columns that’s 2 + 512 + 30 = 544, an exact match. If an asset pack’s numbers are off by a pixel, the extra pixel is usually at the right or bottom edge and doesn’t affect the tiles.

For the height: 2 + 8 × 32 + 7 × 2 = 272, also an exact match. So the grid is 16 columns × 8 rows, 128 tiles. In the splitter, set cell size to 32 × 32, offset left and top to 1, and spacing to 2. The dashed lines should land exactly on every tile edge.

Do You Even Need to Split It?

For level building, usually not. Tiled, Godot, Unity and GameMaker all import a whole tileset image and let you paint with it directly, as long as you enter the same tile size, margin and spacing there. Splitting is for the cases where you need individual files: editing, mixing tiles from different packs, building a collection of differently sized tiles, or using tiles outside a game engine.

Frequently Asked Questions

How do I split a tileset into individual tiles?

Upload it to a sprite sheet or tileset splitter, set the cell size to the tile size, enter the margin as offset and the spacing, then export the tiles as PNG.

What is the most common tileset size?

16 × 16 and 32 × 32 pixels are the most common for pixel art games.

Why are my split tiles shifted?

The tileset has a margin or spacing between tiles. Enter them as offset and spacing.

Should I use auto-detect for tilesets?

Usually not. Tiles often touch each other, so entering the cell size is more reliable.

How do I make tiles bigger without blurring?

Scale them by whole numbers with nearest-neighbour scaling after splitting.

Cut Your Tileset Cleanly

Splitting a tileset is all about the grid: tile size, margin and spacing. Get those three numbers right and every tile comes out perfectly. The free tileset cutter exports crisp PNG tiles in seconds, right in your browser.

Keep Reading

Leave a Comment