Privacy All tools run entirely in your browser.

UUID Generator

Generate UUIDs for Databases and Applications

Input + outputChoose a UUID version and generate a new identifier
Online UUID Generator Tool

Generate UUID v1 or UUID v4 values on demand. UUID stands for Universally Unique Identifier and is used to uniquely identify data across systems.

UUID Versions (v1 vs v4)
  • UUID v1: Time-based and can reveal when it was generated.
  • UUID v4: Randomly generated and the default choice for most applications.
Example UUID

Example format (36 characters with hyphens):

f47ac10b-58cc-4372-a567-0e02b2c3d479
Common Uses
  • Primary keys in databases.
  • Public IDs in APIs and URLs.
  • Correlation IDs for logs and tracing.
  • Identifiers for files, sessions, or events.
How unique is a UUID?

UUIDs are 128-bit identifiers with a very large address space. Collisions are considered practically negligible for typical application use.

How do I generate a UUID in Javascript?

Use the uuid npm package and call uuidv4().

import { v4 as uuidv4 } from 'uuid';
uuidv4(); // returns new UUID
How do I generate a UUID in C#

Use the Guid.NewGuid(); Method.

Guid myUUID = Guid.NewGuid();
Console.WriteLine(myUUID);
How do I generate a UUID in python?

Import the uuid library and call uuid.uuid4().

import uuid
uuid.uuid4()

See the Python 2 docs and Python 3 docs for more information.

More information about UUIDs
What about GUIDs?

Use the Generate GUID Online Tool for GUID terminology.

UUID FAQ

Are UUIDs secure secrets? No. UUIDs identify records; they do not encrypt data.

Which UUID version should I use? Use v4 unless you need time ordering from v1.

Can UUIDs collide? Collisions are practically negligible for most applications.