UUID & MAC Utils by Daniel Marschall

View the source code

Overview

Generate random and/or time-based UUIDs

New: Generate Unix Epoch time-based (version 7) UUID ⭐

A UUIDv7 measures time in the Unix Epoch with an accuracy between 1ms and 245ns, depending on how many bits are spent for the timestamp (48-60 bits). The rest of the UUID (62-74 bits) is filled with random data. The timestamp is at the front of the UUID, therefore the UUIDs are monotonically increasing, which is good for using them in database indexes. Since this UUID version does not contain a MAC address, it is also recommended due to the improved privacy.

Show format

Here are 15 UUIDs that were created just for you! (Reload the page to get more)

019e41e9-c2c1-7eb5-acdf-ad4398074f66
019e41e9-c2c2-7067-8199-b4540dd8ded6
019e41e9-c2c2-71b7-9c05-8a2c5c17c4b0
019e41e9-c2c2-72d5-a45f-4620ee674f2d
019e41e9-c2c2-73e8-a90f-fe9bd28a65e9
019e41e9-c2c2-74fe-b25e-3181e7d3fcb6
019e41e9-c2c2-7611-8fdc-341563f6f6b6
019e41e9-c2c2-771f-b330-e8522d7be4d9
019e41e9-c2c2-7913-a409-2a10d00f1dfb
019e41e9-c2c2-7a2e-a0db-56cf93b36de0
019e41e9-c2c2-7b40-8a18-50f062f71c3f
019e41e9-c2c2-7c52-a8d8-8cda925d48a4
019e41e9-c2c2-7d69-b7fe-4c8bb6c67ea6
019e41e9-c2c2-7e7b-ba16-74132be75475
019e41e9-c2c2-7f8e-8a88-385441def438

New: Generate reordered Gregorian time-based (version 6) UUID ⏰

Like UUIDv1, this kind of UUID is made of the MAC address of the generating computer, the time, and a clock sequence. However, the components in UUIDv6 are reordered (time is at the beginning), so that UUIDs are monotonically increasing, which is good for using them in database indexes.

Show format

Here are 15 UUIDs that were created just for you! (Reload the page to get more)

1f153c0c-ec92-641e-a17a-4cf95d479851
1f153c0c-ec92-65d6-a17a-4cf95d479851
1f153c0c-ec92-66bc-a17a-4cf95d479851
1f153c0c-ec92-678e-a17a-4cf95d479851
1f153c0c-ec92-6856-a17a-4cf95d479851
1f153c0c-ec92-691e-a17a-4cf95d479851
1f153c0c-ec92-69e6-a17a-4cf95d479851
1f153c0c-ec92-6aa4-a17a-4cf95d479851
1f153c0c-ec92-6b6c-a17a-4cf95d479851
1f153c0c-ec92-6c34-a17a-4cf95d479851
1f153c0c-ec92-6d7e-a17a-4cf95d479851
1f153c0c-ec92-6e50-a17a-4cf95d479851
1f153c0c-ec92-6f18-a17a-4cf95d479851
1f153c0c-ec92-6fea-a17a-4cf95d479851
1f153c0c-ec93-60b2-a17a-4cf95d479851

Generate Gregorian time-based (version 1) UUID ⏰

A UUIDv1 is made of the MAC address of the generating computer, the time, and a clock sequence.

Show format

Here are 15 UUIDs that were created just for you! (Reload the page to get more)

cec9318e-53c0-11f1-a17a-4cf95d479851
cec93206-53c0-11f1-a17a-4cf95d479851
cec9326a-53c0-11f1-a17a-4cf95d479851
cec932ce-53c0-11f1-a17a-4cf95d479851
cec9333c-53c0-11f1-a17a-4cf95d479851
cec933a0-53c0-11f1-a17a-4cf95d479851
cec933fa-53c0-11f1-a17a-4cf95d479851
cec9345e-53c0-11f1-a17a-4cf95d479851
cec934d6-53c0-11f1-a17a-4cf95d479851
cec9353a-53c0-11f1-a17a-4cf95d479851
cec9359e-53c0-11f1-a17a-4cf95d479851
cec9360c-53c0-11f1-a17a-4cf95d479851
cec9367a-53c0-11f1-a17a-4cf95d479851
cec936e8-53c0-11f1-a17a-4cf95d479851
cec9374c-53c0-11f1-a17a-4cf95d479851

Generate SQL Server sortable time-based (version 8) UUID

The sorting of UUIDs in SQL Server is rather confusing and incompatible with UUIDv6 and UUIDv7.
Therefore this method developed by HickelSOFT generates UUIDs which are sortable by SQL Server.
They have a time resolution of 1 milliseconds combined with 16 bits of random data.

