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)

019cb765-1615-7792-9be3-0c6ea3ec7c41
019cb765-1615-7971-9d2b-d84591a10a11
019cb765-1615-7af6-be78-74d3f97f62b0
019cb765-1615-7c5f-96e6-4e902f3dce75
019cb765-1615-7dbb-9ac3-9060468c9b70
019cb765-1615-7f17-87af-a248789658a0
019cb765-1616-7077-af49-31f22da5d76c
019cb765-1616-71cb-b91f-b11eb5f417ca
019cb765-1616-731b-914a-c79b56930aec
019cb765-1616-7467-bec8-bb279268bd12
019cb765-1616-75b3-aa73-69ee1485b2c9
019cb765-1616-7707-8d65-d40c99360e23
019cb765-1616-7857-a718-9b0528030ce5
019cb765-1616-79a6-8dbd-7c819572b423
019cb765-1616-7afa-a5a9-566bd0cdf45d

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)

1f1178df-0301-6af0-b4c6-4cf95d479851
1f1178df-0301-6d20-b4c6-4cf95d479851
1f1178df-0301-6e9c-b4c6-4cf95d479851
1f1178df-0301-6ff0-b4c6-4cf95d479851
1f1178df-0302-6144-b4c6-4cf95d479851
1f1178df-0302-6284-b4c6-4cf95d479851
1f1178df-0302-63ce-b4c6-4cf95d479851
1f1178df-0302-650e-b4c6-4cf95d479851
1f1178df-0302-6658-b4c6-4cf95d479851
1f1178df-0302-6798-b4c6-4cf95d479851
1f1178df-0302-6996-b4c6-4cf95d479851
1f1178df-0302-6ae0-b4c6-4cf95d479851
1f1178df-0302-6c34-b4c6-4cf95d479851
1f1178df-0302-6d92-b4c6-4cf95d479851
1f1178df-0302-6edc-b4c6-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)

a69a8ee3-e284-4383-8d31-15fb9d7e550d
fe837033-0c2f-431d-bf51-153d8efd32b6
1936e438-f734-4544-8970-fed4aae561f6
6bb3f85d-f9c0-4627-b4a8-faa1d75df76b
b8e1303c-60f1-4654-b212-bf92afe7faa3
51ec4d05-0ab1-4c4b-a91a-b6fed50c46cf
c178c828-8dd5-4012-a439-58b708772a62
9e3b0ebf-9dc6-48bc-880f-f70e83e19199
85b8d470-66f9-4ac6-87f4-b34de73db663
3b092634-8550-46ea-9229-eff0530bafed
da9500a2-f063-481e-9dc2-17c3852fb92b
2db61dc4-9883-48b6-9fbf-6cd365fa601a
cc135f7b-a1fe-4263-b3e6-244961b432ac
d04d442a-06e2-49f0-88d3-0d6ad08672ad
24be5482-03e4-4ba6-aad8-3392ef849e60

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)

f03036ac-178d-11f1-b4c6-4cf95d479851
f030374c-178d-11f1-b4c6-4cf95d479851
f03037e2-178d-11f1-b4c6-4cf95d479851
f0303878-178d-11f1-b4c6-4cf95d479851
f0303904-178d-11f1-b4c6-4cf95d479851
f030399a-178d-11f1-b4c6-4cf95d479851
f0303a30-178d-11f1-b4c6-4cf95d479851
f0303ac6-178d-11f1-b4c6-4cf95d479851
f0303b66-178d-11f1-b4c6-4cf95d479851
f0303bfc-178d-11f1-b4c6-4cf95d479851
f0303c9c-178d-11f1-b4c6-4cf95d479851
f0303d3c-178d-11f1-b4c6-4cf95d479851
f0303dd2-178d-11f1-b4c6-4cf95d479851
f0303e68-178d-11f1-b4c6-4cf95d479851
f0303f08-178d-11f1-b4c6-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)

afa84529-5e01-8f03-87ea-5ce32bd83b97
41e94629-5e01-8f03-87ea-5ce32bd83b97
df4c4729-5e01-8f03-87ea-5ce32bd83b97
f8284829-5e01-8f03-87ea-5ce32bd83b97
ec834a29-5e01-8f03-87ea-5ce32bd83b97
00244b29-5e01-8f03-87ea-5ce32bd83b97
75d04c29-5e01-8f03-87ea-5ce32bd83b97
dbbf4d29-5e01-8f03-87ea-5ce32bd83b97
43a64e29-5e01-8f03-87ea-5ce32bd83b97
80784f29-5e01-8f03-87ea-5ce32bd83b97
c1315029-5e01-8f03-87ea-5ce32bd83b97
25365129-5e01-8f03-87ea-5ce32bd83b97
e16c5229-5e01-8f03-87ea-5ce32bd83b97
f06f5329-5e01-8f03-87ea-5ce32bd83b97
cc4a5429-5e01-8f03-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: