In the vanilla version of Minecraft Java Edition, players can see their coordinates by pressing 'F3' on their keyboards and opening the debug screen. It shows a lot of other information about the game ...
Mojang recently introduced a brand new F3 debug screen for Minecraft Java Edition in the latest snapshot 25w31a. This snapshot is part of the upcoming game drop that will release sometime in the fall.