Token Generator
Generate secure random tokens for API keys, JWT and webhook secrets, reset links and codes. Hex, Base64, UUID or your own characters, up to 500 at once.
Generate secure random tokens for API keys, JWT and webhook secrets, reset links and codes. Hex, Base64, UUID or your own characters, up to 500 at once.
About this tool
Token Generator makes random tokens that cannot be guessed, for API keys, secrets, reset links and codes. Choose the type: letters and numbers, hex, Base64, Base64URL, letters with symbols, numbers only, a UUID, or your own set of characters. Set the length in characters, or in bytes for hex and Base64, and how many you need, up to 500. A prefix such as key_ can be added to every token, which makes it easy to recognise in logs and to find by scanners if it leaks by mistake. Presets fill in common settings: an API key, a JWT secret, a webhook secret, a reset link and a 6-digit code. For every setting you see the number of random bits, which tells you how hard the token is to guess. Each bit doubles the work: a 32-byte hex token has 256 bits, 32 letters and numbers have about 190, and a UUID has 122. A 6-digit code has only about 19 bits, so it is safe only when tries are limited and the code expires quickly, and the page says so. Skip characters that look alike removes 0, O, o, 1, l, I and the vertical bar, which helps when people have to type a token. The tokens come from your browser’s secure random generator, the same source that is used for encryption keys, and every character has exactly the same chance, without the small bias that appears when random numbers are simply divided. They are made on your device after the page has loaded, are not sent anywhere, and are gone when you close the page unless you copy or download them. For live systems it is better still to make a secret on the server where it is used, so the page also shows the commands and code that do this in the terminal, Node.js, Python and PHP.

API key, JWT secret, hex, UUID and more.
The number of random bits is shown.
Press New until you are happy.
One token, all of them, or a TXT file.
From the browser’s secure generator.
Hex, Base64, UUID, your own characters and more.
Know how strong a token is.
Make a list in one go.
Pick the right length for the job
Give each client its own key.
Examplekey_ followed by 40 letters and numbers.
Sign tokens with HS512.
Example64 random bytes in Base64.
Let receivers check your messages.
Example32 bytes as hex with a prefix.
Use a token that fits in a URL.
Example32 bytes as Base64URL, valid for a short time.
Short codes that people type.
ExampleSix digits, with few tries and a short life.
Fill a table with unique values.
ExampleDownload 500 UUIDs.
Safe from creation to deletion
For anything that can be tried without a limit.
Keep only a hash of API keys and reset tokens, as you would for passwords.
Reset links and codes should work once and for a short time.
Put secrets in environment variables or a secret store, not in the repository.
Senior Software Engineer · Developer of Toolyconvert
Hemant developed Token Generator and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.
Last updated 24 November 2026
Featured on
Toolyconvert is listed on these product directories and launch platforms.