DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
HomeSecurity / CryptoTOTP / 2FA Generator

About TOTP / 2FA Generator

TOTP / 2FA Generator preview - Security / Crypto tool

Generate time-based one-time passwords from a secret key. Part of the DevTools Surf developer suite. Browse more tools in the Security / Crypto collection.

Use Cases

  • Test 2FA flows during authentication development
  • Generate backup codes when rotating MFA secrets
  • Debug TOTP drift between client and server clocks
  • Seed automated end-to-end tests that require MFA

Tips

  • The code auto-refreshes when the 30-second period expires
  • The circular timer shows remaining validity time
  • Use this to verify your TOTP secret is configured correctly

Fun Facts

  • TOTP codes change every 30 seconds by default. The algorithm (RFC 6238) uses HMAC-SHA1 with the current time divided by the period as the counter.
  • Google Authenticator originally stored TOTP secrets unencrypted on the device — it wasn't until 2023 that Google added cloud backup with encryption.
  • TOTP is being gradually replaced by passkeys (FIDO2/WebAuthn), which are phishing-resistant because the credential is bound to the specific website domain.

FAQ

Does the tool replace Google Authenticator?
For testing yes. For production MFA use a dedicated app (Authy, 1Password, Aegis) — centralized apps lose all your codes if you clear browser data.
What's the secret format?
Base32 by default (the format most providers give you). 80-160 bits of entropy recommended. Padding is optional.
Clock sync matters?
Yes — TOTP depends on server and client clocks being within 30 seconds. NTP-synchronized devices are fine; mobile devices usually are. The tool shows local time for debugging.
What algorithm and digits?
SHA-1 / 6 digits / 30-second window is the default (matches Google Authenticator). Toggle SHA-256 / 8 digits for higher security if your provider supports it.

Related Security / Crypto Tools

Hash Generator v2HMAC Generator v2JWT EncoderBcrypt Hash TesterHMAC GeneratorPassword Strength AnalyzerSAML Response DecoderOAuth PKCE Generator
New · Flagshipsimple REST client

REST Handler — Collections, env vars, history, cURL converter

Send requests, save collections (nested), swap environments, and convert between cURL / Collection JSON / REST Handler YAML.

Open

Popular tools

The most-used tools on DevToolsSurf, one click away.

Encoding & crypto

  • Base64 Encode
  • Base64 Decode
  • URL Encoder
  • URL Decoder
  • Hash Generator
  • JWT Decoder
  • JWT Encoder
  • UUID Generator
  • ULID Generator
  • Password Generator
  • Bcrypt Hash Tester

Converters

  • CSV to JSON
  • JSON to CSV
  • XML to JSON
  • JSON to XML
  • HTML → Markdown
  • HTML → React JSX
  • cURL to Code
  • Collection JSON → cURL
  • Swagger to Collection JSON
  • JSON → Go Struct
  • JSON → TypeScript Types

JSON & YAML

  • JSON Formatter
  • JSON Validator
  • JSON Viewer
  • JSON Minifier
  • JSON Diff
  • JSONPath Tester
  • YAML Formatter
  • YAML to JSON
  • JSON to YAML

Text & regex

  • Regex Tester
  • Text Diff
  • Case Converter
  • Word Counter
  • Markdown Preview
  • Slug Generator
  • Lorem Ipsum Generator
  • Markdown → PDF

CSS & color

  • CSS Beautifier
  • Minify CSS
  • Color Converter
  • Gradient Generator
  • Contrast Checker
  • Color Palette Generator
  • Flexbox Playground
  • Tailwind → CSS

Generators

  • QR Code Generator
  • Mock Data Generator
  • Favicon Generator
  • .gitignore Builder
  • README.md Generator
  • Dockerfile Generator
  • Sitemap Generator

API & networking

  • REST Handler
  • HTTP Header Analyzer
  • IP Address Lookup
  • CIDR Calculator
  • User-Agent Parser
  • HTTP Status Reference
  • OpenAPI Viewer

Date & time

  • Timestamp Converter
  • Timezone Converter
  • Cron Expression Parser
  • Duration Calculator
  • Age Calculator
  • Date Format Converter

Images

  • Image Converter
  • Image Resizer (Batch)
  • SVG Optimizer
  • Base64 ↔ Image
  • WebP ↔ AVIF Converter
  • Image Compressor

PDF tools

  • PDF Merger
  • PDF Splitter
  • PDF Compressor
  • Markdown → PDF
  • EPUB → PDF
  • MOBI / AZW → PDF
  • DOCX → PDF
  • HTML → PDF

Resources

  • Community feed
  • Themes marketplace
  • Pricing & credits
  • Privacy policy
  • Terms of service
  • Sitemap
  • robots.txt

Your account

  • Sign in
  • Dashboard
  • Run history
  • My profile
  • Settings
DevTools Surf logo
DevTools Surf919+ tools

Fast · privacy-first · client-side · © 2026

Home·Feed·ThemesPricing·Sign inPrivacy·Sitemap Feedback