C# implementation | PHP implementation

Show format

Here are 15 UUIDs that were created just for you! (Reload the page to get more)

6add543b-c904-8b08-87ea-5ce32bd83b97
93e0563b-c904-8b08-87ea-5ce32bd83b97
6c8f573b-c904-8b08-87ea-5ce32bd83b97
69e6583b-c904-8b08-87ea-5ce32bd83b97
0165593b-c904-8b08-87ea-5ce32bd83b97
23855a3b-c904-8b08-87ea-5ce32bd83b97
8a625b3b-c904-8b08-87ea-5ce32bd83b97
94f75c3b-c904-8b08-87ea-5ce32bd83b97
76c25d3b-c904-8b08-87ea-5ce32bd83b97
39515e3b-c904-8b08-87ea-5ce32bd83b97
fd165f3b-c904-8b08-87ea-5ce32bd83b97
d8ef603b-c904-8b08-87ea-5ce32bd83b97
aac4613b-c904-8b08-87ea-5ce32bd83b97
e08c623b-c904-8b08-87ea-5ce32bd83b97
47f9633b-c904-8b08-87ea-5ce32bd83b97

Generate random (version 4) UUID 🎲

A UUIDv4 is made of 122 random bits. No other information is encoded in this kind of UUID.

Show format

Here are 15 UUIDs that were created just for you! (Reload the page to get more)

2c8d8ad6-6631-4a31-b19a-149dd5f5585f
242a9fa5-e0dd-42f3-a077-49780678f73d
61659ae9-25ea-498d-95d8-938cadcffa97
fcbd5851-02b7-498a-86ab-eda8e6f8a9d8
4e1e18f2-bb69-4a57-9c13-960ff62457aa
727c14a6-a2b3-41d4-b797-48caeddce220
f2fcaf23-d71a-45a3-b2dd-7ea7c62bc8c0
5419d85e-3bc0-42e0-aab7-a9af43a0afaf
c6db300b-995b-40f0-a7c4-02ff4516d154
5c5b109a-37ce-47c6-a4c6-55707cf9e045
b34f264e-18f0-478f-9a99-42fd90b451cb
113baa0b-7477-4220-a7ad-ef5471ee057d
5bf02ffc-4aef-472e-b5e3-0814645296d9
e213acf9-6726-40af-ac74-724ff8d331b3
a093395d-6bc4-4cec-9669-5a6b3b6fcd07

Generate other UUID types

The following types of UUIDs are less common and/or require special knowledge. Please only use the following generators if you know what you are doing.

NCS (variant 0) UUID

The NCS UUIDs are a legacy format initially designed by Apollo Computer that cannot be generated anymore, because the amount of available timestamp bits was exhausted on 5 September 2015. As an example, here is the last possible NCS UUID (all bits of the timestamp are set to 1) for IP address 127.0.0.1: ffffffff-ffff-0000-027f-000001000000.

Show format

Generate DCE Security (version 2) UUID

A UUIDv2 contains information about the creator (person, group, or organization), the generating system (MAC address), and time. The creator information replaced parts of the time bits, therefore the time resolution is very low.

Show format

= Address Family ID: (decimal notation)
(decimal notation)
Warning: The timestamp has an accuracy of 7:10 minutes, therefore the uniqueness of these UUIDs is not guaranteed!

Generate name-based (version 3 / 5 / New: 8) UUID

A UUIDv3 is made out of a MD5 hash and a UUIDv5 is made out of a SHA1 hash. RFC 9562 also contains an example for a custom UUIDv8 implementation that uses modern hash algorithms.

Show format


= Namespace UUID:

Warning: These UUIDs do not contain a timestamp, therefore the uniqueness of these UUIDs is not guaranteed!

New: Generate Custom (version 8) UUID

UUIDv8 is made of 122 bits application-specific / custom data. The other 6 bits are used to specify the variant and version of the UUID, to make it RFC-compatible.

Show format

0x = Decimal
0x = Decimal
0x = Decimal
0x = Decimal
0x = Decimal
Warning: These UUIDs do not contain a timestamp, therefore the uniqueness of these UUIDs is not guaranteed!

Interpret a UUID

You can enter a UUID in the following notations:

The script will output:

Please enter a UUID or UUID OID:

Interpret a MAC address (MAC / EUI / ELI / SAI / AAI)

You can enter a UUID in the following notations:

The script will output:

Please enter a MAC (EUI, ELI, SAI, AAI), or IPv6-Link-Local address:

Generate an AAI

An Administratively Assigned Identifier (AAI) is a MAC address which can be locally defined by applications or an administrator. Unlike the EUI, an AAI is NOT worldwide unique.


The following options are rather unusual, but are implemented for the sake of completeness: