Coordinate Calculator
Switch between block, chunk and region coordinates, find the r.x.z.mca file for any position, work out structure-region cells, and measure distances.
How it works
Blocks, chunks and regions
- Chunk = 16×16 blocks (full world height).
chunk = floor(block ÷ 16); position inside the chunk =block mod 16(0–15). - Region file (Java, Anvil format) = 32×32 chunks = 512×512 blocks.
region = floor(chunk ÷ 32), filer.x.z.mca. The older McRegion format (.mcr, Beta 1.3–1.1) used the same grid. - Structure region = the spacing grid the generator uses for a structure type; the cell is
floor(chunk ÷ size). Structures are placed at a random chunk inside each cell (within the “separation” margin), which is why finders can list them without scanning every chunk.
Distances
Straight-line (Euclidean) distance is √(Δx² + Δy² + Δz²). Chebyshev distance is max(|Δx|, |Δy|, |Δz|) and describes square areas such as simulation distance or the 128-block despawn cube. Manhattan distance is |Δx| + |Δy| + |Δz|. Divide horizontal Overworld distance by 8 to get the equivalent Nether trip.
FAQ
How do I convert block coordinates to chunk coordinates?
Divide by 16 and round down: chunk = floor(block ÷ 16), which is the same as block >> 4. Negative values round toward negative infinity, so block −1 is in chunk −1, not chunk 0. A chunk with coordinate c covers blocks 16c to 16c + 15.
Which region file contains my chunk?
Region files hold 32×32 chunks (512×512 blocks). Region coordinate = floor(chunk ÷ 32) (chunk >> 5), and the file is named r.<x>.<z>.mca in the world's region folder (DIM-1/region for the Nether, DIM1/region for the End). For example chunk (30, −3) is in r.0.-1.mca.
What is a structure region?
The world generator divides the map into a grid of regions per structure type — 32 chunks for villages, temples and outposts, 80 for woodland mansions, 27 for Nether fortresses and bastions, 20 for End cities — and places at most one structure attempt in each cell. Knowing the cell tells you where the next one could be and why two of the same structure never generate right next to each other.
What is the difference between Euclidean, Chebyshev and Manhattan distance?
Euclidean is the straight-line distance (√(dx² + dy² + dz²)). Chebyshev is the largest single-axis difference — what square areas like render distance and the mob despawn checks use. Manhattan adds up the axis differences, i.e. the distance walked without diagonals. Minecraft's F3 screen shows Euclidean-style positions; most “within N blocks” rules are either Euclidean spheres or Chebyshev squares.
Does Bedrock Edition use region files?
No. Bedrock stores chunks in a LevelDB database inside the world folder, so there are no r.x.z.mca files — but chunk coordinates work exactly the same way (floor(block ÷ 16)).