Secure Token Generator
Secure Token & API Key Generator
Create API keys, session tokens, hex secrets, and UUIDs using your browser's cryptographically secure random generator.
Your secure token
Ready for your project.
256 bits of random entropy
Generated with Web Crypto
Random bytes come directly from crypto.getRandomValues. Tokens are never transmitted, logged, or stored by this page.
How do I generate a secure token or API key?
Choose a format, set the random byte length where available, and copy the generated value. You can add a prefix to an API key or generate a UUID v4 instead.
Which token format should I choose?
Use the format your application expects: hex, Base64URL, a prefixed key or UUID. A generated value only becomes an API key when your own application is configured to accept it. For an external service, obtain its API key from that service.
Are generated tokens stored anywhere?
No. Tokens are generated on your device using Web Crypto. This page does not transmit, log or store them. Copy the value into the system that will use it and keep private keys confidential.
