Split Tiled tile IDs and flip flags
GID → ID + flagsRead the two arrays together
In split JSON, ids[i] and flags[i] describe the same map cell. Zero is an empty cell. A flag mask of 12 means horizontal (8) plus vertical (4). The CSV export writes each flag into its own column.
Each tile block keeps its original coordinates and dimensions. Resolve a positive global ID with the highest tileset firstgid that is no larger than the ID. Subtract that value to get the local ID. Check your game's loader against the split JSON format before shipping.
Keep flipped tiles when a game loader cannot read packed IDs
When you flip a tile in Tiled, its tile layer stores the flag in the high bits of the global ID. A loader that clamps large values to its biggest signed integer can lose the tile ID before it sees the flags.
Select the correct layer format. Set Tile Layer Format to CSV in Tiled and save as TMJ. A Base64 layer stores bytes inside a string, which this tool reports as an unsupported input.
Read the worked example