From Minecraft Wiki

The official Mojang sources for downloading and properly licensing Minecraft can be found at Most, if not all, of them are also listed here.

  • Java Edition can be purchased from the Minecraft website. Gift codes can be bought for others for the same price as buying the game for oneself. A demo version is also available, and lasts for five in-game days.