UUID v4 Bulk Generator

What is NIL UUID

A nil UUID is a UUID that has all 128 bits set to zero. It's represented as:

00000000-0000-0000-0000-000000000000

What is UUID MAX

UUID MAX is a UUID that has all 128 bits set to one. It's represented as:

FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF

What is UUID V1

UUID v1 generates unique identifiers using the host computer's MAC address and the current timestamp, ensuring that each UUID is unique.

Structure

A UUID v1 is displayed as 32 hexadecimal digits, split into five groups, like this:

bef45a40-d8b1-11ee-ad50-4bc2c7961874

How It Works

  • Timestamp: The current date and time provide the first part of the UUID, ensuring temporal uniqueness.
  • MAC Address: The host computer's MAC address is used as a spatially unique identifier.
  • Random Component: A random element is added to further ensure uniqueness.

What is UUID V3

UUID v3 creates unique identifiers by hashing a namespace identifier and a name using the MD5 hashing algorithm.

Structure

A UUID v3 looks like this:

6222b113-5f4f-34ad-99cd-2e42c0cc0e72

How It Works

  • Namespace Identifier: A predefined UUID that represents a certain domain or namespace.
  • Name: A string within the specified namespace.

The combination of these two is hashed using MD5 to produce a UUID v3.

[!IMPORTANT] Per the RFC, "If backward compatibility is not an issue, SHA-1 [Version 5] is preferred."

What is UUID V4

UUID v4 is a universally unique identifier that is generated using random numbers.

Structure

A UUID v4 is displayed as 32 hexadecimal digits, split into five groups, like this:

e81a5ce9-781c-46ab-993d-adc57c76a8b9

How It Works

  • Randomness: All the bits in a UUID v4 are generated randomly, providing a high degree of uniqueness.
  • No Inherent Logic: Unlike other UUID versions, v4 doesn't use time stamps or hardware addresses to generate the ID.

What is UUID V5

UUID v5 creates unique identifiers by hashing a namespace identifier and a name using the SHA-1 hashing algorithm.

Structure

A UUID v5 is displayed as 32 hexadecimal digits, split into five groups, like this:

74738ff5-5367-5958-9aee-98fffdcd1876

[!NOTE] The RFC DNS and URL namespaces are available as v5.DNS and v5.URL.

How It Works

  • Namespace Identifier: A predefined UUID that represents a certain domain or namespace.
  • Name: A string within the specified namespace.

The combination of these two is hashed using SHA-1 to produce a UUID v5.

What is UUID V6

UUID v6 is a universally unique identifier that is generated using random numbers.

Structure

A UUID v6 is displayed as 32 hexadecimal digits, split into five groups, like this:

What is UUID V7

UUID v7 is a universally unique identifier that is generated using random numbers.

A UUID v7 is displayed as 32 hexadecimal digits, split into five groups, like this:

  • [options.msecs] RFC "timestamp" field (Number of milliseconds, unix epoch)
  • [options.random] Array of 16 random bytes (0-255)
  • [options.rng] Alternative to options.random, a Function that returns an Array of 16 random bytes (0-255)
  • [options.seq] 31 bit monotonic sequence counter as Number between 0 - 0x7fffffff
  • [buffer] Array | Buffer If specified, uuid will be written here in byte-form, starting at offset
  • [offset = 0] Number Index to start writing UUID bytes in buffer
  • returns UUID String if no buffer is specified, otherwise returns buffer

How to check the UUID Version

UUID

Frequently Asked Questions

1. What is the difference between UUID v1 and UUID v6?

UUID v1 is generated using the host computer's MAC address and the current timestamp, ensuring that each UUID is unique. UUID v6 is generated using random numbers, providing a high degree of uniqueness.

2. Can UUID v7 be used for cryptographic purposes?

UUID v7 is a universally unique identifier that is generated using random numbers. It is not designed for cryptographic purposes.

3. What is the difference between UUID v4 and UUID v7?

UUID v4 is generated using random numbers. UUID v7 is generated using random numbers.

4. What is the difference between UUID v3 and UUID v5?

UUID v3 is generated using a namespace identifier and a name using the MD5 hashing algorithm. UUID v5 is generated using a namespace identifier and a name using the SHA-1 hashing algorithm.

References