Skip to content
hateitall

Random String Generator

Make test data, codes, tokens or IDs from exactly the characters you need, in one batch.

Processed locallyIn: Length, Character setOut: Text, TXT

Loading tool…

How to use random string generator

  1. Pick a character set or type your own characters.

  2. Set the length and how many strings you need.

  3. Turn off repeats if every string must be unique.

  4. Copy the list or download it as a text file.

What this tool does

  • Presets for letters and digits, lowercase, uppercase codes, digits, URL-safe and full printable sets.
  • Custom sets of any size, including emoji and accented letters, used evenly thanks to rejection sampling.
  • Up to 5,000 strings of up to 1,024 characters, with optional no-repeat checking.
  • Shows bits of entropy per string so you can judge if it is long enough for a token.

How the result is verified

Every string in the batch is checked for its length and for characters outside your set, and the batch is checked for repeats.

Frequently asked questions

Is this random enough for API keys?

Yes. The characters come from the browser's cryptographic random source, the same one Web Crypto uses for keys. Use at least 128 bits, for example 22 characters from the URL-safe set.

Why not use Math.random?

Math.random is fast but predictable: with a few outputs an attacker can work out the rest. This tool never uses it.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Random keys for JWT, HMAC, AES and sessions as hex, Base64 or Base64URL

Size in bytes→ HexLight on device

Secure random hex strings by digits or bytes, in bulk

Length · Count→ HexLight on device

Random passwords with exact entropy, look-alike filter and one-of-each option

Length · Character sets→ TextLight on device

Short random IDs with custom alphabet, length, prefix and collision odds

Options→ IDsLight on device

Bulk UUID v4 and v7 with formats, plus a UUID inspector

Options · UUID→ UUIDsLight on device