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
- Open Settings --> 2FAS Backup and tap Export.
- Set a password for the file when it asks - skip it and every secret is readable.
- 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 SourceSourceSourceExport tokens to a text file
File
Needs iOS only, A PIN set in 2FAS
- Open Settings --> Transfer tokens --> Export Tokens to file.
- Tick I understand the risk and confirm with your PIN.
- 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.
SourceSourceSourceExport tokens as QR codes
File
Needs iOS only, A PIN set in 2FAS
- Open Settings --> Transfer tokens --> Export Tokens as QR codes.
- Tick I understand the risk and confirm with your PIN.
- 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
- Open Settings --> 2FAS Backup and tap Import.
- Choose the .2fas file and type its password if it has one.
- 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 SourceImport another app's export file
File
- On Android, open Settings --> Import Tokens. On iOS, it's Settings --> Transfer tokens.
- Pick the app you're leaving, or General OTPAuth file for a list of otpauth links.
- 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 SourceSourceSourceSourceSourceScan Google Authenticator's export QR codes
QR code
- In Google Authenticator, go to Transfer accounts --> Export accounts.
- In 2FAS, open Import Tokens (Transfer tokens on iOS) and pick Google Authenticator.
- 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 Delete your data
- On Android, open Settings --> 2FAS Backup --> Synchronization settings and tap Delete backup file from Google Drive.
- On iOS, open Settings --> 2FAS Backup --> Advanced and tap Delete 2FAS Backup.
- 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