Tabwrench tools Small tools that run in your browser. No sign-up, no upload.
Tools / Generate / convert / UUID / random string

UUID and random string generator

Generate UUIDs in bulk, version 4 or the time-ordered version 7, and random strings from the character sets you choose.

Runs in your browser. Nothing you paste leaves this page.

UUID

Random string

UUID v4 or v7?

v4v7
Made from122 random bits48-bit timestamp in milliseconds, then 74 random bits
Sorts by creation timeNoYes
As a database primary keyInserts land all over the indexNew rows go at the end of the index, like an auto-increment ID
Reveals when it was madeNoYes, to the millisecond

Use v7 for primary keys and anything you want to sort by age. Use v4 when the ID must not leak its creation time, for example in a public link.

The 13th hex digit is the version, so a v4 UUID always reads xxxxxxxx-xxxx-4xxx-… and a v7 reads …-7xxx-….

How strong is a random string?

Strength is measured in bits: length × log2(number of possible characters). The page shows this number under the output.

CharactersSet sizeLength for about 128 bits
Digits only1039
Lowercase and digits3625
Upper, lower and digits6222
With symbols8520

For API keys and session tokens, 128 bits is a sensible floor.

Questions

Are these values really random?

They come from crypto.getRandomValues, the browser's cryptographic generator, not from Math.random. Characters are picked so that each one is equally likely.

Can two UUIDs collide?

In theory. In practice you would need to generate about 2.7 quintillion v4 UUIDs before a collision becomes likely.

Are the generated values stored anywhere?

No. They exist only in this tab and are gone when you reload it.

Related tools