Random String Generator
Make random strings of letters and numbers.
Loading the random string generator… If nothing appears, please turn on JavaScript.
Press Generate strings to get five random strings at once. Choose the length, from 6 to 16 characters, and which characters to use: letters and numbers, lowercase only, hex, letters only, numbers only, or everything including symbols.
Every character is picked separately with your browser’s cryptographic random number generator, so the strings are unpredictable and evenly spread.
How to generate a random string
- Choose a length under Options, for example 10 characters.
- Choose the characters, such as letters and numbers or hex.
- Set how many strings you need, up to 100 at once.
- Copy or download the list as plain text, CSV or JSON.
What random strings are used for
- Test data: fill a spreadsheet or database with sample IDs.
- Reference codes: make short codes for tickets, orders or raffles.
- File and folder names: create unique names that will not clash.
- Hex values: get random hex strings for programming practice.
- Games and puzzles: make secret codes for treasure hunts.
Keep, copy and share your strings
Every result has a lock button. Locked results stay put when you generate again, so you can keep the strings you like and reroll the rest. The history panel keeps your earlier results, and the back arrow takes you to the previous set if you generated one time too many.
Use Copy to copy the results as a plain list, CSV or JSON, or download them as a file. Share copies a link that shows exactly the same results to whoever opens it, which is handy for games, classes and group chats.
How many different strings are possible?
A 10-character string of letters and numbers (62 possible characters) has 6210, or about 839 million million, possible combinations, so two strings matching by chance is very unlikely. Hex strings use only 16 characters, so they need to be longer for the same variety.
For passwords, use the random password generator, which is set up for strong, memorable rules. For numbers only, the random number generator lets you set an exact range.
How the randomness works
Every result comes from your browser’s built-in cryptographic random number generator (crypto.getRandomValues). We use rejection sampling, so every item has exactly the same chance of being picked, with no bias toward the start or end of the list. Nothing is sent to a server, and share links store the exact results so the person you send them to sees the same thing.
Frequently asked questions
Can I make hex strings?
Yes. Choose Hex (0-9, a-f) under Characters.
How long can the strings be?
From 6 to 16 characters. For longer strings, join two together.
Can I include symbols?
Yes. Choose Letters, numbers and symbols.
Are the strings unique?
Each string is random. With 10 or more characters, a repeat within a list is extremely unlikely.
Is anything sent to a server?
No. The strings are made in your browser and never leave your device.
Is the random string generator free?
Yes. It is free, with no sign-up.