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)

019cad87-36a1-74fe-ab23-1a52cdbb143f
019cad87-36a1-76b9-bcbc-5bb4540edd48
019cad87-36a1-77fc-bb29-97f739532b51
019cad87-36a1-7923-a477-cdd49b9082c7
019cad87-36a1-7a42-9f5d-bb1e7435b1c9
019cad87-36a1-7b5d-b4c6-e229e1d10236
019cad87-36a1-7be0-9a89-582fa01c6d1b
019cad87-36a1-7d0f-a3fc-742ae955d5d1
019cad87-36a1-7e2e-8f19-6b0175f8aa8f
019cad87-36a1-7f48-adf8-cce284865e3c
019cad87-36a2-7067-b3b2-f53e077a0a18
019cad87-36a2-7182-91aa-573031799313
019cad87-36a2-729c-b8b5-1f4239a3c583
019cad87-36a2-73bb-97d1-1fcf28afc9bf
019cad87-36a2-74d5-9476-263f38a2b104

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)

1f1160c8-5476-6946-a1e0-4cf95d479851
1f1160c8-5476-6aea-a1e0-4cf95d479851
1f1160c8-5476-6bda-a1e0-4cf95d479851
1f1160c8-5476-6cac-a1e0-4cf95d479851
1f1160c8-5476-6d7e-a1e0-4cf95d479851
1f1160c8-5476-6e46-a1e0-4cf95d479851
1f1160c8-5476-6f0e-a1e0-4cf95d479851
1f1160c8-5476-6fd6-a1e0-4cf95d479851
1f1160c8-5477-6094-a1e0-4cf95d479851
1f1160c8-5477-6166-a1e0-4cf95d479851
1f1160c8-5477-62a6-a1e0-4cf95d479851
1f1160c8-5477-6378-a1e0-4cf95d479851
1f1160c8-5477-6440-a1e0-4cf95d479851
1f1160c8-5477-64fe-a1e0-4cf95d479851
1f1160c8-5477-65d0-a1e0-4cf95d479851

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)

45fdc23c-abcc-4cbb-870b-f0f6f58b9b2d
c40a681f-7d51-4704-a5b7-23d0ac6e0996
5b0bfaf5-3936-444c-b1af-01b513a21d99
e872565c-88e9-4283-a117-6fd414a62820
2ac45946-6211-41e0-ac4d-e55167f86218
cd1ea4e3-decb-4b3f-9969-58af71d03ce8
9e7b18c6-9bce-42f2-aadd-a3fd7155894f
e13483dc-09ca-4abc-a273-7f373faf3f43
6c936d77-792e-4e96-860a-ba9090f6a134
670391e4-9872-4768-acaa-d1eea1f09f81
0e51c07c-41a0-48c0-95a5-fa28fc0496fa
8d85d096-bb9c-44d5-9178-80108fd12800
445bc020-6c30-4e07-bb54-63319039efae
d233f9c9-cef4-45be-928e-a4e6855d2841
3f55b155-c637-44c1-a5e6-b703ede7ae0d

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)

85477aee-160c-11f1-a1e0-4cf95d479851
85477b5c-160c-11f1-a1e0-4cf95d479851
85477bc0-160c-11f1-a1e0-4cf95d479851
85477c38-160c-11f1-a1e0-4cf95d479851
85477ca6-160c-11f1-a1e0-4cf95d479851
85477d14-160c-11f1-a1e0-4cf95d479851
85477d82-160c-11f1-a1e0-4cf95d479851
85477df0-160c-11f1-a1e0-4cf95d479851
85477e5e-160c-11f1-a1e0-4cf95d479851
85477ec2-160c-11f1-a1e0-4cf95d479851
85477f30-160c-11f1-a1e0-4cf95d479851
85477f9e-160c-11f1-a1e0-4cf95d479851
85478002-160c-11f1-a1e0-4cf95d479851
85478066-160c-11f1-a1e0-4cf95d479851
854780ca-160c-11f1-a1e0-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)

a045aa2d-d701-8d03-87ea-5ce32bd83b97
9d44ab2d-d701-8d03-87ea-5ce32bd83b97
5698ac2d-d701-8d03-87ea-5ce32bd83b97
2fa7ad2d-d701-8d03-87ea-5ce32bd83b97
5dc2ae2d-d701-8d03-87ea-5ce32bd83b97
02dbaf2d-d701-8d03-87ea-5ce32bd83b97
3687b02d-d701-8d03-87ea-5ce32bd83b97
cbbeb12d-d701-8d03-87ea-5ce32bd83b97
f651b22d-d701-8d03-87ea-5ce32bd83b97
938ab32d-d701-8d03-87ea-5ce32bd83b97
9ae6b52d-d701-8d03-87ea-5ce32bd83b97
4ecbb62d-d701-8d03-87ea-5ce32bd83b97
27a9b72d-d701-8d03-87ea-5ce32bd83b97
7474b82d-d701-8d03-87ea-5ce32bd83b97
e977b92d-d701-8d03-87ea-5ce32bd83b97

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: