Random String Generator

Draw random strings and tokens from the characters you choose, with the strength of each.

Privacy
This tool runs in your browser. Nothing you enter is sent to Wayfind.

Questions and answers

Where does the randomness come from?

From the browser, through crypto.getRandomValues, which is the same source a browser uses for cryptography. Each character is drawn on its own, and a draw that would favour some characters over others is thrown away and taken again, so every character is equally likely.

What does "strength of each" mean?

How many bits one string holds: the length multiplied by the base-two logarithm of the alphabet, rounded down. Thirty-two URL-safe base64 characters hold 192 bits; thirty-two hexadecimal characters hold 128. A token meant to be unguessable is usually given 128 bits or more.

Do the prefix and the dashes make a string stronger?

No, and the figure says so. Both are the same for every string the tool draws, so they carry nothing secret. They are there because a service often wants a prefix such as sk_live_ to say what a key is, and because dashes make a code easier to read aloud and to type.

Which alphabet should I use?

URL-safe base64 for a token that travels in a URL or a header: it is the shortest way to carry a given number of bits without a character that needs escaping. Hexadecimal where a value is read by something expecting hexadecimal. The alphabet without 0, O, 1, l and I for a code a person will read off a screen and type.

Can the same string come up twice?

Not in one batch. For a long string that is a certainty anyway, but a short one from a small alphabet can run out: ten different one-digit codes is all there are, and the field says so rather than repeating one.

Is anything sent anywhere?

No. The strings are drawn in this browser tab and never sent to Wayfind or stored. A token you draw here is yours alone, though a secret pasted into any web page is only as safe as the device it is on.

  • Password Generator Create strong, random passwords with the length and characters you choose.
  • UUID Generator Generate random version 4 or time-ordered version 7 UUIDs, one or hundreds at a time.
  • Username Generator Make usernames from two plain words and a number, with the separator and capitals you choose.
  • Random Number Generator Pick random whole or decimal numbers in a range you choose, with or without repeats, sorted or as drawn.

More Random generators