Advertisement

2FA Code Generator

Live 6-digit 2FA codes from a secret key - the same codes as Google Authenticator, made on your device.

Last updated:

2FA Code Generator
TOTP · RFC 6238 · Private

Paste the secret key a site shows under "can't scan the QR code?" to get the same 6-digit codes as Google Authenticator. Nothing is sent anywhere.

How to Use It

1
On the site's 2FA setup page, choose "Can't scan? Enter key manually"
2
Paste the key here
3
Type the 6-digit code before the timer runs out

Use it for testing or a backup - keep a real authenticator app on your phone.

When This Tool Helps

How TOTP Codes Work

Fix "Invalid 2FA Code"

Related Tools

Frequently Asked Questions

Are these the same codes as Google Authenticator? +

Yes, for the same key and settings. Both follow the TOTP standard (RFC 6238).

Is it safe to paste my 2FA secret here? +

The key is used only in your browser and never sent. Still, treat 2FA keys like passwords and only paste them on devices you trust.

Why is my code rejected? +

Usually the device clock is off, or the digits, period or algorithm do not match the site. Check the settings above.

Where do I find the secret key? +

On the site's 2FA setup screen, under "Can't scan the QR code?" or "Enter key manually".

Can this replace my authenticator app? +

It works as a backup or for testing, but keep a real app on your phone for daily use.

What is an otpauth link? +

The text inside a 2FA QR code. Paste it and the settings fill in automatically.

About the creator Prajwal Karkera, creator of ToolsFlow

Built and maintained by Prajwal Karkera, a digital product specialist with 8+ years of experience in digital products. Found a problem with this tool? Let us know through the Contact page.
Read more about me →