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)

01a0cac5-f0e2-70c1-859b-e1088aa304f2
01a0cac5-f0e2-7252-9dec-62dac82a7ce0
01a0cac5-f0e2-738e-8fc6-bd7b08fa5ae6
01a0cac5-f0e2-74ad-ac7c-27f7ff6cfda3
01a0cac5-f0e2-75bf-8b98-97007eff3f7a
01a0cac5-f0e2-76d5-a91d-6ab3ad738a51
01a0cac5-f0e2-77e8-857a-c28ec6fa3371
01a0cac5-f0e2-78fa-b647-4195ca9d8a60
01a0cac5-f0e2-7a0d-83a7-1a0e80c0fa4e
01a0cac5-f0e2-7b1f-ab90-61af6e242871
01a0cac5-f0e2-7c3e-b8d7-53428174993b
01a0cac5-f0e2-7d54-8630-e657fd64a56a
01a0cac5-f0e2-7e67-9141-fe6971f238d0
01a0cac5-f0e2-7f7d-9a74-7128f816af12
01a0cac5-f0e3-7090-a1e6-26c1b4bd21e7

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)

1f1b6c2e-792e-6880-9602-4cf95d479851
1f1b6c2e-792e-6a6a-9602-4cf95d479851
1f1b6c2e-792e-6b5a-9602-4cf95d479851
1f1b6c2e-792e-6c2c-9602-4cf95d479851
1f1b6c2e-792e-6cf4-9602-4cf95d479851
1f1b6c2e-792e-6db2-9602-4cf95d479851
1f1b6c2e-792e-6e84-9602-4cf95d479851
1f1b6c2e-792e-6f4c-9602-4cf95d479851
1f1b6c2e-792f-6014-9602-4cf95d479851
1f1b6c2e-792f-60dc-9602-4cf95d479851
1f1b6c2e-792f-6230-9602-4cf95d479851
1f1b6c2e-792f-6316-9602-4cf95d479851
1f1b6c2e-792f-63de-9602-4cf95d479851
1f1b6c2e-792f-649c-9602-4cf95d479851
1f1b6c2e-792f-6564-9602-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)

e792f640-b6c2-11f1-9602-4cf95d479851
e792f6ae-b6c2-11f1-9602-4cf95d479851
e792f71c-b6c2-11f1-9602-4cf95d479851
e792f780-b6c2-11f1-9602-4cf95d479851
e792f7e4-b6c2-11f1-9602-4cf95d479851
e792f852-b6c2-11f1-9602-4cf95d479851
e792f8c0-b6c2-11f1-9602-4cf95d479851
e792f924-b6c2-11f1-9602-4cf95d479851
e792f97e-b6c2-11f1-9602-4cf95d479851
e792f9e2-b6c2-11f1-9602-4cf95d479851
e792fa46-b6c2-11f1-9602-4cf95d479851
e792faaa-b6c2-11f1-9602-4cf95d479851
e792fb04-b6c2-11f1-9602-4cf95d479851
e792fb5e-b6c2-11f1-9602-4cf95d479851
e792fbb8-b6c2-11f1-9602-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)

b7e20719-c404-8910-87ea-5ce32bd83b97
89a30819-c404-8910-87ea-5ce32bd83b97
2a3a0919-c404-8910-87ea-5ce32bd83b97
b8980a19-c404-8910-87ea-5ce32bd83b97
fad60b19-c404-8910-87ea-5ce32bd83b97
187a0c19-c404-8910-87ea-5ce32bd83b97
f3970d19-c404-8910-87ea-5ce32bd83b97
ca400e19-c404-8910-87ea-5ce32bd83b97
b5510f19-c404-8910-87ea-5ce32bd83b97
45601019-c404-8910-87ea-5ce32bd83b97
96491119-c404-8910-87ea-5ce32bd83b97
4a361219-c404-8910-87ea-5ce32bd83b97
6a491319-c404-8910-87ea-5ce32bd83b97
1bf21419-c404-8910-87ea-5ce32bd83b97
d9b51519-c404-8910-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)

0ee7cff7-e99f-4342-80fb-2986e05f831b
042cafc9-f3fc-494a-918c-356b906a1cd5
e3b305da-6867-4c7d-8651-a955b267c67a
8f682599-e783-42c0-9153-0283b3e94956
34620701-d843-4fa1-96f4-d0f7b0a16cc3
e26cb749-1749-4f78-b174-2bb12ad69cd1
2858ff97-7adc-4541-97c0-2e85617352e7
c463b976-fa2d-43c8-ad44-6e53dd842b1f
a4f89df1-7dd0-4608-bded-92832fc7cc1e
907dedd8-df32-4e85-b7d4-63ff208a700e
f0380ff3-3d22-43a4-a383-6b4ad7304cd9
b24f5c42-b33f-4f56-8d18-c2865a11280c
f3d21f37-e0ac-43ec-8a12-5403553ab3ba
b6752984-4108-48ed-b833-05afc7399a98
f34b0e89-aa1a-4ba1-9c23-9d03203966a5

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: