Skip to content
OTP Generator

How OTP Generator Works

How OTP Generator keeps 2FA keys private: codes are computed in your browser with Web Crypto. No server, no storage, works offline. Verify it yourself.

On this page

Short version: your secret key is never sent anywhere. Every code is calculated inside your browser.

Client-side only

This website is a set of static files: HTML, CSS and JavaScript. There is no backend that receives keys. When you paste a key, JavaScript on the page decodes it from Base32 and computes an HMAC with your browser’s built-in crypto.subtle API, following RFC 6238. The result is shown on screen. That is the whole process.

Nothing is stored

Keys are not saved to cookies, local storage or any database. Reload the page and they are gone. The only thing remembered on your device is your light/dark theme choice.

Verify it yourself

  1. Open your browser’s developer tools (F12) and select the Network tab.
  2. Paste a key and watch: no request is made.
  3. Or turn off Wi-Fi after the page loads; codes keep updating.

QR codes are decoded locally too

QR images are drawn onto a canvas in your browser and read by a bundled open-source library (jsQR). Images are never uploaded.

Third-party scripts

The site may load privacy-respecting analytics and advertising scripts to keep the tool free. These scripts cannot read what you type into the tool unless the page sends it to them, and the page never does. If you prefer, use an ad blocker or the offline method above.

Our honest advice

A browser generator is a convenient tool, not a full replacement for an authenticator app. Keep your secret keys and backup codes in a password manager, and use this site when you need quick access or bulk codes.