Random Token Generator

Create secure random tokens in hex, base64, or alphanumeric format for sessions, CSRF, and more.

tokenrandomhexbase64sessionCSRF
Click generate to create a token
256 bits0 characters
32 bytes (256 bits)
64 bits128 bits256 bits512 bits

Secure: Tokens are generated using crypto.getRandomValues(). Suitable for session IDs, CSRF tokens, and API secrets.

What is a random token?

A cryptographically secure string used for sessions, CSRF, reset links, etc.

Formats

Hex, Base64, URL-safe Base64, and alphanumeric.

Security

Generated with cryptographically secure randomness in the browser.

Frequently Asked Questions

Quick answers about usage, privacy, and best practices.

View all FAQs

Privacy: Everything runs locally in your browser. No data is sent to a server.

Privacy First: This tool runs entirely in your browser. No data is sent to any server.