Skip to content
UniKit

Authenticator migration decoder

Decodes an otpauth-migration://offline?data=… code and lists every account with its name, issuer, plain Base32 secret, algorithm, digit count and type (TOTP/HOTP), plus the equivalent otpauth:// link for apps that cannot read migration codes.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Input

Result

Pure local computation; nothing is uploaded.

Enter input to see the result

Accounts: 0 · TOTP: 0 · HOTP: 0

What this tool does

  • Check which accounts and secrets a migration code really carries before switching phones or apps.
  • Convert a migration code into individual otpauth links for authenticators that cannot read it.
  • Verify the algorithm and digit count so codes keep matching after import.

Example

Input

otpauth-migration://offline?data=CjMKEEFBQUFBQUFBQUFBQUFBQUESEWFsaWNlQGV4YW1wbGUuY29tGgZHaXRIdWIgASgBMAIKMQoQQkJCQkJCQkJCQkJCQkJCQhIPYm9iQGV4YW1wbGUuY29tGgZHb29nbGUgAigCMAIQAQ%3D%3D

Output

2 accounts (TOTP 2 / HOTP 0)

[1] GitHub [email protected]
    Secret (Base32): AAAAAAAAAAAAAAAA
    Algorithm / digits / type: SHA1 / 6 / TOTP
    otpauth: otpauth://totp/GitHub%3Aalice%40example.com?secret=AAAAAAAAAAAAAAAA&issuer=GitHub

[2] Google [email protected]
    Secret (Base32): BBBBBBBBBBBBBBBB
    Algorithm / digits / type: SHA256 / 8 / TOTP
    otpauth: otpauth://totp/Google%3Abob%40example.com?secret=BBBBBBBBBBBBBBBB&issuer=Google&algorithm=SHA256&digits=8

The migration format stores the Base32 secret as plain text, so that is exactly what is shown here; parsing happens locally and your secrets are never uploaded.

Frequently asked questions

Why is the secret shown in clear text?

Google Authenticator’s migration protocol stores the Base32 secret in clear text inside the protobuf (the QR code itself is the protection); this tool simply decodes it faithfully.

What happens when decoding fails?

A non-migration link raises invalid-uri; an invalid Base64 or protobuf payload raises invalid-payload instead of returning an empty list that would look like an empty code.

Does it support HOTP?

Yes. Entries with type=1 are reported as HOTP with their counter value, and the generated link carries the counter parameter too.

Is the migration code uploaded?

No. Everything is decoded by a local pure function; input and output stay on the page.

Keywords:base32otpauthmigrationtotp

Related tools