Skip to content
Toolbox

UUID Generator

Create unique identifiers (UUIDs) in one click, as random version 4 values or sortable version 7 values.

Version

UUIDs are created with your browser’s secure random generator and are never sent anywhere. A UUID is an identifier, not a secret, so do not use it as a password.

How to use UUID Generator

  1. Choose the version

    Version 4 is completely random. Version 7 starts with the current time, so IDs created later sort after earlier ones.

  2. Set the amount and the format

    Type how many UUIDs you need, from 1 to 100, and choose upper case or lower case, with or without hyphens.

  3. Generate and copy

    Press Generate new for a fresh batch, then use Copy all to place them on your clipboard, one per line.

Example

Two version 4 UUIDs

Input

Version 4, quantity 2, lower case, hyphens kept

Result

  • b7f5c3d2-9e41-4a68-8c0b-2d6f1e3a9c57
  • 0d84e1f6-73ab-4c29-9f15-a6e2c8b4d310
  • Your values will be different every time

Common uses

  • Database keys

    Create primary keys that any device can make without asking a central server for the next number.

  • Testing and sample data

    Fill test records and fixtures with unique values.

  • File and session names

    Name uploads, sessions or temporary files so that they never collide.

  • Tracking and correlation

    Give every request or event its own ID so related log lines can be matched later.

Tips for better results

  • Pick version 7 for database primary keys. New values sort after old ones, so indexes stay compact and inserts are usually faster than with fully random keys.
  • A UUID is unique, not secret. Do not use one as a password or as the only protection for a private link.
  • The chance of two random version 4 UUIDs matching is so small that it can be ignored in practice.
  • Without hyphens a UUID has 32 characters, and with hyphens it has 36. Check which form your system expects.

Frequently asked questions

What is a UUID?

A UUID (universally unique identifier) is a 128-bit value, usually written as 36 characters in five groups separated by hyphens, such as 8f14e45f-ceea-467a-9575-f2c6e1d2a4b3.

What is the difference between UUID v4 and v7?

Version 4 is made entirely of random bits. Version 7 begins with a timestamp in milliseconds followed by random bits, so its values can be sorted by creation time.

Is a UUID the same as a GUID?

In practice, yes. GUID is the name Microsoft uses for the same kind of identifier.

Can two UUIDs ever be the same?

In theory, but for random version 4 values it is so unlikely that it is ignored in practice. You would need to generate billions of billions before a repeat became likely.

Are the UUIDs created on a server?

No. They are made in your browser with its secure random number generator and are never sent anywhere.

Last updated: