Chunk Calculator for Minecraft
Find the chunk of any block in Minecraft, the blocks inside any chunk, the region file it is stored in, and how many chunks an area covers. Works for negative coordinates.
Block to chunk
Chunk: 0, 0
Position inside the chunk: 0, 0
Region file: r.0.0.mca
Chunk to blocks
X from 0 to 15
Z from 0 to 15
Centre: 8, 8
Region file: r.0.0.mca
Chunks in an area
The area touches 49 chunks
7 wide by 7 deep
Chunk X 0 to 6, Z 0 to 6
Information
Minecraft cuts the world into chunks of 16 by 16 blocks. Farms, redstone and mob spawning all depend on which chunk something is in, and the game does not always show you the chunk in the place where you are building. Enter a block's X and Z coordinates to get its chunk, where it sits inside that chunk and which region file stores it. Enter a chunk to get the blocks it covers, or two corners to see how many chunks an area touches. It follows the formulas on the Minecraft Wiki, including negative coordinates, and everything is calculated in your browser.
Examples
Which chunk is the block at X 27, Z -15 in?
Chunk X is floor(27 / 16) = 1 and chunk Z is floor(-15 / 16) = -1, so the block is in chunk (1, -1). Inside the chunk it sits at (27 mod 16, -15 mod 16) = (11, 1).
Where does a chunk start?
Chunk (1, -1) covers X 16 to 31 and Z -16 to -1. Coordinates that are a multiple of 16, such as X 96 and Z -32, are chunk borders: a block with both at a multiple of 16 is the north-western corner of its chunk.
Which region file holds block X 512, Z -1?
The block is in chunk (32, -1). A region holds 32 by 32 chunks, so the region is floor(32 / 32) = 1 and floor(-1 / 32) = -1, and the chunks are stored in the file r.1.-1.mca.
Frequently asked questions
What is a chunk in Minecraft?
A chunk is a 16 by 16 block column of the world. It reaches from the bottom of the world up to the build limit: in the Overworld it is 384 blocks tall, in the Nether 256 blocks in Java Edition and 128 in Bedrock Edition, and in the End 256 blocks. Chunks are the pieces the game loads and unloads as you move around.
How do I calculate the chunk of a block?
Divide the X and Z coordinates by 16 and round down: chunk X is floor(X / 16) and chunk Z is floor(Z / 16). Rounding down matters for negative numbers: floor(-3.14) is -4, so block X -1 is in chunk -1 and block X -17 is in chunk -2. The position inside the chunk is the coordinate mod 16, which is always between 0 and 15.
How can I see chunk borders in the game?
In Java Edition, press F3 and G together to show the chunk boundaries, or press F3 to open the debug screen, which lists the chunk you are in. In Bedrock Edition you can briefly see the borders by toggling fancy graphics. Coordinates that are divisible by 16 mark the edges between chunks.
What is a region file?
Java Edition saves chunks in region files, each holding 32 by 32 chunks, or 512 by 512 blocks. The file is named r.x.z.mca, where x and z are the chunk coordinates divided by 32 and rounded down. Knowing the region file helps when you want to back up, copy or delete one part of a world.
Does it work in the Nether and the End?
Yes. Chunks are 16 by 16 blocks in every dimension, so enter the coordinates you see in the dimension you are in. The calculator does not convert between dimensions; use the Nether calculator for that.
Can it tell me which chunks are slime chunks?
No. One in ten chunks is a slime chunk. In Java Edition which ones depend on the world seed, and in Bedrock Edition they are in the same places in every world. The calculator only does the coordinate maths and does not know your seed.
How far can the coordinates go?
The world extends 30 million blocks in each direction, so the calculator accepts whole numbers from -30,000,000 to 30,000,000.