Toolstia / Random string generator

random string generator

Generate random strings for test data, API keys, tokens, coupon codes or IDs. Pick the characters, the length and how many you need, and see how many bits of randomness each string has.

Strings are made with your browser's secure random number generator and never leave this page. For a password you plan to remember, use the password generator instead.

How it works

  1. Set the length and how many strings you want.
  2. Choose which characters to include.
  3. Press Generate and copy the list.

How random is it

The strings use your browser secure random number generator, the same source used for cryptography, with no bias towards any character.

Bits of randomness

This number is the length times the base 2 logarithm of the pool size. More bits make a guess harder. As a guide, 128 bits is out of reach for any attacker.

Look-alike characters

Tick skip look-alikes to remove I, l, 1, O, 0, o and | so codes are easier to read out loud or type from a printout.

Your own characters

Add extra characters, or untick everything else to build strings from only your set, for example hexadecimal digits.

Questions

Can I use this for passwords?

It works for that, but the password generator is built for it and offers helpful options. Use a password manager to store them.

Is there a limit?

Up to 1,024 characters per string and 200 strings at a time.

Are the strings stored?

Everything happens in your browser, and nothing you enter is sent anywhere.