Random string generator

100% local. Your text never leaves this browser tab.

Get a fresh random string for every line below, 16 lowercase letters and digits by default. Add lines for more, delete lines for fewer. They are generated in your browser, so nothing is uploaded. Handy for test data, temporary tokens and placeholder keys.

The token

Pick a length, or a number range

The rule replaces each line with the {random:N} token. Change N for a different length, or use {number:lo-hi} for a random number instead.

{random:16}         ->  k3f9x2p0qm7ab1cd    (16 chars, a-z 0-9)
{random:8}          ->  9xqp2m4a            (8 chars)
{number:1000-9999}  ->  4823                (random in a range)
{guid:short}        ->  3f2504e0            (short 8-hex id)

Strings use lowercase letters and digits, up to 128 long. For a full GUID instead, use the GUID generator.

About the strings

Yours to size

Any length

Change the number in {random:N} to set the length. The default of 16 is plenty for a hard-to-guess token, and you can go up to 128.

Letters and digits

Strings use lowercase a to z and 0 to 9, so they are safe in URLs, file names and code without escaping anything.

Fresh every time

Every line gets its own value and every run regenerates them, so you never reuse a token by accident.

The Windows app

Put it on a hotkey

☕ A random token at the cursor on a hotkey, for the price of a coffee. Yours forever.

Download this exact setup as a ready-made Random string generator profile. In the Windows app, Insert mode types a fresh random string straight at your cursor on a hotkey, no generator to open. Same engine as above, entirely offline.

Get the Windows app →
Pay once, €3.39, no subscription. If the app doesn’t open, the profile is saved to your downloads, just import it.
FAQ

Questions, answered plainly

How do I generate a random string?

Each line above is already a fresh random string. Add lines for more and delete lines for fewer, then copy the result. Change {random:16} in the rule to set the length.

How long can the random string be?

Up to 128 characters. Set the length with the number in {random:N}, for example {random:32} for a 32-character string. The default is 16.

More generators: GUIDs, date formats, random strings and today's date.