Check the server version
/versionPrints the block of version information in chat.

/version prints the version information of the server you are playing on: version name, data version, protocol and pack formats. Admins use it to check which build is running, and data pack authors to pick the right pack format.
/version// In single player, no cheats are needed.
/versionPrints the block of version information in chat.
Fill in the fields, then copy the command.
Command generatorAfter Server version info:, the chat shows name (the version name), id, data (the data version), series, protocol, build_time, pack_resource and pack_data (the resource pack and data pack formats), and stable, which tells whether the build is a release.
Read pack_data before writing the pack.mcmeta of a data pack you load with /datapack. The command needs permission level 2. For the list of commands you can use, see /help.
✓ Checked in Java Edition 26.3 · updated 2 November 2026
No, it shows the version of the server running the world. In singleplayer, that is the built-in server of your game, so both match.
It is the data pack format number of this version. Use it in the pack.mcmeta file of your data packs.
Type it in the chat: /version. In single player it works even with cheats off; on a server it needs operator level 2.
Every player in single player, cheats on or operator level 2 on a server.
It is in the official command tree since Java Edition 1.21.6.