Skip to content
UniKit

Random string generator (seeded)

Generate random strings with a seeded, replayable PRNG: eight built-in charsets (alnum, hex, base58, URL safe, …) or your own alphabet, with control over count, length, line width and unique characters per string. The seed is returned so any run can be replayed.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Only used when the charset is set to custom; duplicate characters are removed. Built-in sets have fixed definitions — hex is 0-9a-f and base58 drops 0 O I l.

Generated strings

Produced by a seeded PRNG (FNV-1a + mulberry32) instead of Math.random, so results are reproducible and stay offline.

aTP1GM4jQ32TcZcM

Strings: 1 · Length: 16 · Charset: alnum · Alphabet: 62 · Output lines: 1

What this tool does

  • Bulk-produce placeholder ids, order numbers or invite codes for tests, with a seed you can replay when reproducing a bug
  • Pick the look-alike free charset when humans have to copy the strings, or hex when another system expects hexadecimal

Example

Input

(charset: letters + digits, seed: demo, count: 2, length: 16)

Output

Ihu1mJ86MXEmI8KI
UCijpSMvEkm2HSTg

The same seed and options always yield exactly these two strings; another seed gives a completely different but equally reproducible set.

Frequently asked questions

How is the randomness produced, and is it reproducible?

Math.random is not used: FNV-1a hashes the seed into the initial state and mulberry32 produces 32-bit values, with rejection sampling when picking characters so there is no modulo bias. Same seed plus same options gives the same output, and the seed used is returned — an empty seed means the built-in unikit seed.

What exactly are the built-in charsets?

alnum is 26 uppercase + 26 lowercase + 10 digits; hex is 0-9a-f; urlsafe is alphanumerics plus - and _; base58 is the Bitcoin set without 0 O I l; no-ambiguous is alphanumerics without 0 1 O I l. A custom charset uses the text box and is de-duplicated.

What are the limits?

Length is 1–4096 per string, count is 1–100, and count × length must stay within 100,000 characters. With "no repeated char inside a string" the length cannot exceed the alphabet size. Anything beyond that raises an error instead of silently truncating.

Can I use these strings as passwords?

They are generated locally, but the source is a reproducible pseudo-random generator driven by the seed, so it is not suitable when unpredictability matters. Use your operating system or browser cryptographic random source for real secrets.

Keywords:random string generatorseed

Related tools