Tip: If you're stuck in demo mode after purchasing Minecraft, see Can Only Play Demo Mode (Java Edition).
If you would like to try Minecraft: Java Edition before deciding to purchase the game, you can play the demo mode by registering for an account, then downloading the Minecraft launcher. This version of the game lasts five in-game days, or about 100 minutes.
Playing the demo mode is also a great way to see if your system can run Minecraft. For more information, see the system requirements.
The demo mode is available to any Mojang or Microsoft account that is logged into the launcher but does not own a purchased copy of Minecraft.
When you click PLAY DEMO on the launcher, you'll see the game's main screen with the option to start/continue a demo game or reset the demo and start over from the beginning.