Random String Generator

Make random strings for keys, tokens and test data.

Generate
Characters
Size

Runs on your device.

Questions

Are these strings random enough for secrets?

Yes. They come from your browser’s cryptographic random generator, and each character is picked without the small bias that simple methods introduce. The strength shown is in bits: 128 bits or more is plenty for tokens and keys.

What does “Leave out look-alikes” do?

It skips characters that are easy to confuse when read or typed: I, l, 1, |, O, 0 and o. Useful for codes people have to copy by hand.

When should I use random bytes instead?

For encryption keys, salts and signing secrets, which are usually specified as a number of bytes (32 bytes is 256 bits). Hex doubles the length; Base64URL is the shortest form that is safe in URLs.

Is it free? Do I need an account?

It is free to use and there is nothing to sign up for. There are no watermarks and no daily limits.

Missing something, or not working as it should? Tell us