To log in to WhatsApp Web, open web.whatsapp.com, then scan the QR code shown in the browser with your phone: WhatsApp → Settings → Linked devices → Link a device. The code is not a normal link, and you do not scan it with your camera app; you scan it from inside WhatsApp. This guide covers the exact steps for iPhone and Android, why the code expires, what each error means, and how to log out of a shared computer. Related: WhatsApp QR codes for business, how to scan a QR code, and QR code security.
What the WhatsApp Web QR code actually does
The QR code on web.whatsapp.com pairs the browser with your WhatsApp account as a linked companion device. Your phone remains the primary device. The browser gets a synced view of your chats, and messages you send from the browser appear on the phone as well.
This is not the same as a scan-to-chat QR code. A business QR code that opens a chat with your number is a URL such as `wa.me/919876543210`. The WhatsApp Web QR is a login credential. Scanning it authorises a browser session, so it should be treated like a password, not like a business card.
The pairing also does not move your account to the computer. Your phone does not have to stay online while you use the browser, but WhatsApp requires you to open the app on the primary phone at least once every 14 days to keep linked devices logged in. After that, the linked session stops working. WhatsApp Web is a companion, not a replacement for the phone.
Log in to WhatsApp Web: step by step
- Open web.whatsapp.com in a current version of Chrome, Edge, Firefox, Safari, or Opera.
- Wait for the QR code to appear. If the page shows a loading spinner, check the internet connection and refresh once.
- On your phone, open WhatsApp and go to Settings → Linked devices → Link a device.
- Point the phone camera at the QR code on the computer screen. Keep the whole code inside the frame.
- Wait for the phone to confirm the link. The browser then loads your chat list.
On Android, the Linked devices entry is usually under the three-dot menu. On iPhone, it is in the Settings tab at the bottom of the WhatsApp interface. The label may differ slightly by version, but the path is the same.
Keep the phone unlocked and online during the scan. If the screen locks or WhatsApp goes into the background, the scan can fail even though the camera saw the code.
How to scan the WhatsApp Web code on iPhone
Open WhatsApp on the iPhone and tap the Settings tab. Tap Linked Devices, then Link a Device. If Face ID or Touch ID is enabled, authenticate when asked. The rear camera opens with a scanning frame.
Hold the iPhone so the QR code on the computer screen sits inside the frame. You do not need to take a photo or press a shutter button. When the code is recognized, WhatsApp shows a confirmation and the browser logs in.
If the camera does not open, check Settings → WhatsApp → Camera in iOS and make sure camera access is allowed. Also update WhatsApp from the App Store; very old versions can fail to link on newer web sessions.
How to scan the WhatsApp Web code on Android
Open WhatsApp and tap the three-dot menu in the top-right corner. Select Linked devices, then Link a device. Grant camera permission if Android asks for it. The scanner opens immediately.
Some Android phones put the Linked devices option under Settings instead of the menu, depending on the manufacturer and WhatsApp version. If you cannot find it, use the search box inside WhatsApp settings and type 'linked'.
If the scanner shows a black screen, close WhatsApp from the recent-apps screen, reopen it, and try again. A camera that is already in use by another app can also cause a black preview.
Why the QR code expires (and how to refresh it)
WhatsApp Web QR codes are short-lived by design. The browser refreshes the code periodically because a permanent login code would be a permanent credential. If you take too long to open the scanner, the code changes and the old one stops working.
To refresh it, reload the page or select the refresh option on the QR panel. Then scan the new code. Do not scan a screenshot of the old code; it has already expired.
If the code expires immediately every time, check three things: the phone has a stable internet connection, the phone and computer clocks are set automatically, and WhatsApp is updated. A phone that is offline cannot approve the link even if the camera reads the code perfectly.
WhatsApp Web not working: common errors and fixes
'Couldn't link device' usually means the phone could not complete the approval. Update WhatsApp, restart the phone, disable any VPN temporarily, and try again on a stable Wi-Fi or mobile connection. If it still fails, try a different browser.
The QR code keeps refreshing while you are trying to scan it. Open the Linked devices scanner first, then reload the WhatsApp Web page so the code is fresh when the camera is ready.
The camera is black or does not focus. Close other apps that may be using the camera, clean the lens, and check the camera permission for WhatsApp in the phone settings.
The browser loads but the chats do not sync. Refresh the page, check that the phone is online, and make sure the browser is not blocking storage or cookies for web.whatsapp.com. Private browsing modes can interfere with the session.
You have reached the linked-device limit. WhatsApp allows up to four linked devices in addition to the primary phone. Remove an old computer from Linked devices on the phone, then link the new one.
The desktop app fails but the browser works. Update or reinstall the desktop app. The same account rules apply, but the app has its own version and cache.
Is WhatsApp Web safe to use?
WhatsApp Web is safe when you use the real site and control the computer. Check that the address bar says web.whatsapp.com and that the connection is HTTPS. A lookalike domain can show a convincing QR code and steal the session if you scan it.
The most important rule: never scan a WhatsApp Web QR code that someone sends you. Scammers send QR codes in messages and ask you to scan them to 'verify' an account, join a group, or receive a prize. Scanning a login QR gives the attacker's browser access to your WhatsApp. WhatsApp will never ask you to scan a code from a chat to secure your account.
On a shared or public computer, log out when you finish. Closing the browser tab is not always enough, because the linked session can persist. Use Linked devices on your phone to review and revoke sessions you do not recognize.
Enable two-step verification in WhatsApp for an extra layer of protection. It does not replace the QR login, but it makes account takeover harder if someone obtains your phone number or registration code.
How to log out of WhatsApp Web
On the phone, open WhatsApp → Settings → Linked devices, select the computer you want to remove, and choose Log out. The browser session ends immediately and must be linked again to regain access.
On the computer, use the WhatsApp Web menu and select Log out. If you are on a shared machine and cannot access the phone, close the browser and clear its site data, but treat the session as still active until you revoke it from the phone.
Review the linked-devices list periodically. An unknown device is a signal to log it out and change your WhatsApp verification settings. The list shows the device type and last active time, which makes an unfamiliar session easy to spot.
WhatsApp Web vs the desktop app vs WhatsApp Business
WhatsApp Web runs in a browser tab and needs no installation. The desktop app is a standalone application with its own window and notifications, but it uses the same linked-device model. WhatsApp Business is a separate app for business accounts and adds catalog, quick replies, and labels; it can also use WhatsApp Web.
For a shared shop counter, the browser is convenient but easy to leave logged in. The desktop app is better for a dedicated computer because you can lock the screen without closing the session. Either way, the primary phone must reconnect to WhatsApp at least once every 14 days, and the session should be revoked when the computer changes hands.
If you need a QR code that customers scan to start a chat with your business, that is a different job. Use the WhatsApp QR code guide and the free WhatsApp QR generator instead of the login code.
