Secure Token Generator (Hex & Base64)
Runs 100% in your browser — your files never leave your device.
Session keys, API secrets, CSRF tokens, invite codes — anything security-sensitive needs real randomness, not Math.random(). This generator uses your browser's WebCrypto API and can emit hex or URL-safe base64. Choose the byte length — the matching bit count of entropy is shown right beside the controls.
How it works
- 1
Choose the length
Bytes of entropy, from 1 to 1024 — 32 bytes (256 bits) is the default.
- 2
Pick the encoding
Hexadecimal for keys and secrets, URL-safe base64 for tokens in links.
- 3
Generate and copy
Each click draws fresh randomness from WebCrypto; nothing is stored or sent.
Related tools
More generators
Free QR Code Generator Generate QR codes for links, Wi-Fi, or any text — free, right in your browser. Download a crisp PNG at any size. No sign-up, no tracking, no upload. WiFi QR Code Generator Online Create a WiFi QR code that lets guests join your network with one scan — free, generated in your browser, and the password never leaves your device. Random Number Generator Online Generate random numbers between any two bounds — one or a thousand, with or without repeats — and copy the results. Free, instant, in your browser.