Coordinates in Minecraft are three numbers that tell you where you're standing: X and Z define your horizontal position, and Y is your height. In Java, the F3 shortcut shows them, while in Bedrock there's an option in the world settings or the command /gamerule showcoordinates true. Below we explain how to read coordinates, how to write them in commands, and how to convert them for the Nether.
- X increases going east, Z increases going south, Y is the height from -64 to 320.
- Java: the F3 key, and on some laptops and Macs, Fn + F3.
- Bedrock: the option to show coordinates in the world settings.
- In commands, ~ means an offset relative to the world, and ^ relative to the direction you're facing.
What X, Y and Z mean
According to the Coordinates page on the Minecraft Wiki, the X axis shows distance to the east (positive values) or west (negative) from the center of the world. The Z axis works similarly, but positive values mean south and negative mean north. The Y axis is height: in the Overworld it ranges from -64 to 320, with sea level at height 63. The player's position is the center of the base of their character: when the screen shows Y=63, their feet are at height 63 and their eyes at 64.62.
In practice: walking east increases X, walking north decreases Z. This is the opposite of a typical map, where values increase going north, so it's easy to get confused. Without coordinates, you can figure out direction from the sun, which rises in the east and sets in the west.
From coordinates you can also work out the chunk number: it's the X or Z coordinate divided by 16 and rounded down. You can read more about chunks in our article chunks in Minecraft.
How to turn on coordinates in Java
In Java, press F3, or on Macs and some laptops, Fn + F3. On the debug screen, in the top left corner, you'll see an XYZ line with your exact position, and below it the block position and chunk position.
The XYZ line gives your position with decimals, while the Block line shows the block you're standing on, and those are the numbers worth writing down. The Facing line shows the direction you're looking and the axis, for example north (Towards negative Z), meaning north and decreasing Z. This is the easiest way to check which way to go to reach a saved location.
Coordinates are also easy to copy. According to the Controls page on the Minecraft Wiki, a short press of F3 + C copies your position and facing direction to the clipboard as an /execute in … run tp @s command, which you can paste for a friend in chat. Don't hold this combination down, because holding it longer triggers a deliberate crash, useful only for debugging.
If you don't want to keep the whole F3 screen open, press F3 + F6. This opens the "Debug Options" menu, where you can set each element of the screen individually, and set player position to "Always". According to the Debug screen page, coordinates will then be visible without opening the overlay. Mojang is also testing a new look for the F3 screen in the 26.4 snapshots.
On some servers you won't see coordinates, because the admin enabled the reduced_debug_info game rule. This hides part of the information from the F3 screen, even elements set to "Always".
How to turn on coordinates in Bedrock
In Bedrock, you turn on coordinates in the world settings by checking the "Show Coordinates" option. Your position will appear in a box in the top left corner of the screen. The same effect can be achieved with the command /gamerule showcoordinates true, but for that you need cheats enabled or operator permissions. On keyboard, you can copy your position with Ctrl + Alt + C, if you enable the "Copy Coordinate GUI" option in the Creator tab of the settings.
On Bedrock servers, the world owner decides whether coordinates are visible. If the option is disabled, use a map or a Compass, as we describe in our guide Map and Compass.
Coordinates in commands and in the Nether
Commands accept absolute coordinates, for example /tp 100 64 -200, or relative ones. The tilde means an offset along the world's axes: writing ~10 ~ ~-30 means 10 blocks east and 30 blocks north of your current position. Tildes can be combined with numbers, so /tp ~ 64 ~ will leave X and Z unchanged and move you to height 64.
The caret sign means local coordinates, calculated relative to the direction you're facing. The command /tp ^ ^ ^5 moves you 5 blocks forward. Carets can't be mixed with tildes or numbers, as the game will report the error "Cannot mix world & local coordinates". We've gathered ready-made teleport examples on the page teleporting to coordinates.
In the Nether, horizontal distances are 8 times shorter than in the Overworld: 1 block in the Nether equals 8 blocks in the Overworld, and height doesn't change. That's why a Nether portal works as fast transportation. You can do the conversions using our tools Nether calculator and coordinates calculator, and ways to orient yourself in the terrain are described in the guide how not to get lost.