Game development

Tiled GID flag decoder

Decode tile identity, flip flags and the local tileset index.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

Clear all four high flag bits before subtracting firstgid. A base GID of zero is an empty cell.

2147483653 has the horizontal flag and base GID 5; firstgid 1 gives local index 4.

Limits

Select the matching tileset first. Hexagonal maps interpret the two rotation flags differently from orthogonal maps.