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)

019d06c6-396f-71b3-8a0f-857c5280fc4a
019d06c6-396f-7348-a59b-2a261e1ca46e
019d06c6-396f-74cd-b410-eda94c8b42d8
019d06c6-396f-7609-86d1-81f60c2ee735
019d06c6-396f-7723-ac90-cf436a2aac28
019d06c6-396f-783e-b720-a20e73d6c668
019d06c6-396f-79b3-b435-01647a6105fd
019d06c6-396f-7b07-95d3-b4dbcaac2cd1
019d06c6-396f-7c3e-acf3-15d1d8407866
019d06c6-396f-7d8a-bd26-17deb0343a56
019d06c6-396f-7ecd-b0e3-d5c3e4f1f11d
019d06c6-396f-7009-a6b1-672fb2830aea
019d06c6-3972-7211-a255-9c4afdfceb64
019d06c6-3972-7365-9cb9-ff95e1a78d70
019d06c6-3972-7488-b0a5-963620117e6e

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)

1f123aab-2a54-6466-aec2-4cf95d479851
1f123aab-2a54-6614-aec2-4cf95d479851
1f123aab-2a54-670e-aec2-4cf95d479851
1f123aab-2a54-67ea-aec2-4cf95d479851
1f123aab-2a54-68b2-aec2-4cf95d479851
1f123aab-2a54-6984-aec2-4cf95d479851
1f123aab-2a54-6a56-aec2-4cf95d479851
1f123aab-2a54-6b1e-aec2-4cf95d479851
1f123aab-2a54-6bf0-aec2-4cf95d479851
1f123aab-2a54-6cb8-aec2-4cf95d479851
1f123aab-2a54-6e16-aec2-4cf95d479851
1f123aab-2a54-6ef2-aec2-4cf95d479851
1f123aab-2a54-6fba-aec2-4cf95d479851
1f123aab-2a55-608c-aec2-4cf95d479851
1f123aab-2a55-615e-aec2-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)

68d857dd-f577-433b-9ba2-4bc40b3c3a2e
090078ff-f010-4b60-b46b-51ed62010614
8ab2928c-cfb6-4e09-844d-70e5a2efaf82
7b6f0931-00b8-4dbf-aed8-54d745ac0034
7f5e4c2c-6feb-4d73-a30e-2ed794d1d75e
19174d25-ba96-4dba-8db2-2828df2fea56
5c70a43a-7cf3-47f1-a378-42806ed5b9ca
ee34272e-6adb-44f2-919f-17f043e22886
a21fecb1-6b66-42a7-8ace-f3dd07f13c5a
c9487089-5f29-4d50-966e-608078fada9e
50339802-a678-45e0-9b25-f1cf540bd59b
bf7073ae-7081-406b-97e5-de3e3b90a77e
06679d69-8492-4de4-adec-5aeea622f5c7
ed4024aa-017e-4a08-acb5-4325179cb748
2996fb79-00be-4675-9e97-7c77f65eadfc

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)

b2a5569a-23aa-11f1-aec2-4cf95d479851
b2a556fe-23aa-11f1-aec2-4cf95d479851
b2a55762-23aa-11f1-aec2-4cf95d479851
b2a557c6-23aa-11f1-aec2-4cf95d479851
b2a5582a-23aa-11f1-aec2-4cf95d479851
b2a5588e-23aa-11f1-aec2-4cf95d479851
b2a558f2-23aa-11f1-aec2-4cf95d479851
b2a55956-23aa-11f1-aec2-4cf95d479851
b2a559c4-23aa-11f1-aec2-4cf95d479851
b2a55a28-23aa-11f1-aec2-4cf95d479851
b2a55a8c-23aa-11f1-aec2-4cf95d479851
b2a55afa-23aa-11f1-aec2-4cf95d479851
b2a55b7c-23aa-11f1-aec2-4cf95d479851
b2a55bf4-23aa-11f1-aec2-4cf95d479851
b2a55c62-23aa-11f1-aec2-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)

cdac612f-b203-8e04-87ea-5ce32bd83b97
399b622f-b203-8e04-87ea-5ce32bd83b97
7b41632f-b203-8e04-87ea-5ce32bd83b97
eba8642f-b203-8e04-87ea-5ce32bd83b97
682a652f-b203-8e04-87ea-5ce32bd83b97
acc3662f-b203-8e04-87ea-5ce32bd83b97
e52b672f-b203-8e04-87ea-5ce32bd83b97
91d0682f-b203-8e04-87ea-5ce32bd83b97
8107692f-b203-8e04-87ea-5ce32bd83b97
2ccd6a2f-b203-8e04-87ea-5ce32bd83b97
3a866b2f-b203-8e04-87ea-5ce32bd83b97
2fc06c2f-b203-8e04-87ea-5ce32bd83b97
b6706d2f-b203-8e04-87ea-5ce32bd83b97
93346e2f-b203-8e04-87ea-5ce32bd83b97
b5ae6f2f-b203-8e04-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: