Secure Token Generator
To generate a secure token, choose the number of random bytes (32 bytes = 256 bits is a good default) and the format: hex, Base64, Base64URL or alphanumeric. Tokens are made with crypto.getRandomValues for API keys, session secrets and reset links.
- Free
- No signup
- Runs in your browser
How to use Secure Token Generator
- 1Type or paste your input into the Secure Token Generator.
- 2Choose any options you need.
- 3See the result update instantly.
- 4Copy the result or download it.
Secure Token Generator: questions people ask
How many bytes should a token have?
16 bytes (128 bits) is the minimum for session IDs; 32 bytes (256 bits) for API keys and signing secrets.
Which format should I use in URLs?
Base64URL or hex, since they contain no + or / characters.
Is my data uploaded when I use the Secure Token Generator?
No. The Secure Token Generator runs entirely in your web browser, so your text and numbers stay on your device and work even on a slow connection.
Does the Secure Token Generator work on iPhone, Android and Mac?
Yes. The Secure Token Generator runs in any modern browser (Safari, Chrome, Edge or Firefox) on iPhone, iPad, Android phones, Mac, Windows and Chromebook. There is no app to install.
Is the Secure Token Generator free?
Yes. The Secure Token Generator is free with no signup, no watermark and no daily limit.