Skip to content
Exit Format

Export your data from 2FAS Auth

Free, open source 2FA app for Android and iOS that can sync your codes through your own Google Drive or iCloud.

Device and cloud, Android, iOS

Website Source code

Getting it out

Export a backup file

File

  1. Open Settings --> 2FAS Backup and tap Export.
  2. Set a password for the file when it asks - skip it and every secret is readable.
  3. Save the .2fas file somewhere off the phone, or share it.
Included
Secret keys, Issuers and account names, Digits, period and algorithm, Counter-based (HOTP) codes, Steam Guard codes, Icons, Groups, Custom order
Missing
App settings
Not sure
  • The password only covers the tokens, so group names stay readable.
  • Aegis reads it with or without a password, but Bitwarden Authenticator needs one without.
  • Icons are saved as picks from 2FAS's own icon set, so they mean nothing to other apps.
Official docs SourceSourceSource

Export tokens to a text file

File

Needs iOS only, A PIN set in 2FAS

  1. Open Settings --> Transfer tokens --> Export Tokens to file.
  2. Tick I understand the risk and confirm with your PIN.
  3. Save or share the .txt file it makes.
Included
Secret keys, Issuers and account names, Digits, period and algorithm, Counter-based (HOTP) codes, Steam Guard codes
Missing
Icons, Groups
Not sure
  • The file isn't encrypted, so every secret is in plain text.
SourceSourceSource

Export tokens as QR codes

File

Needs iOS only, A PIN set in 2FAS

  1. Open Settings --> Transfer tokens --> Export Tokens as QR codes.
  2. Tick I understand the risk and confirm with your PIN.
  3. Save or share the zip of QR codes it makes.
Included
Secret keys, Issuers and account names, Digits, period and algorithm, Counter-based (HOTP) codes, Steam Guard codes
Missing
Icons, Groups
Not sure
  • The zip isn't encrypted, and anyone holding it can add your accounts to their own phone.
  • The images are named with a hash, so you have to scan one to see which account it is.
  • Aegis, 2FAS and Bitwarden Authenticator can't import the zip in one go, so it's one scan per code.
SourceSource

Bringing it in

Import a 2FAS backup

File

  1. Open Settings --> 2FAS Backup and tap Import.
  2. Choose the .2fas file and type its password if it has one.
  3. Tap Import to merge it with the tokens you already have.
Included
Secret keys, Issuers and account names, Digits, period and algorithm, Counter-based (HOTP) codes, Steam Guard codes, Icons, Groups, Custom order
Missing
Not sure
  • Tokens with a secret you've already got are skipped.
Official docs Source

Import another app's export file

File

  1. On Android, open Settings --> Import Tokens. On iOS, it's Settings --> Transfer tokens.
  2. Pick the app you're leaving, or General OTPAuth file for a list of otpauth links.
  3. Tap Choose JSON file (or text or CSV, depending on the app) and pick the export.
Included
Secret keys, Issuers and account names, Digits, period and algorithm, Counter-based (HOTP) codes, Steam Guard codes
Missing
Icons, Groups, Notes, Favourites, mOTP and Yandex codes
Not sure
  • Password-protected exports don't work, so export without a password first.
  • 2FAS only takes 10, 30, 60 or 90-second periods and 5 to 8 digits, and skips anything else.
  • Raivo's JSON has to come out of its zip first.
Official docs SourceSourceSourceSourceSource

Scan Google Authenticator's export QR codes

QR code

  1. In Google Authenticator, go to Transfer accounts --> Export accounts.
  2. In 2FAS, open Import Tokens (Transfer tokens on iOS) and pick Google Authenticator.
  3. Tap Scan QR code, or Choose QR code for a screenshot, and repeat for each code.
Included
Secret keys, Issuers and account names, Digits, period and algorithm, Counter-based (HOTP) codes
Missing
Not sure
  • Android won't let you screenshot Google Authenticator, so take a photo of its QR codes with another device.
Official docs Source

Move to

Bring in from

Delete your data

  1. On Android, open Settings --> 2FAS Backup --> Synchronization settings and tap Delete backup file from Google Drive.
  2. On iOS, open Settings --> 2FAS Backup --> Advanced and tap Delete 2FAS Backup.
  3. Uninstall the app to wipe the tokens on the phone itself.

On iOS this also wipes the tokens on every other device synced to it, so turn sync off on those first.

On Android the tokens stay on each phone, they just stop syncing.

You can also clear it from Google Drive's Settings --> Manage apps --> 2FAS --> Disconnect from Drive, ticking the box to delete its data.

Official docs