If your phone screen is broken but the phone still powers on, your authenticator codes are almost certainly still on it. Reach one working code with a screen reader, a mouse or screen mirroring, use it to register a new device on each account, and only then repair, wipe or trade in the old phone.
The phone is in your hand. Nothing was stolen, nothing was deleted, and the TOTP secrets for every account you protect are still sitting in its storage producing correct six-digit codes this minute — behind a screen that is black, or lit but deaf to your finger, or asking for a passcode you cannot type. The authenticator is working perfectly. The glass is not.
That is a different problem from a lost phone, and almost every page that ranks for it answers the lost-phone question instead: file the recovery form, wait days, hope. You do not need that yet, because you are still holding the secret material. What you need is a route to one working code per account, in the next hour, and then a sequence that moves every account onto a device you can actually use before this phone goes to a repair bench, a trade-in envelope or a drawer. All three of those end the same way, and a repair is not the safe one.
If the phone is genuinely gone rather than broken, this is not your page: start at lost your phone? how to recover your 2FA codes. If the app was deleted but the phone is fine, what a reinstall actually brings back is the shorter answer. If it was stolen rather than mislaid, so that somebody else is holding it, the order of operations changes again and phone stolen? two factor authentication, in order is the page written for that. Stay here if the device still exists and the fault is physical.
The short answer
- Work out which of four faults you have before you try anything, because the four have almost nothing in common. Dead display with live touch, live display with dead touch, no power at all, and a device that boots to a lock screen you cannot satisfy.
- Do not spend your first working code on signing in to read email. Spend it on opening one account's security settings and registering a second device.
- Take the export route if your app has one, because one QR code moves every entry at once and saves you an hour of per-account work.
- Add the new device before you remove the old one, and confirm the new device produces a code the service accepts.
- Collect fresh backup codes at every stop. They are free, and they are the thing that makes the next failure boring.
- Wipe last. Not before the repair booking, not before the trade-in quote, and not until the list is finished.
What is still on that phone, and what is already gone
A TOTP entry is a shared secret plus a clock. The app keeps the secret, reads the time, and computes a code from the two; nothing is fetched and nothing is sent, which is why the codes keep coming on a phone with no SIM and no Wi-Fi. The code changes because the clock does, on a step that RFC 6238 recommends be 30 seconds by default. That is your entire working window per attempt, and it is the reason the order of operations below matters so much: you want the browser already sitting on the "enter your code" box before you go looking at the phone.
What is gone, or at least out of reach, is the file. The secrets live in the app's private storage, encrypted at rest with a key the device will not release without the passcode. There is no document you can copy off with a cable, and the apps that do offer a way out — an export, a sync, a backup — all run that export through the screen. So the whole problem reduces to one question: can you drive the user interface of a phone whose interface is broken?
Usually yes. Four faults, four answers.
Triage: four faults, four different nights
Find yours first. The quickest test costs nothing: press the side button and listen. A phone that chimes, vibrates or rings when called is booted and healthy underneath.
| What is broken | How to confirm it | The route that works |
|---|---|---|
| Display dead, touch alive | It vibrates on touch, rings when called, reacts to a long press | A screen reader, which speaks what you touch |
| Display alive, touch dead | You can see the lock screen, nothing responds to a finger | A pointer: mouse over USB, or mirroring from a computer |
| No power at all | No chime, no vibration, no charging indicator after an hour | Charge properly, then force restart; then it is a repair question |
| Boots, will not unlock | Lock screen is visible, biometrics or the keypad fail | Mirroring, an external keyboard, or the long route |
Display dead, touch alive
This is the luckiest version, and the one nobody tries, because a black screen feels terminal. It is not: the phone can tell you the code out loud.
On Android, hold both volume keys for about three seconds. Google documents that shortcut as a way to turn TalkBack on and off, and it works from the shortcut itself without needing the Settings app. You can also say "Hey Google, turn on TalkBack". Once it is on, the screen reader speaks whatever you touch — including the six digits — and a double tap activates whatever was last spoken. It is slow and it is strange, but it is enough to open an authenticator and hear a code.
On iPhone, VoiceOver does the same job, and the way in costs nothing: Apple's own guide lists asking Siri, and the wording to use is "Turn on VoiceOver". If you had already set up the Accessibility Shortcut, triple-clicking the side button does it too. Apple is explicit that the shortcut has to be configured first — "Go to Settings > Accessibility > Accessibility Shortcut, then select the features that you use the most" — so if you never did, Siri is the route.
The limitation is worth saying plainly: a screen reader can read you a code, but it cannot read you a QR code. The bulk export described further down needs eyes on the display, so in this fault you re-register account by account, listening to one code at a time.
Display alive, touch dead
You can see everything and change nothing. The fix is to give the phone a pointer it will listen to.
Android has supported USB host mode for years, which is the whole basis of USB On-The-Go. A USB-C adapter with a full-size USB port, plus any wired mouse, puts a cursor on the screen and you drive it like a desktop. Add a keyboard through a hub and you can type a passcode as well. If the phone is a Samsung, you get something better: Samsung DeX turns the phone into a desktop on an external monitor, and Samsung documents connecting a keyboard and mouse over Bluetooth or through the adapter's USB port. Many recent Android phones will also mirror to a monitor over a USB-C to HDMI cable, which gives you a big, readable copy of a cracked display.
On iPhone, a pointer works but has to be switched on first. Apple supports wired and Bluetooth pointing devices through AssistiveTouch: "Plug in your wired mouse, trackpad, eye-tracking device, or Bluetooth device using a Lightning or USB-C port", and for Bluetooth, "Go to Settings > Accessibility, and select Touch. Select AssistiveTouch > Devices, then select Bluetooth Devices" (Apple). Those are taps you cannot make, so the order is: ask Siri to turn on AssistiveTouch, then plug the mouse in.
The route most people miss on an iPhone is the Mac. iPhone Mirroring puts the phone's screen in a window on a Mac and lets you drive it with the trackpad and keyboard, and crucially it is designed to run with the handset untouched: Apple's requirements are that "your iPhone is locked and near your Mac", on iOS 18 or later with a passcode set, signed in to the same Apple Account with two-factor authentication, with Bluetooth and Wi-Fi on, and a Mac on macOS Sequoia 15 or later with Apple silicon or a T2 chip (Apple). The first connection asks you to unlock the iPhone, and you type that passcode on the Mac. A phone with a dead digitiser satisfies every one of those conditions. Windows has a rough equivalent for some Android handsets: Phone Link's phone-screen feature, where "single click behaves as a tap", though Microsoft limits it to selected devices and markets and it has to have been paired before the accident.
The device will not power on
Do the boring things first, properly, because a flat battery and a dead phone look identical. Use a charger and cable you have seen work on another device, plug into a wall socket rather than a laptop port, and leave it for an hour before concluding anything — a deeply discharged battery can show nothing at all for several minutes. Then force a restart: on a modern iPhone, press volume up, press volume down, then hold the side button until the logo appears; on most Android phones, hold power for thirty seconds, or power and volume down together.
If it still does nothing, you are in repair territory, and this is the moment to be specific with the shop. What you want is the cheapest intervention that keeps the storage intact — a charging port, a battery, a screen — and what you must avoid is a mainboard replacement or a "we will just reset it". Say out loud that the data matters more than the phone, and get that written on the ticket.
And know the odds before you hand it over. Apple's own repair terms state that "it is your sole responsibility to back up all existing data, software, and/or programs from your product", and go further: "Data loss during service is always a possibility, and in some cases, data may be unrecoverable, erased, or reformatted during service" (Apple repair terms and conditions). A screen repair that comes back as a replacement device comes back empty. Assume that outcome, and treat anything you recover beforehand as the real win.
If the board itself is dead, the honest answer is the unwelcome one: those TOTP secrets are not recoverable from outside the device, and no authenticator vendor and no repair shop can extract them. At that point the phone has stopped being part of the plan, and the route is backup codes, a cloud backup if one exists, and per-service recovery — lost your phone? how to recover your 2FA codes is the sequence, and if the accounts you need are tangled with the mailbox that is supposed to rescue them, locked out of email and 2FA is the one that untangles the ring.
It boots, but you cannot get past the lock screen
Two common versions. Either the break took the fingerprint sensor or the face camera with it and you have dropped back to the passcode, or the digitiser is dead exactly where the keypad is.
On Android, an external keyboard over USB will usually type a PIN at the lock screen, so the OTG adapter route solves this one too. On iPhone, the Lock Screen is far less accommodating to external input, and the realistic answer is iPhone Mirroring, where the passcode is typed on the Mac. A trusted computer the phone has been paired with before is sometimes enough to get a local backup off even while locked, but on a device that has rebooted since it was last unlocked, it will not be, and this is not a good place to spend your evening.
If none of that lands, stop. The accounts are reachable by other routes and your time is better spent there than on the handset.
Spend the first code on a registration, not a login
This is where most people lose the evening. They get a screen reader talking, they hear a code, they use it to sign in and read their email, and twenty minutes later they are at the next account with a phone that has gone back to sleep and a route they have to rebuild from scratch. A code buys you one session. A registration buys you every session after that.
The sequence, per account:
- Set the stage on a laptop first. Open the account, go through the password, and stop on the screen asking for the six-digit code. Do not touch the phone until that box is on screen, because you have about 30 seconds from the moment you read a code.
- Read or hear one code, and sign in. One attempt. If it is rejected because the window closed, wait for the next one rather than retyping the same digits.
- Go straight to security settings, not to the inbox. Find the two-factor section and choose to add an authenticator app. The service will show you a QR code and, almost always, a "cannot scan it?" link with the secret as text.
- Scan that QR with the new device. Not the broken one. The new phone, or a desktop authenticator, or a second device you already trust.
- Prove it before you break anything. The service will ask you to confirm with a code from the new device. Do that, and only then consider the account moved.
- Generate backup codes while you are in there. Google issues ten and notes that "after you use a backup code to sign in, that code becomes inactive" (Google); most services do something similar. Put them somewhere that is not a phone — where to store your 2FA backup codes is the argument about where, and it matters more tonight than usual.
- Remove the old registration last. Deleting the broken phone's entry before the new one is confirmed is how a bad evening becomes a bad fortnight.
Work the list in this order: the mailbox everything else recovers through, then the password manager, then the domain registrar and any cloud console, then money, then anything with a card number in it. Stop when you are tired. The accounts you did are permanently fixed, and the ones you did not are still reachable as long as you have not wiped the phone, which is the whole reason the wipe comes last.
The export shortcut, when the app has one
Per-account re-registration is slow. If you can see the screen and drive a pointer, there is a shortcut that moves everything in one move.
Google Authenticator has a built-in transfer: "In the Authenticator app, tap Menu and then Transfer codes and then Export codes. You'll be asked to unlock your device", and the new device imports by scanning the QR it produces (Google). Older builds label the same menu "Transfer accounts". If more than a handful of entries are selected, the app produces several QR codes in sequence. Aegis and 2FAS have encrypted export files that do the same job through a file rather than a camera. Per-app steps for moving to a new phone, including Microsoft Authenticator and Authy, are collected in the new-phone guides.
Two things to know before you use it. First, if the receiving phone cannot be held up to the broken one, photograph the QR code with any other camera and scan the photograph — the importing app does not care where the picture came from. Second, and this is not a small point: that QR code is your plaintext secrets. It is not a login link or a token; anyone who photographs it over your shoulder owns every account in it. Import it, confirm the new device produces accepted codes, then delete the photograph and empty the deleted-items album as well.
If you are moving to KeyNesta specifically, the import path is documented in importing from Google Authenticator and importing from Aegis and 2FAS.
Before the repair, the wipe or the trade-in
Three different destinations, one shared rule: finish the account list first, and confirm each new registration, before the phone leaves your hands. Everything below assumes that is done.
For a trade-in or a sale, erasing is not optional and signing out is not enough. Apple's guidance is to back up, transfer, then "remove your personal information from your old device", and warns that "when you tap Erase All Content and Settings, your device is completely erased" (Apple). If you cannot drive the screen at all, Google's remote erase can do it for an Android phone, but only while the device "has power", "is connected to mobile data or Wi-Fi" and "is signed in to a Google Account" with Find Hub on (Google) — which is to say, do it before the battery dies, not after.
If the wipe has already happened and the authenticator on the clean phone opened empty, the question is no longer preparation but inventory: what was already off the device before the erase. How to recover Google Authenticator after a factory reset works through what each app restores, why every account still demands a code, and the one Android backup window that closes during setup.
For a repair, the shop does not need your passcode and should not have it. If the device can be erased before it goes in, erase it; if it cannot, accept that the data may not survive and say so on the ticket.
And for the drawer, which is where most broken phones actually go: a phone that still holds live TOTP secrets is not a dead object. Either finish the migration and erase it, or treat it as a credential and store it like one. A cracked handset in a kitchen drawer with twenty working secrets on it is a worse place to keep them than the sheet of backup codes everyone worries about.
Four things that do not work, and why people keep trying them
Pulling the secrets off with adb. This is the first suggestion on every forum and it fails twice over. USB debugging has to have been enabled before the accident, and even then Android shows a dialog you must approve: Google's own note is that the system "shows a dialog asking whether to accept an RSA key that allows debugging through this computer", a mechanism that "ensures that USB debugging and other adb commands cannot be executed unless you're able to unlock the device and acknowledge the dialog" (Android Developers). That is a tap, on the broken screen. And if you clear that hurdle, an authenticator's private storage is still not readable without root.
Mirroring and expecting to see the code. Screen mirroring tools are genuinely useful for driving a phone, but Android lets an app mark its window as protected content — the FLAG_SECURE flag in WindowManager.LayoutParams — which keeps that screen out of screenshots and off displays the system does not consider secure. Some authenticators set it. If your mirror shows a black rectangle exactly where the digits should be, that is what happened, and the answer is the screen reader or an external display rather than a workaround.
Reinstalling the app on a new phone and waiting. A reinstall restores only what something was already holding on your behalf, which varies enormously by app and is covered in what a reinstall actually brings back. Microsoft Authenticator's backup, in particular, does not cross platforms: accounts backed up from an iPhone cannot be restored onto an Android phone, because the two halves live in different clouds.
Calling someone to switch the second factor off. For a work or school account this genuinely works, because an administrator above your account can reset your methods, and that is the one good answer in the Microsoft threads that rank for this question. For a personal mailbox or a bank, nobody holds that power, and the support agent who could would be a single phone call away from doing it to someone else. The absence is the feature.
Where KeyNesta fits, and what it cannot do
KeyNesta generates TOTP and HOTP codes on your device. There is no account required to use it, no phone number anywhere in it, and nothing leaves the device unless you switch sync on — what our server stores is the itemised version.
For the situation on this page, the part that matters is what sync is for. Encrypted sync and encrypted backup files exist so that a broken phone is an inconvenience rather than an evening: the vault is already on your other devices, and a new device pulls it down and starts generating the same codes. 2FA backup and sync explains the mechanism and the trade it makes. Set up before a phone breaks, it removes this whole page from your life. Set up after, it does nothing for the entries that were only ever on the broken device.
Three limits, stated plainly, because planning around a product you have misread is worse than planning around nothing.
KeyNesta does not do passkeys, and it does not do security keys. It generates TOTP and HOTP codes and nothing else; passkeys are named on the features page among the things deliberately not built. Where a service offers a passkey or a hardware key as the route that does not depend on a phone at all, that is a good route and KeyNesta is not it — register one directly with the service.
Zero-knowledge means nobody here can recover a vault for you. The server holds ciphertext and no key that opens it, so a forgotten passphrase is a dead end for us in exactly the way it is for you. That is the deal, and what zero-knowledge costs you is the honest accounting of it.
And KeyNesta cannot read a broken phone. No authenticator can reach into another app's storage, on any platform. Everything above is about driving the handset you already own, because that is the only party with access to those secrets.
Once the codes are out, keep them where one broken screen cannot take them: 2FA backup and sync explains how KeyNesta's encrypted sync and backup files work, and the web app opens in any browser with no sign-up.
Frequently asked questions
My phone screen is broken but the authenticator still works. What should I do first?
Work out whether the display or the touch layer is the dead half, because the fix is different for each. If the phone vibrates and rings but shows nothing, turn on the screen reader and listen to the codes. If you can see the screen but nothing responds, connect a mouse through a USB adapter, or mirror the phone to a computer. Either way, use the first working code to register a new device rather than to sign in and read something.
Can a repair shop get my 2FA codes off a phone that will not turn on?
Only by making the phone turn on again. There is no way to extract an authenticator's secrets from outside a booted, unlocked device, so what you are really buying is a repair that revives the handset with its storage intact — a charging port, a battery, a display. Say explicitly that the data matters more than the phone, because the default assumption in a repair queue is the opposite, and a board replacement or a factory reset ends the conversation.
Is it safe to photograph the export QR code on a cracked screen?
It works, and the importing app will happily scan a photograph. Be clear about what you have made, though: that image is the plaintext secrets for every account in it, not a one-time link, so anyone who gets the photo gets the accounts. Take it somewhere private, import it immediately, confirm the new device produces accepted codes, then delete the picture and empty the recently-deleted album too.
Will mirroring my Android phone to a computer show the six-digit code?
Sometimes, and you will know within seconds. Android lets an app mark its screen as protected content, which keeps it out of screenshots and off displays the system does not treat as secure, and some authenticators use that. If the mirrored window shows a black rectangle where the digits belong, switch to a screen reader reading the code aloud, or to a wired external display, instead of hunting for a tool that defeats the flag.
Do I have to re-register every account tonight, or only the important ones?
Only the ones that would ruin a week, and in a deliberate order: the mailbox everything else recovers through, then the password manager, then the registrar and any cloud console, then anything holding money. The rest can wait, as long as you have not wiped the phone. That is the real reason the wipe goes last — an unfinished list stays recoverable while the device still exists, and stops being recoverable the moment it is erased.
Can I recover Google Authenticator from a broken phone?
Usually yes, if the phone still switches on, because the secrets are still stored in the app. Get a route to the screen (a screen reader for a dead display, a mouse or mirroring for dead touch), then use Google Authenticator's own "Transfer codes" then "Export codes" option to move every entry to a new device at once (Google). If you cannot see the screen, register a new device account by account instead. If the phone will not power on at all, nobody can extract the secrets from outside it, and the route is backup codes and each service's recovery.
How do I get 2FA codes off a phone with a broken screen?
First find which half is broken. If the display is dead but touch works, turn on TalkBack on Android or ask Siri for VoiceOver on iPhone and listen to the code. If the display works but touch does not, connect a wired mouse through a USB adapter, or mirror the phone to a computer. Then spend the first code on registering a new device in the account's security settings, not on signing in, confirm the new device's code is accepted, collect backup codes, and remove the old entry last.
Takeaway
A broken phone with a working authenticator is a hardware problem wearing a lockout costume. The secrets are intact, which means the whole job is finding one route to the user interface — a screen reader for a dead display, a mouse or a mirroring session for a dead digitiser, a charger and a force restart for a phone that seems gone — and then spending what that route gives you correctly. Codes buy sessions; registrations buy everything afterwards. So set the laptop on the confirmation screen first, hear or read one code, go straight to security settings, add the new device, prove it works, take the backup codes, and only then remove the old entry. Work down from the mailbox to the money. Leave the phone intact until the list is done, because the repair bench and the trade-in envelope are both one-way doors, and nobody — not the shop, not the service, not us — can open an account for you once the device holding the secret has been wiped.
Related guides
Sources
- RFC 6238, "TOTP: Time-Based One-Time Password Algorithm"
- Google Accessibility Help, "Get started on Android with TalkBack"
- Apple Support, "Turn on and practice VoiceOver on iPhone"
- Apple Support, "About the Accessibility Shortcut"
- Apple Support, "How to use a pointer device with AssistiveTouch"
- Apple Support, "iPhone Mirroring: Use your iPhone from your Mac"
- Apple Support, "What to do before you sell, give away, or trade in your iPhone or iPad"
- Apple, "Repair Terms and Conditions"
- Samsung Support, "Use a keyboard and mouse with Samsung DeX"
- Microsoft Support, "Setting up and using phone screen in the Phone Link"
- Microsoft Support, "Back up your accounts in Microsoft Authenticator"
- Google Account Help, "Get verification codes with Google Authenticator"
- Google Account Help, "Sign in with backup codes"
- Google Account Help, "Find, secure, or erase a lost Android device"
- Android Developers, "Android Debug Bridge (adb)"
- Android Developers, "WindowManager.LayoutParams"