2FA TOTP
Code Generator

Enter your authenticator secret key to generate a real-time verification code.
Compatible with Google Authenticator, Authy, and other TOTP apps.

Have a QR code? Click the image icon, drag & drop, or press Ctrl+V anywhere.

API Docs

Your secret is only sent to generate the code and is never stored. For API usage, prefer POST over GET to keep secrets out of URLs.

Why use it

How it works

  1. 1

    Paste your secret

    Enter a base32 secret or otpauth:// URI from your authenticator setup.

  2. 2

    Generate a code

    Click Generate Code to get the current 6-digit TOTP value with a live refresh timer.

  3. 3

    Copy and test

    Use the code in your app, API test, or login flow — then grab the next one when it rotates.

FAQ

Is my secret key stored?

No. Your secret is only used to generate the current code and is never stored on our servers.

Should I use GET or POST?

Both work. Prefer POST when calling the API — it keeps secrets out of URLs, server logs, and browser history.

What secret formats are supported?

Base32 secrets (e.g. JBSWY3DPEHPK3PXP) and full otpauth:// URIs. Spaces and dashes in secrets are stripped automatically.

Which authenticator apps work?

Any standard TOTP app — Google Authenticator, Authy, 1Password, Microsoft Authenticator, and others.

Can I use this via API?

Yes. Hit /2fa or /totp with your secret via GET query param or POST JSON body. The response includes the code and seconds until refresh.

Need a code right now?

Paste your secret above or integrate the API into your test suite.