Random String Generator
Generate batches of cryptographically random strings and API tokens from chosen character sets, length, and count, entirely in your browser.
Random String Generator — Build random strings, secrets, and API tokens in bulk straight from your browser. Tick the uppercase, lowercase, digit, and symbol sets you want, set the length and how many to produce, then hit Generate for a fresh batch every time. Every character comes from crypto.getRandomValues with rejection sampling for an unbiased result, and nothing is uploaded anywhere — the strings are created and stay on your machine.
What is Random String Generator?
The Random String Generator is a free in-browser tool for minting many high-entropy strings at once: API keys, access tokens, invite codes, test fixtures, salts, or any opaque identifier. Developers, QA engineers, and ops teams reach for it when they need to seed environments, fill a database with realistic random values, or hand out tokens without piping anything through a server. You choose the character pool with the Uppercase, Lowercase, Digits, and Symbols checkboxes, pick a Length and a Count, and press Generate — every string is drawn with crypto.getRandomValues using rejection sampling so each character is uniformly likely. Unlike a password generator aimed at a single memorable secret, this one is tuned for producing batches of machine-readable tokens, and the Regenerate button bumps an internal seed to give you an entirely new set on demand while your settings stay put.
How to use Random String Generator
- Tick the character sets to include with the Uppercase, Lowercase, Digits, and Symbols checkboxes — at least one must be on.
- Set the Length of each string and how many strings to make with Count.
- Press Generate (or Regenerate) to draw a fresh batch from crypto.getRandomValues.
- Read the strings in the output box; it updates on its own when you change the length, count, or character sets.
- Copy a single string with its copy button, or copy the whole batch at once with the copy action above the list.
Examples
A 32-character alphanumeric API token
Input
Uppercase + Lowercase + Digits, Length 32, Count 1
Output
k7QmZ2pX9vT4nR8bL1cW6yH3dF5sG0aJ
A batch of short hex-like invite codes
Input
Lowercase + Digits, Length 8, Count 3
Output
a3f9k2dq 7m1xp4ce b8t6w0nz
A high-entropy secret with symbols
Input
Uppercase + Lowercase + Digits + Symbols, Length 24, Count 1
Output
G$7m@Kp2!xZq9#vR4&nLwT^h
Frequently asked questions
- Are the strings sent to a server?
- No. Every string is generated locally with the Web Crypto API (crypto.getRandomValues), and nothing is uploaded or stored anywhere. The tool works offline and the values never leave your browser, which makes it safe for real secrets and tokens.
- How random are the strings?
- Each character is drawn from crypto.getRandomValues, the browser's cryptographically secure random source, using rejection sampling so the character pool is sampled without modulo bias. That makes the output suitable for tokens, salts, and secrets rather than just casual placeholders.
- Why does pressing Generate give me a brand-new set?
- Generate (Regenerate) bumps an internal seed and pulls fresh random bytes, so you get a completely new batch while your length, count, and character-set choices stay exactly as you left them.
- How is this different from a password generator?
- A password generator is tuned for a single memorable, strong secret. This tool is built for bulk machine-readable output — API keys, access tokens, test data — so it lets you produce many strings at once and copy the whole batch in one click.
- Can I use these as API keys or tokens?
- Yes. With a long enough length and a broad character set the strings have plenty of entropy for API keys, access tokens, and similar opaque identifiers. For human passwords a dedicated password generator may be more convenient.
Related tools
AES Text Encryption (AES-GCM + PBKDF2)
Encrypt and decrypt text with AES-256-GCM using a passphrase-derived key (PBKDF2 SHA-256, random salt), entirely in your browser with no uploads.
Argon2 & scrypt Hash
Hash a password with Argon2id or scrypt and verify an Argon2 hash against a password, entirely in your browser.
Bcrypt Hash Generator & Verifier
Generate a bcrypt password hash from plain text at a chosen cost factor, or verify a password against an existing bcrypt hash, entirely in your browser.
BIP39 Mnemonic Generator
Generate a random BIP39 recovery phrase of 12 to 24 words in several languages, or convert an existing mnemonic back into its raw entropy, entirely in your browser.