The Random String Generator builds strings of 1 to 1,024 characters from exactly the characters you choose: uppercase, lowercase, digits, symbols, your own custom characters, and an option to drop look-alikes such as 0/O and 1/l/I. Use it for test data, coupon and invite codes, nonces, and file names, where the character set matters more than a fixed key format.
Click Generate to create random stringsInput
Length 32, A-Z + a-z + 0-9 (default)
Output
5hQfKCHUEB3hReQayZbd3YoZ7DqsYnFy (about 190 bits)
Input
Length 12, exclude ambiguous characters
Output
D3y7jQHTYUGH (about 70 bits, no 0/O or 1/l/I)
A random string is just a sequence of characters picked without any pattern a person could predict. That sounds simple and it mostly is. What makes it useful is where the randomness comes from. This tool pulls every character from your browser's `crypto.getRandomValues` source rather than a plain random function, and it draws each character through rejection sampling so no character in your chosen set is ever picked slightly more often than another.
You get full control over what goes into the string. Turn on uppercase, lowercase, numbers, or symbols in any combination, and if none of that covers your case you can type your own characters into the custom field and they'll be folded into the pool too. There's also an option to drop characters that are easy to misread, like a zero next to a capital O, or a lowercase l sitting next to a capital I. That one's mostly for strings a person will actually have to type rather than copy and paste.
Length matters more than most people assume, and the entropy meter under the options shows why: a 12-character string from a small charset can sit well below a 20-character one from a wider pool, even though the first number looks bigger. Length adds more strength than an exotic character set. Random strings like these show up everywhere under the hood, test fixtures, temporary tokens, session identifiers, placeholder data, so the right length really depends on what's consuming it downstream.
Nothing generated here is sent to a server or logged anywhere. It lives in your browser's memory for as long as the tab stays open, and that's it. If you're generating something sensitive, like a token that guards access to real data, treat it the way you'd treat a password: copy it once, store it somewhere safe, and don't leave it sitting in a chat log or a spreadsheet.
More Security