Minecraft: Java Edition can be played only on PC: Windows, macOS, and Linux.
You can buy Minecraft: Java Edition from minecraft.net for $26.95 USD or local currency equivalent. This is a one-time purchase. You can buy an account for yourself, or buy a code to gift to someone else. Gift codes may not be available in all areas.
If you're interested in trying the game before making a purchase, visit our article on Minecraft's demo mode.
There are several payment methods available. Select your country when you are purchasing your game, and the site will automatically list the payment methods available for you.
Prepaid Minecraft cards are also available to customers in select countries. Visit http://minecraft.net/prepaid for store locations. Prepaid cards are coming soon to additional countries.
If you represent a school, museum, library, or other organization that wishes to use Minecraft for educational purposes, visit MinecraftEdu for information about bulk and educational discounts.