Random Token Generator
Generates random tokens of a length and character set you choose. Hexadecimal is the usual default for API keys, alphanumeric packs more entropy into fewer characters, and numeric suits verification codes.
Free, no signupRuns entirely in your browser
Input
Result
4a521eb50eb7fd9ed2d881ab6c250c08
About
What the Random Token Generator does
Length is what determines security, and the relationship is exponential. Each extra hexadecimal character multiplies the possible values by sixteen, so a 32-character hex token has 128 bits of entropy — comfortably beyond brute force. Anything acting as a credential should be at least 32 characters.
How it works
Using the Random Token Generator
- 1Choose the token length, from 8 to 128 characters.
- 2Pick a format: hexadecimal, alphanumeric or numeric.
- 3Characters are drawn at random from that set.
- 4The token is assembled to your specified length.
- 5Copy it for use.
Use cases
What people use it for
- Creating an API key for a new integration
- Generating a session or CSRF token
- Producing a short numeric verification code
- Creating a random secret for a config file
FAQ
Frequently asked questions
6 related
All tools →