Skip to content
OTP Generator

QR Code to 2FA Secret Key

Upload, paste or scan a 2FA QR code to reveal the secret key, issuer and settings inside it, then generate codes right away.

1Upload, paste or scan the QR code

Drop a QR code image here

PNG, JPG or a screenshot. You can also paste one with Ctrl+V.

2Your secret key

The secret key, issuer and a live code will appear here.
Images are decoded in your browser and never uploaded.
On this page

Why extract the key?

A 2FA QR code is just a picture of a link such as otpauth://totp/Service:you?secret=KEY. Saving that key lets you add the account to a second device, keep an offline backup, or use a browser generator when your phone is not around.

How to use it

  1. When a site shows its 2FA QR code, take a screenshot.
  2. Drop the image above, press Ctrl+V to paste it, or scan with your camera.
  3. Copy the secret key and store it somewhere safe, such as a password manager.
  4. Finish setup on the site by entering the 6-digit code shown here.

Google Authenticator export codes

QR codes from Google Authenticator’s Transfer accounts screen start with otpauth-migration:// and can contain many accounts. This tool decodes them too. See the export decoder.

Frequently asked questions

Is the image uploaded?

No. The image is read with a canvas in your browser and decoded by a JavaScript QR library bundled with this site. It never leaves your device.

It says no QR code was found

Crop the screenshot closer to the code, make sure the whole code including its corners is visible, and avoid photos taken at an angle. Very small or blurry codes may not decode.

Should I keep screenshots of 2FA QR codes?

A QR code is as sensitive as a password, because anyone with it can generate your codes. If you keep one, store it encrypted (for example in a password manager) and delete it from your photo gallery and cloud photo backups.

Need a code right now?

Paste your key and get the current 6-digit code in seconds. Free, private and nothing to install.