Decode a UUID

How UUID Decoding Works

UUID decoding involves parsing the 128-bit UUID into its constituent parts based on the version and variant. Each UUID version has a different structure:

Version 1 UUIDs

Version 1 UUIDs contain a timestamp (60 bits), clock sequence (14 bits), and node identifier (48 bits, usually a MAC address).

Version 4 UUIDs

Version 4 UUIDs are randomly generated, with 6 bits reserved for version and variant information.

Version 7 UUIDs

Version 7 UUIDs contain a timestamp (48 bits) and random data (74 bits), optimized for database performance.

GUIDs

GUIDs follow the same structure as Version 4 UUIDs but are typically displayed in uppercase with braces.

Nil UUIDs

Nil UUIDs are all zeros and are used for testing and development purposes.