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)

01a1c07a-987c-77fc-a27e-463cc725a056
01a1c07a-987c-7a36-af7a-b7fe7d5d66f7
01a1c07a-987c-7baa-a5b7-fac19cf09371
01a1c07a-987c-7cee-aeb6-d32022f59a24
01a1c07a-987c-7e11-8406-536a14af3d40
01a1c07a-987c-7f27-a2e6-572e5696000d
01a1c07a-987d-704a-8463-b2264f133a19
01a1c07a-987d-7169-9112-9529ef48c953
01a1c07a-987d-727f-96c7-4c3077a7ca97
01a1c07a-987d-7396-b0d5-e2852a603165
01a1c07a-987d-759e-8205-18cc6e6d80a3
01a1c07a-987d-76bd-834b-f65531997a4a
01a1c07a-987d-77d3-8518-ba570d5b36b3
01a1c07a-987d-78ea-ac74-ff683d5a5fc0
01a1c07a-987d-7a00-9e12-18f08926fc2f

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)

1f1dc40c-865e-6fc2-8f6d-4cf95d479851
1f1dc40c-865f-61ca-8f6d-4cf95d479851
1f1dc40c-865f-62ce-8f6d-4cf95d479851
1f1dc40c-865f-63aa-8f6d-4cf95d479851
1f1dc40c-865f-6486-8f6d-4cf95d479851
1f1dc40c-865f-6558-8f6d-4cf95d479851
1f1dc40c-865f-6634-8f6d-4cf95d479851
1f1dc40c-865f-671a-8f6d-4cf95d479851
1f1dc40c-865f-67f6-8f6d-4cf95d479851
1f1dc40c-865f-68d2-8f6d-4cf95d479851
1f1dc40c-865f-6a6c-8f6d-4cf95d479851
1f1dc40c-865f-6b98-8f6d-4cf95d479851
1f1dc40c-865f-6c7e-8f6d-4cf95d479851
1f1dc40c-865f-6d64-8f6d-4cf95d479851
1f1dc40c-865f-6e36-8f6d-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)

c865ff30-dc40-11f1-8f6d-4cf95d479851
c865ff9e-dc40-11f1-8f6d-4cf95d479851
c866000c-dc40-11f1-8f6d-4cf95d479851
c8660070-dc40-11f1-8f6d-4cf95d479851
c86600d4-dc40-11f1-8f6d-4cf95d479851
c8660142-dc40-11f1-8f6d-4cf95d479851
c86601a6-dc40-11f1-8f6d-4cf95d479851
c866020a-dc40-11f1-8f6d-4cf95d479851
c866026e-dc40-11f1-8f6d-4cf95d479851
c86602d2-dc40-11f1-8f6d-4cf95d479851
c8660336-dc40-11f1-8f6d-4cf95d479851
c866039a-dc40-11f1-8f6d-4cf95d479851
c86603fe-dc40-11f1-8f6d-4cf95d479851
c8660462-dc40-11f1-8f6d-4cf95d479851
c86604d0-dc40-11f1-8f6d-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)

adc2552a-2403-8913-87ea-5ce32bd83b97
dccc562a-2403-8913-87ea-5ce32bd83b97
9908572a-2403-8913-87ea-5ce32bd83b97
f8b9582a-2403-8913-87ea-5ce32bd83b97
4f3c592a-2403-8913-87ea-5ce32bd83b97
c4905a2a-2403-8913-87ea-5ce32bd83b97
abd05b2a-2403-8913-87ea-5ce32bd83b97
72985c2a-2403-8913-87ea-5ce32bd83b97
86d55e2a-2403-8913-87ea-5ce32bd83b97
582f5f2a-2403-8913-87ea-5ce32bd83b97
c108602a-2403-8913-87ea-5ce32bd83b97
e81e612a-2403-8913-87ea-5ce32bd83b97
5aa8622a-2403-8913-87ea-5ce32bd83b97
9ad6632a-2403-8913-87ea-5ce32bd83b97
f1b0642a-2403-8913-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)

56a93935-caf2-4cb7-8a9e-39dd0cc4437e
ceada5d0-279e-4989-84e8-8222c09bc9f5
9d45ceb3-4122-4624-a853-7fc30435d908
86be56e8-1258-4969-888d-dd07f50e3e1f
42a8b134-8dce-4a76-a838-131a25e15527
f15490dc-8f1b-41ba-9584-b0c9cc125602
6999334a-9c9b-4340-906a-e48651f40d93
a954bc46-e8f3-4288-8787-499d42556402
0ac26337-51f4-4c98-ae5a-ae44a6365f1c
d75c4b1c-7e4d-416e-ba3d-82ade8358ac5
d41c0275-dd3c-4742-b5a0-d50ff20517fd
b2d36148-3edc-426c-af85-ac30d4d330db
ce890f43-08c0-454b-9b6b-35a833b0a6f1
d3b25d13-2866-48b5-b20b-1644d342557f
4631a09f-1f70-42c5-a18d-2702030ff732

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: