Google Authenticator Export & 2FA Migration Tool (Turn the Export QR Code into QR Codes and Secret Keys for Another App)

Completely free, with no extra charges. You may freely use the output commercially.

About this tool

This tool is for anyone moving two-factor authentication accounts out of Google Authenticator into Microsoft Authenticator, 1Password, Bitwarden, Aegis or another app, whether because of a new phone or a switch of authenticator. Scan the QR code that Google Authenticator shows under “Transfer codes” → “Export codes” with your camera or from an image, and the tool shows each account as a standard otpauth:// QR code, its secret key and its current verification code. Exports split across several QR codes can be loaded together.

In the new app you only need to scan one QR code per account, and the migration has worked when the code shown here matches the code in the new app. You can also print all QR codes as a paper backup, or save them as an otpauth:// list or CSV. For developers, it calculates codes from a secret key so you can check whether a server and a device clock disagree. All processing happens entirely in your browser (no data is sent).

Load the export QR code

On Android, the export screen often blocks screenshots. If that happens, open this page on a computer or a second phone and point its camera at the QR code on the screen. When the export is split into several QR codes, show them one after another and each one is added in turn.

The camera is off.

You can also paste a copied image on this page with Ctrl+V (⌘+V on a Mac).

Add from a secret key and check codes

You can also add an account from the “setup key” or “secret key” (a string of capital letters and the digits 2–7) shown on a service’s 2FA settings page. If you implement two-factor authentication yourself, you can compare the codes your server produces with the codes shown here.

Advanced settings (usually leave as is)

How to use

Move accounts from Google Authenticator to another app

  1. In Google Authenticator, open the menu and choose “Transfer codes” → “Export codes”, unlock your phone, select the accounts to move and press “Next”.
  2. Open this page on another device, press “Scan with camera” and point it at the QR code. When you move several accounts the export may be split into several QR codes, so press “Next” and show every one. The progress is shown as, for example, “read 2 of 3”.
  3. In the new app, choose “Scan a QR code” when adding an account, then press “Show QR code” for each account here and scan it. If you use the new app on this same device, you can show the secret key and register it with “Enter a setup key” instead.
  4. The migration worked when the code in the new app and the verification code shown here are the same. Check every account before deleting them from the old app.

When the verification codes do not match

Time-based (TOTP) codes shift to the previous or next code when a device clock is 30 seconds off. Enter the code from the new app or your server in an account’s “Check a code” field and the tool shows which time step, up to two before or after (±60 seconds), it matches. That tells you whether the clock is wrong or the secret key is. If the clock is off, set the device’s date and time to automatic.

Things to keep in mind

  • The secret key is the spare key to your two-factor authentication. Do not show it while sharing your screen or in front of other people. This tool stores nothing it loads, and everything disappears when you close the page. To be extra careful, you can disconnect from the network after the page has loaded; it still works offline.
  • If you use Google Authenticator signed in to your Google account, signing in with the same account on the new phone syncs your codes automatically, so you do not need this tool. Use it when moving to an app from another company.
  • Passkeys, codes sent by SMS or email, and push approvals (such as Microsoft Authenticator sign-in requests) cannot be moved this way. Register them again from each service’s settings page.
  • Google Authenticator exports do not include the period, so it is treated as 30 seconds. Accounts that use MD5 can be loaded and exported, but their codes cannot be calculated.
  • Services that use their own code format, such as Steam Guard, will not match the codes shown here.

How it works and sources

A Google Authenticator export QR code is otpauth-migration://offline?data= followed by the list of accounts encoded with Protocol Buffers and then Base64. This tool decodes it and rewrites each account in the otpauth://totp/Issuer:account?secret=...&issuer=... format that most authenticator apps can read. Verification codes are calculated with RFC 6238 (TOTP) and RFC 4226 (HOTP) using the browser’s Web Crypto API, and the results have been checked against the test values in the RFC appendices.

Why the export QR code doesn’t work in Microsoft Authenticator and similar apps, and the full flow from loading an export split across two QR codes to checking the codes in the new app, are shown with screenshots in the walkthrough “Move Google Authenticator 2FA Codes to Another App”.

To create the passwords themselves, use the password generator; to see only what a QR code contains, use the QR code reader.