CraftTools

TOTP Authenticator Code Generator

Guide: Two-Factor Codes Explained: How TOTP Authenticator Apps Work

Nothing you enter or choose here leaves your device. This tool runs in your browser.

How to use

  1. 1Paste your secret key or otpauth link, or make a random secret.
  2. 2Read the code and the seconds left. Copy it when you need it.
  3. 3Scan the QR code with an authenticator app to set the secret up there too.

Frequently asked questions

Is my secret sent anywhere?

No. Everything happens in your browser, and nothing is sent to us.

What is a TOTP code?

A six-digit code that changes every 30 seconds. Your app and the website both work it out from a shared secret and the time, so they match without talking to each other.

Which apps are compatible?

Any authenticator that follows the standard (RFC 6238), including Google Authenticator, Microsoft Authenticator, Authy and 1Password. The codes here match theirs for the same secret.

Why is my code wrong?

Usually the device clock is off, or the site uses other settings such as 8 digits or a 60 second step. Open the settings, or paste the full otpauth link, which carries them.

Should I keep my real secrets here?

No. This page doesn't save anything, so close it when you're done. Keep real secrets in a proper authenticator app or password manager.

Read the guide

Learn how this works and how to get the most from it.

Security

Two-Factor Codes Explained: How TOTP Authenticator Apps Work

How the six-digit codes in authenticator apps are made, why they change every 30 seconds, what the secret key is, and how to set one up safely.

2 min read

Base32 Encoder / Decoder

Encode and decode Base32, including hex and Crockford.

QR Code Generator

QR codes for links, Wi-Fi, contacts, email, phone and text. PNG or SVG.

Password Generator

Create strong random passwords or passphrases, one or many at a time.

UUID & Random Number Generator

Generate secure UUIDs (v4, v7) and random numbers.