OhMyApps
Back to Tools Developer Tools

2FA Code Generator

Generate TOTP verification codes from a 2FA secret

Base32 secret or otpauth URI

Paste the secret from your account setup screen. Spaces and hyphens are ignored.

Waiting for secret

Enter a 2FA secret and submit to generate a code.

How it works

Paste a Base32 2FA secret or an otpauth:// setup URI, then submit to generate a standard 6-digit TOTP code. The code refreshes every 30 seconds.

  • Uses the browser Web Crypto API with HMAC-SHA1, matching standard authenticator apps
  • Runs entirely in your browser without storing or uploading the secret
  • Supports grouped secrets with spaces, hyphens, or padding characters

Want to learn more?

Read the complete guide with examples and tips

Read guide

Continue with nearby tasks in the developer tools hub.

View all