Free · No sign-up · Runs in your browser

2FA Code Generator

Get your 2FA live code online. Paste a 2FA secret key and see the 6-digit authentication code instantly — a free 2FA auth tool that works like Google Authenticator.

One key per line

Your 2FA code will appear here

Keys are processed only in your browser — nothing is sent to our server.

How to get a 2FA code

  1. 1

    Paste your 2FA key

    Copy the secret key the site gave you when you turned on two-factor authentication and paste it in the box. Spaces and lowercase letters are fine.

  2. 2

    Get the live code

    The 6-digit code appears instantly and refreshes every 30 seconds, exactly like an authenticator app.

  3. 3

    Copy and log in

    Click the code to copy it and enter it on the login page before the timer runs out.

What is 2FA (two-factor authentication)?

Two-factor authentication (2FA) adds a second step to logging in. After your password, the site asks for a short code that only you can produce. Most sites use time-based one-time passwords (TOTP): when you turn on 2FA they give you a secret key, often shown as a QR code, and every 30 seconds that key produces a new 6-digit code.

Usually an authenticator app on your phone keeps the key and shows the codes. This online 2FA generator does the same from the key itself, which is handy when you don't have your phone, manage several accounts, or just need a code quickly. Because the codes are made from the key and the current time, the code you see here is the same one your authenticator app would show.

Features

Works in your browser

Codes are generated on your device. Your secret keys are never sent to our server.

Bulk 2FA codes

Paste many keys at once — one per line — and get a live code for each.

Reads account rows

Rows like username|password|2FA key work as they are; the tool finds the key.

Scan a QR code

Upload or paste a screenshot of a 2FA QR code and the key is added for you.

Any TOTP service

6 or 8 digits, 30 or 60 seconds, SHA-1, SHA-256 and SHA-512, plus otpauth:// links.

Move to an app

Show any key as a QR code to add it to Google Authenticator, Authy or 2FAS.

Works with every TOTP 2FA service

Any site that lets you use an authenticator app works here, including:

  • Facebook
  • Instagram
  • Google / Gmail
  • Microsoft / Outlook
  • TikTok
  • X (Twitter)
  • Discord
  • GitHub
  • Binance
  • Amazon
  • Telegram
  • WhatsApp

Supported input formats

Paste any of these, one per line:

JBSWY3DPEHPK3PXP
JBSW Y3DP EHPK 3PXP
username|password|JBSWY3DPEHPK3PXP
otpauth://totp/Example:me?secret=JBSWY3DPEHPK3PXP&issuer=Example

Frequently asked questions

What is a 2FA code generator?+

A 2FA code generator turns your two-factor authentication secret key into the 6-digit login code that changes every 30 seconds. It does the same job as an authenticator app like Google Authenticator, but in your browser.

How do I get a 2FA code from a secret key?+

Paste the secret key into the box above. The current code shows straight away and a new one appears every 30 seconds. Click the code to copy it.

What is 2FA Live or 2FA Auth?+

"2FA Live" and "2FA Auth" are common names for online tools that show the live two-factor code for a secret key. This page is one of those tools — free and with no sign-up.

Is it safe to use an online 2FA generator?+

This tool calculates every code in your own browser with the standard TOTP algorithm (RFC 6238); your keys are not uploaded or stored. Even so, treat a 2FA key like a password and only use it on devices you trust.

Why is my 2FA code not working?+

Check that your device clock is correct, since codes depend on the exact time. Make sure you copied the whole key, and enter the code before the timer runs out. Some services use 8 digits or 60 seconds — change that under Settings.

Can I generate codes for many accounts at once?+

Yes. Paste one key or account row per line and you'll get a live code for each, with a Copy All Codes button.

Does it work for Facebook 2FA?+

Yes. Facebook, Instagram, Google, Microsoft, TikTok and most other sites use standard TOTP codes, which this generator supports.

More free tools

Need to see which Facebook accounts are still active? Try the Facebook UID Checker.