UUID and ULID Generator

Generate random UUID v4, time-ordered v7 or ULID identifiers, up to 500 at once, with a secure random source in your browser.

Generate IDs
v43f9a1c2e-7b4d-4e8a-9c1f-…v7018f2b6c-5a3e-7c21-b8d4-…ULID01J9ZK4M8Q2T6WXYV3N5R7…

Generator

Which type should you use?

UUID v4

Fully random. The most common choice for any ID.

UUID v7

Starts with time, so it sorts naturally and helps database indexes.

ULID

26 characters, no hyphens, time-ordered and shorter in URLs.

When to use a unique ID instead of a sequence

Do

  • When merging data from several servers
  • In public URLs you do not want guessed
  • When the app creates a record before saving it

Avoid

  • Do not treat it as a secret or password
  • Do not use v4 as a primary key in huge tables without reason; v7 indexes faster

Example: an order number nobody can guess

If your order or invoice links use sequences like /order/1052, anyone can try 1053. A UUID in the link makes guessing impractical, though checking the user's access is still required either way.

Key terms

Short definitions of what you meet along the way.

UUID
A 128-bit identifier written in 36 characters, unique without a central authority.
ULID
A time-ordered 26-character identifier in Crockford Base32.
Primary key
The column that identifies each row in a database table.

Frequently asked questions

Did not find your answer? Ask us on WhatsApp

Can a UUID repeat?

The chance of a v4 collision is so small it is ignored in practice.

Are the IDs stored?

No. They are generated in your browser and sent nowhere.

How do I make one in code?

JavaScript: crypto.randomUUID(); PHP: the ramsey/uuid library; MySQL 8: UUID().

Building a system or app?

We build custom systems and APIs for your business.

Contact us on WhatsApp