- Export a QR code from Google Authenticator
- Open the Google Authenticator Android app
- Tap ☰ › Transfer accounts › Export accounts
- Laboriously deselect all accounts except the one you want to export
- Tap Next
- Decode the
otpauth-migration
URI from the QR code- Take a screenshot of the QR code on the screen by holding Power+Volume Down
- Open the screenshot in Google Photos or another app that can decode QR codes
- Tap Lens, which will automatically locate the QR code and decode the text into an
otpauth-migration
URI - Tap Copy text to copy the
otpauth-migration
URI - Send this
otpauth-migration
URI to a computer running Windows, Linux, or Mac OS using any text transfer technique, for example with Google Keep, OneNote, or Evernote
- Convert the
otpauth-migration
URI to anotpauth
URI- On the computer, download the latest release of dim13/otpauth
- Extract the .tgz file (
tar -xzf otpauth-*.tgz
) - Run
otpauth -link $uri
, where$uri
is theotpauth-migration
URI you transferred in step 2.v - Copy the output
otpauth
URI
- Import into KeePass
- Open KeePass
- Create or edit an entry
- Click 🪛 Tools › OTP Generator Settings… › Import 'otpauth://' URI…
- Paste the
otpauth
URI which you copied in step 3.iv, then click OK - Confirm that the OTP shown in the KeePass preview matches the OTP shown in Google Authenticator
- Click OK to close all of the dialog boxes, then save your KeePass database
- Select the entry, then press Ctrl+T to copy the TOTP
- Edit the entry
- In the Auto-Type tab, click Override default sequence, then click Edit
- In Use custom keystroke sequence, insert the
{TIMEOTP}
placeholder (for TOTP) or{HMACOTP}
(for HOTP) in the correct location in the keystroke sequence for the given authentication flow - Click OK to close all of the dialog boxes, then save your KeePass database