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)

019f3572-f655-731b-bb23-97249a8d87ee
019f3572-f655-74b9-be85-5ec329bfa6c9
019f3572-f655-75f0-ad6c-632296737c24
019f3572-f655-770b-9e59-e58c6f385865
019f3572-f655-7829-ad84-60d983f02dbe
019f3572-f655-793c-974d-1313a93396d4
019f3572-f655-7a4e-b875-ac3ec57f1ba2
019f3572-f655-7b61-8c9c-a003d4f8e30b
019f3572-f655-7c6f-965b-0b44d46f71fe
019f3572-f655-7d82-aba1-4fefe71bd3f4
019f3572-f655-7e90-9d19-20fad734de3b
019f3572-f655-7fa2-b531-d056f1fe5c3c
019f3572-f656-70b1-9a0e-a9e191acb41f
019f3572-f656-71c7-bd87-16fc79e953a4
019f3572-f656-72da-9a69-6e18f98409a8

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)

1f178e9e-e37c-6bd6-b806-4cf95d479851
1f178e9e-e37c-6d84-b806-4cf95d479851
1f178e9e-e37c-6e74-b806-4cf95d479851
1f178e9e-e37c-6f3c-b806-4cf95d479851
1f178e9e-e37d-6004-b806-4cf95d479851
1f178e9e-e37d-60cc-b806-4cf95d479851
1f178e9e-e37d-618a-b806-4cf95d479851
1f178e9e-e37d-634c-b806-4cf95d479851
1f178e9e-e37d-6446-b806-4cf95d479851
1f178e9e-e37d-6518-b806-4cf95d479851
1f178e9e-e37d-666c-b806-4cf95d479851
1f178e9e-e37d-673e-b806-4cf95d479851
1f178e9e-e37d-67fc-b806-4cf95d479851
1f178e9e-e37d-68c4-b806-4cf95d479851
1f178e9e-e37d-6982-b806-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)

ee37da54-78e9-11f1-b806-4cf95d479851
ee37dac2-78e9-11f1-b806-4cf95d479851
ee37db30-78e9-11f1-b806-4cf95d479851
ee37db94-78e9-11f1-b806-4cf95d479851
ee37dbf8-78e9-11f1-b806-4cf95d479851
ee37dc5c-78e9-11f1-b806-4cf95d479851
ee37dcc0-78e9-11f1-b806-4cf95d479851
ee37dd24-78e9-11f1-b806-4cf95d479851
ee37dd88-78e9-11f1-b806-4cf95d479851
ee37ddec-78e9-11f1-b806-4cf95d479851
ee37de50-78e9-11f1-b806-4cf95d479851
ee37deb4-78e9-11f1-b806-4cf95d479851
ee37df0e-78e9-11f1-b806-4cf95d479851
ee37df72-78e9-11f1-b806-4cf95d479851
ee37dfd6-78e9-11f1-b806-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)

a29b7422-cb00-8b0b-87ea-5ce32bd83b97
f13f7522-cb00-8b0b-87ea-5ce32bd83b97
ed927622-cb00-8b0b-87ea-5ce32bd83b97
cbfc7722-cb00-8b0b-87ea-5ce32bd83b97
972b7822-cb00-8b0b-87ea-5ce32bd83b97
dfa77922-cb00-8b0b-87ea-5ce32bd83b97
14b97a22-cb00-8b0b-87ea-5ce32bd83b97
5bf67b22-cb00-8b0b-87ea-5ce32bd83b97
9b287c22-cb00-8b0b-87ea-5ce32bd83b97
edb07d22-cb00-8b0b-87ea-5ce32bd83b97
230a7e22-cb00-8b0b-87ea-5ce32bd83b97
2db67f22-cb00-8b0b-87ea-5ce32bd83b97
bc9a8022-cb00-8b0b-87ea-5ce32bd83b97
03508122-cb00-8b0b-87ea-5ce32bd83b97
51208222-cb00-8b0b-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)

fedac316-d53c-465a-a1b2-54ea3ca5f5b1
9880cb76-cd7a-4c79-8d3d-e38cd487b195
466d9143-0bd3-4116-accf-f604de819252
4118e12a-be95-4b94-a67c-11b872bc466e
c9c02a75-f916-4315-86f1-2c52c8d1abe3
f59f807c-4d5f-4c62-acbd-fb30850d5814
33be8f8e-8c51-4593-a69b-a82e9851653a
c3e711ac-23ca-457d-9ae8-7a4d5d902340
1fc7991d-8b0a-4edc-8e0b-8407b7d5b790
d9373a5f-7780-4f01-9c22-6619550a1da2
3b4a6992-bddf-4f07-9948-bb7a5886b1e0
91bd5aeb-2b9b-41b0-8ac4-cdcbda31cc59
af61bb94-3453-4190-aeba-71f4e1d8a6bb
956f230b-980d-4cc3-9f42-a5116ba4c2b2
6beebdf0-81ce-4810-a763-ea0f42566ef4

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: