Skip to content
Language:en

Minecraft chunk calculator

Convert block coordinates to chunk, sub-chunk and region file, and back.

Unofficial site. Not approved by or associated with Mojang or Microsoft. Minecraft is a trademark of Mojang Synergies AB.

Edition

Java Edition: F3 shows the chunk, F3 + G draws chunk borders.

Block position
Chunk
Chunk
—
Position in chunk
—
Sub-chunk (Y)
—
Chunk centre
—
Region file
—
Chunk in region
—

Blocks of this chunk: —

Runs entirely in your browser. Your files never leave your device.

About this tool

Chunks are the 16 × 16 columns the world is loaded and saved in. Knowing their borders matters for farms, spawn-proofing, slime chunks, chunk loaders and redstone that must not be split between two chunks. Type a block position to get its chunk, its place inside the chunk, the sub-chunk of its height and, in Java Edition, the region file that stores it.

It also works the other way round: type chunk coordinates and the tool fills in the first block of that chunk and its full block range. Negative coordinates are rounded like the game does, which is where hand calculations usually go wrong.

How it works

  1. Choose Java or Bedrock.
  2. Type the X, Y and Z of a block, or the X and Z of a chunk.
  3. Read the chunk, the position inside it, the sub-chunk and the block range.
  4. In Java, read the region file name to find it in the world’s region folder.

Chunk = floor(block ÷ 16), position inside = block mod 16, sub-chunk = floor(Y ÷ 16) and region = floor(chunk ÷ 32). A region file r.X.Z.mca holds 32 × 32 chunks.

Worked example

Block X −37, Y 64, Z 250. −37 ÷ 16 = −2.31, rounded down to chunk −3 (not −2, the classic mistake), and 250 ÷ 16 = 15.6, so chunk 15. Inside the chunk the block sits at x 11, z 10, in sub-chunk 4 (Y 64 to 79). Chunk −3, 15 covers blocks X −48 to −33 and Z 240 to 255.

In Java Edition that chunk is saved in the region file r.-1.0.mca, because −3 ÷ 32 rounds down to −1 and 15 ÷ 32 to 0.

Good to know

  • Keep a redstone machine inside one chunk: a contraption split across a border can break when only half of it is loaded.
  • In Java 1.20.5 and later, the spawnChunkRadius game rule sets how many chunks around world spawn stay loaded (2 by default). Set it to 0 to save resources, or higher for spawn-chunk farms.
  • In Bedrock, /tickingarea add keeps chosen chunks running with no player nearby, up to 10 areas per world.
  • To reset a damaged area in Java, back up the world, then delete the region files that cover it: each one spans 512 × 512 blocks.

Frequently asked questions

How do I see chunk borders in game?
In Java Edition press F3 + G to draw chunk borders, and F3 shows the chunk on the “Chunk” line. Bedrock has no chunk border view: use this calculator or a structure block.
Why is block −1 in chunk −1 and not chunk 0?
Chunk 0 covers blocks 0 to 15, so blocks −16 to −1 belong to chunk −1. The division rounds down, toward negative infinity.
Where are region files stored?
In Java, in the world folder under region/ for the Overworld, DIM-1/region for the Nether and DIM1/region for the End. Deleting one resets those 1,024 chunks.
Does Bedrock use region files?
No, Bedrock stores the whole world in a LevelDB database in the db folder. Chunk and sub-chunk coordinates work the same way.
How big is a chunk?
16 × 16 blocks across and the full world height: 384 blocks in the Overworld since 1.18 (Y −64 to 319), split into 24 sub-chunks of 16 × 16 × 16 blocks.