Microsoft.com/link Code: Enter your Device Code to Sign In

Quick answer: When a device or app shows a code, go to microsoft.com/link on a phone or computer, type the code, and sign in with your Microsoft account to authorize the device.

This guide walks through Microsoft account linking step by step, with a quick-answer box above, a clear how-to, a troubleshooting table and links to related guides so you can get in and get on with it.

What is Microsoft account linking

Microsoft uses a device code flow so you can sign in on TVs, consoles and apps without typing your full password on a small or shared screen.

The device shows a short code, and you confirm it on a trusted browser, which keeps your password off the less secure device.

Go to microsoft.com/link

Purpose Device code sign-in for a Microsoft account
Link page microsoft.com/link
Common uses Xbox apps, media apps, smart device setup
What you need The on-device code and your Microsoft login
Security Optional two-step verification approval

Why it matters

Typing a long, complex password using a game controller or a television remote is painful and insecure on a shared screen. The device code flow at microsoft.com/link solves that by moving the password entry to a phone or computer you already trust.

This pattern shows up across the Microsoft world, from setting up apps to linking devices, so learning it once pays off repeatedly. It is also a quiet security upgrade, since your password never touches the limited device.

Before you begin

The link flow is designed for devices that are awkward to type on. Have these ready so the short-lived code does not expire on you.

  • The code displayed on the device you are trying to sign in on.
  • Your Microsoft account email and password on a second device.
  • Your second-factor method, such as the Authenticator app, within reach.

How to use microsoft.com/link

  1. Start the sign-in on your device or app so it displays a code.
  2. On a phone or computer, open microsoft.com/link.
  3. Enter the code exactly as shown, including any letters.
  4. Sign in with the Microsoft account you want the device to use.
  5. Approve any two-step verification prompt, and the device finishes signing in on its own.

Important points to remember

  • The code is single use and expires within minutes, so enter it quickly.
  • Use the exact Microsoft account you want linked, since switching later can be fiddly.
  • This flow protects your password by keeping it off the shared or limited device.
  • Microsoft will never ask you to share a code by phone or message with another person.

Where you will see this flow

Many Microsoft-connected devices and apps use this same code approach, and recognising it means you will not be thrown when a new gadget asks you to visit the link page.

  • Smart devices and apps that need a Microsoft account during setup.
  • Media and entertainment apps signing you in on a television.
  • Tools that prefer not to collect your password on a shared screen.
  • Any flow where a short code appears with the link address.
  • Situations where two-step verification adds a quick approval prompt.

Code safety basics

The device code flow is secure by design, but scammers try to misuse it by asking you to enter a code they generated. Only ever enter a code that your own device or app is showing you, never one that someone else sends or reads to you.

Reach the link page by typing microsoft.com/link yourself. A genuine sign-in keeps your password on your trusted browser and asks only for a code that originated on your device.

  • Only enter codes shown by your own device or app.
  • Never type a code someone else gave you over the phone or chat.
  • Type the link address yourself instead of following messages.
  • Keep two-step verification active on your Microsoft account.

Troubleshooting common problems

Problem What to do
Code expired Restart sign-in on the device to get a fresh code and enter it right away.
Code not recognised Check for confused characters such as zero and the letter O, then retype.
Wrong account linked Sign out on the device and repeat the link with the correct Microsoft account.
Two-step prompt never arrives Open the authenticator app or use a backup method from your security settings.

Tips for a smoother experience

  • Have your Microsoft password and second factor ready before you begin.
  • Never enter a code that someone else sent you, as that is a common scam.
  • Keep recovery options current so you can approve sign-ins without delay.

The link page exists to keep your password safe on devices that are hard to type on, so the whole process is just a quick code plus a normal Microsoft sign-in on a trusted browser.

The bottom line is that the link code flow keeps your password on a trusted screen while still signing in your television or console, which is a genuinely safer design. Treat the code as private and the whole process stays both quick and secure.