Press F3 on Java Edition to open the debug screen and see your coordinates
Look for the XYZ values on the left side of the debug screen
Use the map screen on Bedrock Edition if coordinates are enabled
Turn on Show Coordinates in world settings on Bedrock Edition
Check the top-left corner of the screen on Bedrock Edition for coordinates
Use the /tp command with your current position if cheats are enabled
Read the coordinate values as X, Y, and Z
X shows east-west position
Y shows height
Z shows north-south position
