Generate Random Strings
62 possible characters, about 95 bits of randomness per string.
Make random codes, test IDs, API key placeholders or coupon codes. Choose the length and characters, generate up to 500 at once and copy or download the list.
- Free
- Runs in your browser
- Up to 500 at once
- No sign-up
How It Works
Get random strings in three steps.
Set length and count
From 1 to 1,024 characters, and up to 500 strings.
Pick the characters
Letters, digits, hex, symbols, or type your own extra characters.
Copy or download
Copy the list or save it as random-strings.txt.
Random strings for codes and IDs
A random string is a sequence of characters picked independently from an alphabet you define. Short ones work as coupon or invite codes, hex strings as test tokens or color-like IDs, and long mixed ones as secrets for development. How hard a string is to guess depends on its length and the number of possible characters, shown here as bits of randomness.
For passwords people will type, the Password Generator is the better fit: it guarantees every character type appears and can leave out look-alike characters.
Secure and unbiased
Characters are picked with crypto.getRandomValues using rejection sampling, so every character is equally likely.
Your own alphabet
Combine the presets with extra characters; a character listed twice is only counted once.
No duplicates
With No duplicate strings ticked, a repeated string is drawn again.
Strength shown
Bits of randomness = length × log2(number of characters).
Convert PDF Files and File Formats
Find the perfect online tool to combine PDF files, compress documents, and handle your daily workflow effortlessly.
PDF Tools
All your PDF needs in one place
- Merge PDF
- Organize PDF
- Split PDF
- Compress PDF
- Convert to Word
- Convert to Image
Image Tools
Edit and optimize your images
- Resize Image
- Compress Image
- Convert Format
- Crop Image
- Add Watermark
- Remove Background
Word Tools
Work with Word documents
- Convert to PDF
- Merge Documents
- Split Documents
- Compress File
- Edit Text
- Add Watermark
Excel Tools
Process Excel spreadsheets
- Convert to PDF
- Convert to CSV
- Merge Sheets
- Split Sheets
- Compress File
- Clean Data
Why Use This Generator
Random strings exactly the way you need them.
Custom alphabet
Presets plus any characters you add.
Bulk output
Up to 500 strings of up to 1,024 characters each.
Unique option
Avoid duplicate codes in a batch.
Generated locally
Created in your browser, never sent anywhere.
Frequently Asked Questions
Questions people ask about the Random String Generator.
The randomness is cryptographically secure. A 32-character string of letters and digits has about 190 bits, far beyond guessing. For production keys, generate them in your own system so they are never shown in a browser at all.
Untick the presets and type only the characters you want in Extra characters, for example ABCDEFGHJKMNPQRSTUVWXYZ23456789, which leaves out I, L, O, 0 and 1.
It is how many yes/no guesses an attacker would need on average, as a power of 2. Each extra bit doubles the work. 64 bits is plenty for short-lived codes; 128 bits or more for secrets.
With No duplicate strings ticked, short strings from a small alphabet run out of combinations. Two digits only allow 100 different strings, for example. Increase the length or add characters.
Related Text & Developer Tools
More small utilities that run in your browser.
Password Generator
Create strong random passwords in your browser.
AES Encrypt & Decrypt
Encrypt text with a password using AES-256-GCM.
UUID Generator
Generate random version 4 UUIDs in bulk.
Hash Generator
Make MD5, SHA-1, SHA-256 and SHA-512 hashes of text.
Base64 Encode & Decode
Encode text to Base64 or decode it back.