Skip to content
Jellykit

Random String Generator

Generate random strings from letters, digits, hex, Base58 or your own set of characters, one or hundreds at a time.

  • Runs on your device
Loading tool

About Random String Generator

Make random strings for test data, coupon and invite codes, identifiers, API tokens or anything else that needs to be unpredictable. Pick a ready-made character set, or type your own and every distinct character in it becomes a possible symbol, emoji and accented letters included.

Each character is drawn independently and evenly from the set with your browser’s cryptographic random number generator, and the entropy of the result is shown beside it. Generate up to 500 strings at once and copy or download them as a list. Nothing leaves this page.

How it works

  1. Each position is filled with crypto.getRandomValues, using rejection sampling so that every symbol in the set is exactly equally likely.
  2. A custom set is split into the characters you see, so an emoji with a skin tone or a letter with an accent counts as one symbol. Repeats, spaces and line breaks are dropped.
  3. Entropy is the length multiplied by log2 of the number of symbols: the number of guesses, in bits, needed to try every possible string.

Questions

Will two generated strings ever be the same?

They can be, because each is drawn independently. With 128 bits or more of entropy a repeat is so unlikely it can be ignored. With short strings or small sets it is quite possible, so check for duplicates if uniqueness matters.

Is Base58 the same as Base64 without symbols?

No. Base58 also leaves out 0, O, I and l, which are easy to misread. That makes it a good choice for codes that people will read aloud or type by hand.

How long can a string be?

From 1 to 4,096 characters, up to 500 strings at a time. A custom set can hold up to 1,000 different characters.

Should I use this for passwords?

You can, but the password generator is built for it: it guarantees each chosen kind of character appears and estimates how long a password would take to crack.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.