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)

019f86cf-48d8-757d-9f98-0e7fc8a7bb2a
019f86cf-48d8-7740-aed9-bba3df2e0c18
019f86cf-48d8-787f-a424-6d4ff32d1ef8
019f86cf-48d8-799e-9add-347eba150ad9
019f86cf-48d8-7ab5-8866-c87f41512442
019f86cf-48d8-7bc7-9e9e-9e64951296ab
019f86cf-48d8-7cda-98c7-a2c67623990c
019f86cf-48d8-7df0-b53a-c450ac12a688
019f86cf-48d8-7f03-93bd-9a72788c9d29
019f86cf-48d9-7019-b270-e758526fc13f
019f86cf-48d9-712c-8d84-3597d0888aeb
019f86cf-48d9-7242-ae8c-32dec44ab8e4
019f86cf-48d9-7365-85e0-edf81ea162f1
019f86cf-48d9-7477-b8e8-211953a67718
019f86cf-48d9-758a-a2da-ea5e514c0e82

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)

1f185541-48ef-6022-a135-4cf95d479851
1f185541-48ef-61f8-a135-4cf95d479851
1f185541-48ef-62de-a135-4cf95d479851
1f185541-48ef-63b0-a135-4cf95d479851
1f185541-48ef-646e-a135-4cf95d479851
1f185541-48ef-652c-a135-4cf95d479851
1f185541-48ef-65f4-a135-4cf95d479851
1f185541-48ef-66b2-a135-4cf95d479851
1f185541-48ef-6770-a135-4cf95d479851
1f185541-48ef-682e-a135-4cf95d479851
1f185541-48ef-6996-a135-4cf95d479851
1f185541-48ef-6a68-a135-4cf95d479851
1f185541-48ef-6b26-a135-4cf95d479851
1f185541-48ef-6be4-a135-4cf95d479851
1f185541-48ef-6ca2-a135-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)

148efd6a-8554-11f1-a135-4cf95d479851
148efdce-8554-11f1-a135-4cf95d479851
148efe32-8554-11f1-a135-4cf95d479851
148efea0-8554-11f1-a135-4cf95d479851
148eff04-8554-11f1-a135-4cf95d479851
148eff68-8554-11f1-a135-4cf95d479851
148effcc-8554-11f1-a135-4cf95d479851
148f0030-8554-11f1-a135-4cf95d479851
148f0094-8554-11f1-a135-4cf95d479851
148f0102-8554-11f1-a135-4cf95d479851
148f0166-8554-11f1-a135-4cf95d479851
148f01ca-8554-11f1-a135-4cf95d479851
148f022e-8554-11f1-a135-4cf95d479851
148f029c-8554-11f1-a135-4cf95d479851
148f0300-8554-11f1-a135-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)

f8466327-4905-8a0c-87ea-5ce32bd83b97
3f386427-4905-8a0c-87ea-5ce32bd83b97
35556527-4905-8a0c-87ea-5ce32bd83b97
47876627-4905-8a0c-87ea-5ce32bd83b97
12456727-4905-8a0c-87ea-5ce32bd83b97
0ce96827-4905-8a0c-87ea-5ce32bd83b97
fe656927-4905-8a0c-87ea-5ce32bd83b97
efde6a27-4905-8a0c-87ea-5ce32bd83b97
9f576b27-4905-8a0c-87ea-5ce32bd83b97
cbdf6c27-4905-8a0c-87ea-5ce32bd83b97
f9af6d27-4905-8a0c-87ea-5ce32bd83b97
dd936e27-4905-8a0c-87ea-5ce32bd83b97
cde16f27-4905-8a0c-87ea-5ce32bd83b97
b3c67027-4905-8a0c-87ea-5ce32bd83b97
c65f7127-4905-8a0c-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)

3b18710f-ad35-48d5-a86f-ed448d1fdd5d
94c1df77-6783-4bd2-a706-accf7c230ba8
6c81891c-3f97-40a3-918a-6d03f44af8d7
ca852017-a609-4dab-bf03-f05abe79cbcd
ee149511-60bb-4d95-a80a-da703109d435
42764170-fa57-4db9-be90-f834d1672a76
a49cd5d9-cc9f-4469-820b-4a84fe6164f6
d0f20a56-06e3-4be7-80e3-30edd9c3a0fe
2ed3a2c1-c800-4fc6-9a51-29c7831ec0de
fade04cb-7367-4ecd-a53e-77c90fa2ce14
9f5e04f7-e7f3-47b5-8db9-b91c02889720
c14de36d-48a5-4ee4-8a1a-293097a90750
a67d8ccc-63bb-4884-8dfc-1664b1786cd4
cd342674-abc3-4728-9e11-ca40bc46e0d1
3a8c0fc3-7da4-4e43-ab72-2820efe4b198

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: