Skip to content
All tools

Free tool

UUID Generator

Generate UUIDs, ULIDs, and NanoIDs. Bulk generate up to 25 at once and copy with one click.

Loading tool…

What is a UUID?

A UUID (Universally Unique Identifier) is a 128-bit identifier that is unique across space and time. UUIDs are commonly used in databases, distributed systems, and APIs.

UUID v4 or v7 for database keys

Pick a format, then generate 5, 10 or 25 IDs and copy one or the whole batch. A v4 or v7 UUID is 36 characters with hyphens, a ULID is 26 and a NanoID is 21. The IDs are generated in your browser and are not stored anywhere.

A common mistake is using random v4 UUIDs as primary keys on a large table. Each new row lands at a random point in the index, so inserts touch more of it than they need to. A v7 UUID starts with a millisecond timestamp, so new IDs sort after older ones. If you give each analytics event an ID so a retried send is not counted twice, a v7 ID also records the moment it was generated.

UUID versions

  • •UUID v4: Random. Most commonly used, great for general purposes
  • •UUID v7: Time-ordered. Sortable by creation time, ideal for database keys

Alternatives

  • •ULID: 26 characters, case-insensitive, sortable
  • •NanoID: 21 characters, URL-safe, compact

When to use each type

  • •UUID v4: General purpose, maximum compatibility
  • •UUID v7: Database primary keys, when time-ordering matters
  • •ULID: When you need sortability and case-insensitivity
  • •NanoID: URLs, user-facing IDs, when space is limited

Building developer onboarding?

Skene generates onboarding checklists from your codebase.

Learn more