FREE ONLINE 2FA AUTHENTICATOR

Free 2FA Code Generator

Generate time-based one-time passwords (TOTP) from your setup key. Free, fast and calculated in your browser.

Keys stay on your device·Free. No sign-up.

Live code generator

Designed by MH Ads Agency
Where do I find it?

Base32 keys and otpauth:// links. HEX or Base64? Choose the format in Advanced settings.

On by default. Keys stay in this browser. Use a trusted device.

Generated in your browser.
Your keys are not sent to our servers.

YOUR LIVE CODEReady when you are
AUTHENTICATOR CODE
••• •••

Your code will appear here

Waiting for a key6-digit TOTP
—
Ready when you are

Paste your key to start the countdown.

No account. No app. Just your code.

Standard TOTP authentication Auto-refreshing codes Remembered on this device

Works with standard TOTP setup keys: Base32, HEX, Base64 and authenticator links. Match your service’s algorithm, code length and refresh period.

A QUICK START

How to use 2famh

Three simple steps. A visual example if you need it.

01

Find your secret key

Open your account's security settings and choose an authenticator app. Copy the text setup key shown beside the QR code.

02

Paste it into 2famh

Add an optional account name, then paste the key above. Your code appears automatically. Leave Remember on this device on to keep the key for your next visit.

03

Copy. Paste. Sign in.

Select Copy code and enter it in the service asking for your 2FA code. Use it before the countdown ends.

See the illustrated guide
Illustrated 2famh walkthrough: add an optional account name, then 1 paste a setup key, 2 get a live code, 3 copy the code. Remember on this device saves your key for future visits.
Example illustration using a public demo key. The sample code is not for signing in. Open larger example ↗

A small tip that makes a big difference. Keep your device's date and time set automatically. TOTP codes depend on the correct time.

Try it now
GOOD TO KNOW

Frequently asked questions

A few useful things to know.

Back to the generator
Which 2FA keys can I use?

Use standard time-based authenticator (TOTP) setup keys in Base32, HEX or Base64, or an otpauth://totp link. Formatting spaces, lowercase Base32 and Base64URL are supported. The tool supports SHA-1, SHA-256 and SHA-512, 6–8 digits, and refresh periods from 15–120 seconds. SMS and email codes, passkeys, push approvals, HOTP counter keys and encrypted or migration exports use other methods; use the service’s original TOTP setup key.

What is a 2FA secret key?

It is the reusable setup key your service provides when you enable an authenticator app. It usually contains letters A–Z and numbers 2–7. It is different from your account password, a one-time code or a recovery code. Keep it private: anyone with the key can generate your codes.

Are my secret keys saved or shared?

Code generation happens in your browser. With Remember on this device enabled, valid keys are automatically saved in this browser and restored on your next visit. They are not sent to our servers. Turn remembering off or use Forget saved keys to remove them. Use remembering only on a browser you trust.

Will my keys still be here after 60 or 70 days?

There is no automatic expiry for remembered keys. They can stay available for 70 days and longer, as long as you return using the same browser profile and website address and the browser retains its site data. Clearing browser data, private browsing or browser cleanup can remove them. Saved keys do not sync to other devices or domains.

Why is my code being rejected?

First, enable automatic date and time on your device. Copy the full setup key for the correct account and use a fresh code before it expires. Most services use SHA-1, 6 digits and 30 seconds; check the service's settings if yours differ. A wrong key or an account that has reset 2FA will need the correct setup key.

Does it work with Google, Facebook and other services?

It works with accounts using standard time-based one-time passwords (TOTP). The key and settings must match the service. It does not generate SMS codes, approve push notifications, replace passkeys or bypass account security. 2famh is independent of the platforms named here.

Can I use it without an internet connection?

After this page has fully loaded, code generation can continue without a connection while the page stays open. An accurate device clock is still required. Reopening or reloading the website needs an internet connection.

I don't have my setup key. Can you recover it?

No. This tool requires an existing setup key. Use your service's official recovery process or a saved recovery code if you have lost access. Store your setup keys and recovery codes securely, such as in an encrypted password manager.

Privacy, kept simple.

Code generation runs locally. With Remember on this device enabled (the default), this tool stores your valid setup keys, optional account names and their settings in this browser’s local storage. It restores them on later visits with no automatic expiry. History keeps up to 100 recent remembered accounts; older history entries can be replaced as new accounts are added. Generated one-time codes are not saved, and secret keys are not sent to MH Ads Agency or a code-generation server.

Saved keys are not protected by a separate password or encryption added by this tool. Someone with access to this browser profile may be able to use them. Turn remembering off or choose Forget saved keys to remove them. Browser data clearing, private browsing or storage cleanup can also remove them. They do not sync across devices, browsers or website addresses.

Your theme and remembering preferences may also be saved locally. The website host may process ordinary page-request information to serve and protect the site. There are no third-party analytics, ad scripts or external fonts. MH Ads Agency promotions open a separate website with its own privacy information; no setup keys are included in these links.

Updated 19 October 2026 · 2famh by MH Ads Agency

Using 2famh.

Use this free tool for accounts you own or are authorized to manage. It generates time-based authentication codes from a setup key you already have; it cannot recover keys or bypass account security.

Keep your keys confidential and your device clock accurate. Codes depend on the correct key and settings and may be rejected by your service. The tool is provided as available, without a guarantee of uninterrupted availability or successful sign-in.

MH Ads Agency's products, pricing and order terms are provided on its own website. 2famh is an independent tool; references to other platforms do not imply affiliation or endorsement.

Updated 19 October 2026 · Questions? Visit MH Ads Agency.