What do you need?
Format
Your strings
Strings are made in your browser using your device’s secure random number generator. They are never sent anywhere or stored.
How to generate random strings
- Choose the kind of string: random characters, or a UUID.
- For random characters, pick which characters to use, the length, and how many strings you want.
- Add a prefix, a suffix or groups if you need a certain look, such as ABCD-EFGH-IJKL.
- Choose how to show the list, then click Copy or Download .txt.
What can you use random strings for?
- Test data: names, IDs and codes for filling a database or testing a form.
- Coupon and voucher codes: use groups and uppercase letters, and leave out look-alike characters so codes are easy to read out.
- Tokens and keys: API keys, reset links, session identifiers and invite codes.
- Unique IDs and file names: a UUID or a short random string avoids clashes between records and uploads.
How long should a string be?
It depends on what it protects. The bits figure shown under the results is how much randomness each string has, and every extra bit doubles the number of possibilities. For an ordinary unique ID, 40 to 64 bits is plenty. For secrets that guard something, such as an API key or a reset token, aim for 128 bits or more. For example, 22 random letters and numbers give about 131 bits, and 32 hexadecimal characters give 128 bits.
About UUIDs
A UUID version 4 is a standard 36-character identifier made from 122 random bits, written like 123e4567-e89b-42d3-a456-426614174000. The chance of two being the same is so small that systems everywhere use them as unique IDs without checking a central list.
Is it safe and private?
Yes. Strings are created entirely in your web browser, using the secure random number generator built into your device, and a method that avoids favoring some characters over others. They are never sent over the internet, saved or logged by this website. This tool needs no outside libraries.
Good to know
- “Make every string different” removes repeats within one batch. If you ask for more strings than are possible, the tool tells you.
- Groups, prefixes and suffixes are added after the random part, so they do not add randomness. The bits figure counts only the random characters.
- For a high-stakes production secret, many teams prefer to generate it on their own server or secrets manager. For everyday codes, IDs and test data, this tool is a convenient choice.
- You can make up to 1,000 strings at a time.
Need a password for a person to use rather than a code for a system? Try our Password Generator. For dummy text, use the Random Text Generator.