This article only applies to Minecraft: Java Edition prepaid cards and gift codes, not Minecraft for Windows 10 gift codes. For information about how to redeem a Minecraft for Windows 10 gift code, please visit the frequently asked questions page.
There are many ways of getting Mojang's games and services and if you get them in the form of a prepaid card or a gift code, you will need to redeem them through our account site.
Minecraft prepaid cards can be used on a new or existing Mojang account and will entitle the cardholder to one Minecraft license (a.k.a. one copy of Minecraft).
If you have purchased a Minecraft prepaid card at a retail store, or have received a Minecraft gift code, you can redeem your code by visiting our site here and clicking "REDEEM JAVA EDITION". You will be prompted to login or create a Microsoft account. Once this is complete you can redeem your code and finish setting up your Minecraft profile.
If you are experiencing any issues with redeeming your code, please contact support.