The Short Answer
When a Plex.tv/link code does not work, the cause is usually one of four things: the code ran out, a character was typed wrongly, you are signed in to the wrong account, or the connection dropped. Each one takes under a minute to fix. This guide starts with what you see on screen, then gives the fixes in the order that saves the most time.
Start Here: What Did You See?
Match your situation to the line below, then jump to the fix that fits.
The page says the code is wrong or not recognized
The page accepts the code, but the TV stays on the same screen
The code vanished or changed while you were typing
The page asks you to sign in again and again
The page will not load at all
The TV never showed a code in the first place
Most people land on the first or third line, so those fixes come first.
Fix One: Get a Fresh Code
Codes are made to expire, so an old one is the number one reason for an error. Go to your TV, close the Plex app completely, and open it again. A new code appears. Use only that new one, and leave the old one behind.
Why this works: the TV and the page match codes in real time. Once a code expires, no amount of retyping will bring it back.
Fix Two: Re-Read the Code Slowly
Read the code on the TV one character at a time, with your finger on the screen if it helps. Look closely at letters and numbers that resemble each other, such as O and zero, or I and one. Then type it in again, without copying from anywhere.
Why this works: a single wrong character is enough to make the page say the code is not valid.
Fix Three: Check Which Account You Are Using
On the web page, look at the account name shown after you sign in. Is it the account you use on your TV and your media server? If not, sign out, then sign in again with the right one, and request a fresh code on the TV.
Why this works: the TV links to whichever account is signed in on the page.
Fix Four: Check Both Connections
Your TV and your phone or computer both need working internet. Open any website on the phone to test it. On the TV, try opening another app that needs the internet. If either one is offline, restart the router, wait a minute and try again.
Why this works: the link finishes only when both devices can reach Plex.
Fix Five: Change the Browser Setting
Try a different browser, such as Chrome, Edge or Safari. If you can, use a private window. Turn off any VPN or ad blocker for a few minutes.
Why this works: extensions and saved data in a browser can interrupt the page.
Fix Six: Restart the TV App, Then the TV
Close the Plex app, open it again and request a new code. If the problem repeats, turn the TV off, unplug it for a minute, plug it in and try once more. Check the app store for an update, because older app versions sometimes cannot finish linking.
Why this works: a restart clears small glitches that sit in the background.
When to Start Over From Scratch
If you tried all six fixes and the code still fails, start the whole process again in a clean order:
Sign out of Plex on the TV, if the app lets you.
Close the web page and open a new tab.
Type plex.tv/link into the address bar yourself.
Sign in with the right account.
Open Plex on the TV and request a brand new code.
Enter the code right away, before it expires.
Habits That Prevent It Next Time
Enter the code soon after it appears
Keep the TV screen on until the page confirms the link
Use the same account on every device
Keep the Plex app updated
Check the address bar before you type anything
Quick Questions
Q1: Why does my Plex.tv/link code say it is not valid?
The code has probably expired, or a character was typed wrongly. Get a fresh code and type it carefully.
Q2: How long does a code last?
Only a short time. If you are unsure, assume it has run out and request a new one.
Q3: Do I need to be on the same Wi-Fi as the TV?
Not always, but it can make things easier if linking fails.
Q4: Why does the TV not change after I enter the code?
Wait a few seconds, check that the TV is online, and close and reopen the app if nothing happens.
Q5: Can I use my phone to enter the code?
Yes. A phone with a browser works as well as a computer.
Q6: What if the page keeps asking me to sign in?
Try another browser or a private window, and check that cookies are allowed.
Q7: Do I need to link again after a restart?
Usually not. Once linked, the TV stays linked until you sign out.
The Takeaway
A code that fails at Plex.tv/link is almost never a big problem. Get a fresh code, read it slowly, check the account and the connections, and try another browser if needed. If all else fails, start over from the beginning in a clean order, and the link usually goes through.