Both cards work just the same. Once you’ve redeemed your free Microsoft gift card code or Xbox gift card code to your Microsoft account, you can spend your balance at Microsoft Store online, on Windows, and on Xbox.