Online UUID Generator • { Nil UUID } •

Generate and copy Nil/Empty UUIDs (all zeros) in multiple formats with our free online tool. Perfect for developers needing sentinel values, default states, or special case identifiers.

100% Free
Secure
No Registration

Nil UUID Generator

Generate UUIDs consisting of all zeros in various formats
00000000-0000-0000-0000-000000000000

Important Note: The Nil UUID is a special UUID that consists of all zeros. It's often used as a sentinel value or default state in applications.

The Nil UUID is defined in RFC 4122 as a special case identifier

Support This Tool
Advertisements help keep this service free
AdSense Ad Placement

Ads help support this free tool

Bulk Nil UUID Generation

Generate multiple Nil UUIDs in the selected format

How many UUIDs? (max 1000)

What is a Nil UUID?

A Nil UUID (also known as an Empty UUID) is a special form of Universally Unique Identifier where all 128 bits are set to zero. It's represented as 00000000-0000-0000-0000-000000000000 in its canonical textual representation. The Nil UUID is defined in RFC 4122 and serves as a special case identifier, often used to indicate the absence of a specific UUID value.

When to Use the Nil UUID

The Nil UUID serves specific purposes in software development:

  • Default or uninitialized state for UUID variables
  • Sentinel values in database and application logic
  • Placeholder values during system initialization
  • Representing 'none' or 'not applicable' in UUID-based systems
  • Testing and debugging UUID handling in applications
  • Compatibility with systems that require a UUID but don't have a meaningful value

Nil UUID Formats

The Nil UUID can be represented in multiple formats depending on your system requirements:

FormatValueCommon Usage
Standard00000000-0000-0000-0000-000000000000Most common format, used in most programming languages and databases
Hex String0x00000000000000000000000000000000Typically used in low-level applications and some binary protocols
Base64AAAAAAAAAAAAAAAAAAAAAA==Used when UUIDs need to be efficiently encoded for transport or storage
URNurn:uuid:00000000-0000-0000-0000-000000000000Standard format for UUIDs in URIs and XML documents
With Braces{00000000-0000-0000-0000-000000000000}Common in Microsoft systems and some programming environments

Technical Specification

The Nil UUID is a specific case defined in RFC 4122 with these characteristics:

  • All 128 bits are set to zero (16 bytes of zeros)
  • Version field (bits 48-51) is also zero (unlike other UUID versions)
  • Variant field (bits 64-65) is also zero (unlike standard UUIDs)
  • Has a 100% deterministic value across all systems
  • Takes the canonical form of 00000000-0000-0000-0000-000000000000
  • Occupies 36 characters in standard string representation (including hyphens)
  • When parsed to its binary form, equals sixteen consecutive zero bytes

Frequently Asked Questions

Is the Nil UUID valid according to the UUID specification?

Yes, the Nil UUID is explicitly defined in RFC 4122 as a special case of UUID. While it doesn't follow the normal rules for UUID version and variant bits, it's recognized as a valid special-purpose UUID by the specification.

Can I use the Nil UUID as a regular identifier?

While technically possible, it's not recommended to use the Nil UUID as a regular identifier. Its special status as 'all zeros' typically signifies an uninitialized or default state. Many systems and frameworks recognize and treat it specially, which might lead to unexpected behavior if used as a regular identifier.

How is the Nil UUID different from UUID version 0?

The Nil UUID is not the same as a UUID version 0. UUID versions are indicated by specific bits in positions 48-51 of the UUID, but the Nil UUID has all bits set to zero, including the version bits. There is no officially defined 'version 0' in the UUID specification.

Is the Nil UUID the same across all programming languages?

Yes, the Nil UUID has the same value (all zeros) across all programming languages and platforms. However, its string representation might vary slightly depending on the format used (standard, hex, with braces, etc.).

How do I check if a UUID is the Nil UUID?

Most UUID libraries provide a function to check if a UUID is the Nil UUID. For example, in Java, you can use 'uuid.equals(UUID.fromString("00000000-0000-0000-0000-000000000000"))' or 'uuid.equals(new UUID(0, 0))'. In most cases, you can also simply check if all bits or bytes are zero.

© UUIDGenerator.co v1.0 All rights reserved (2025)