Skip to content

Online UUID GeneratorGenerate UUIDs of different versions

Create universally unique identifiers for your applications

Online UUID Generator

Your UUID will appear here...
UUID copied to clipboard!

What is a UUID?

A UUID (Universally Unique Identifier) is a 128-bit number used to uniquely identify information in computer systems. It is widely used to ensure uniqueness across different databases, systems, and networks without a central coordinating authority.

What is an example of a UUID?

This is an example of a valid UUID: 61dab95b-179f-4ccf-a7c7-cc41e2983891

Is a UUID always 36 characters?

In its essence a UUID is a 128-bit number, which can be represented in a number of ways. The canonical way to represent a UUID is as five hexadecimal numbers separated by hyphens, giving a total of 36 characters (32 hex digits and 4 hyphens).

What is UUID v8?

The UUID specification allows applications to generate custom UUIDs based on their specific needs. The only hard requirement is that the version and variant bits must be present and conform to the UUID specification. UUID version 8 is reserved for such custom UUID implementations.

Which UUID version is best?

For most applications, we recommend UUID Version 4 for its simplicity and security. However, if you need time-ordered IDs for database performance, consider UUID Version 7.

Learn about each UUID version:

Programming language guides:

  • Bash - uuidgen command
  • C# - System.Guid & UuidCreator
  • C++ - Boost.UUID library
  • Clojure - JVM UUID functions
  • ClojureScript - Browser & Node.js
  • Dart - uuid package for Flutter
  • Go - google/uuid package
  • Groovy - Java interoperability
  • Java - java.util.UUID & UuidCreator
  • JavaScript - crypto.randomUUID() & uuid library
  • Kotlin - JVM UUID generation
  • PHP - Built-in functions & ramsey/uuid
  • Python - Built-in uuid module
  • Ruby - SecureRandom module
  • Rust - uuid crate
  • Scala - JVM-based UUID methods
  • Swift - Foundation UUID
  • TypeScript - Same as JavaScript with types

How do I generate UUID in databases?

SQL databases:

  • PostgreSQL - Built-in uuid-ossp extension and gen_random_uuid()
  • MySQL - Built-in UUID() function and optimization techniques
  • SQL Server - NEWID() and NEWSEQUENTIALID() functions
  • SQLite - Custom functions and extensions
  • Oracle - SYS_GUID() function

NoSQL databases:

  • MongoDB - ObjectId and UUID generation with BinData
  • Redis - UUID generation with Lua scripts and client libraries
  • Cassandra - Built-in UUID and TimeUUID functions
  • DynamoDB - UUID generation in application code

← Back to UUID Generator