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)

01a04a57-c07a-74c9-a1ac-19cd07a2345c
01a04a57-c07a-76a0-9025-66c96e19afa0
01a04a57-c07a-7815-a794-b6fc568d4b40
01a04a57-c07a-7965-975b-907db4b1ca63
01a04a57-c07a-7aad-a87e-7034136f4034
01a04a57-c07a-7bf4-801f-be62c873ab89
01a04a57-c07a-7d38-a73f-351c3875df99
01a04a57-c07a-7e84-ba5b-c6441e6efef1
01a04a57-c07a-7fc7-981d-1d83f0fcbf6d
01a04a57-c07b-710b-aea6-714ce89193ae
01a04a57-c07b-7257-b048-2607d1286653
01a04a57-c07b-7392-88d6-4207824b9c2a
01a04a57-c07b-74da-b9b1-ee533fa71a6e
01a04a57-c07b-761d-80d8-6eeadd9098ec
01a04a57-c07b-7759-944d-7d243b09d53b

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)

1f1a32a1-7501-6ba8-a401-4cf95d479851
1f1a32a1-7501-6e32-a401-4cf95d479851
1f1a32a1-7501-6fae-a401-4cf95d479851
1f1a32a1-7502-610c-a401-4cf95d479851
1f1a32a1-7502-6260-a401-4cf95d479851
1f1a32a1-7502-63be-a401-4cf95d479851
1f1a32a1-7502-6508-a401-4cf95d479851
1f1a32a1-7502-6666-a401-4cf95d479851
1f1a32a1-7502-67c4-a401-4cf95d479851
1f1a32a1-7502-6918-a401-4cf95d479851
1f1a32a1-7502-6b34-a401-4cf95d479851
1f1a32a1-7502-6c9c-a401-4cf95d479851
1f1a32a1-7502-6df0-a401-4cf95d479851
1f1a32a1-7502-6f3a-a401-4cf95d479851
1f1a32a1-7503-6084-a401-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)

175031f6-a32a-11f1-a401-4cf95d479851
1750328c-a32a-11f1-a401-4cf95d479851
17503322-a32a-11f1-a401-4cf95d479851
175033b8-a32a-11f1-a401-4cf95d479851
1750344e-a32a-11f1-a401-4cf95d479851
175034e4-a32a-11f1-a401-4cf95d479851
17503570-a32a-11f1-a401-4cf95d479851
175035fc-a32a-11f1-a401-4cf95d479851
17503688-a32a-11f1-a401-4cf95d479851
1750371e-a32a-11f1-a401-4cf95d479851
175037be-a32a-11f1-a401-4cf95d479851
1750384a-a32a-11f1-a401-4cf95d479851
175038d6-a32a-11f1-a401-4cf95d479851
1750396c-a32a-11f1-a401-4cf95d479851
17503a02-a32a-11f1-a401-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)

cf210728-1c05-800f-87ea-5ce32bd83b97
60130828-1c05-800f-87ea-5ce32bd83b97
bc930928-1c05-800f-87ea-5ce32bd83b97
29490a28-1c05-800f-87ea-5ce32bd83b97
1e150b28-1c05-800f-87ea-5ce32bd83b97
80fe0c28-1c05-800f-87ea-5ce32bd83b97
cfc00d28-1c05-800f-87ea-5ce32bd83b97
c9bc0f28-1c05-800f-87ea-5ce32bd83b97
7dde1028-1c05-800f-87ea-5ce32bd83b97
fa761128-1c05-800f-87ea-5ce32bd83b97
c4281228-1c05-800f-87ea-5ce32bd83b97
6e381328-1c05-800f-87ea-5ce32bd83b97
caf61428-1c05-800f-87ea-5ce32bd83b97
5f391528-1c05-800f-87ea-5ce32bd83b97
87ae1628-1c05-800f-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)

79ff0c79-7ddd-49c1-8e89-0e73168065e6
c8ad7675-f93e-4abe-903a-2bee4e40647f
0a1a2019-a0dc-48a6-afcf-c91525ee4bbe
10792c82-f582-46b1-8649-b5f286725f2c
f7b3da03-a996-4a0f-94cf-2c685ecd736e
c641f119-9008-435d-a0c1-eebd4201325d
3acf73c8-3785-4bf5-8e5f-f46a837ff90b
9e1c67aa-f0dc-4389-baf8-2acde926c4fb
3f00ed03-8d91-4ac9-806e-ec17f7badc28
a848f9b7-3830-4938-a369-af21d4fc6688
ce37b968-3791-45ff-9be6-eac8879e8f61
85abb1b1-a328-4678-b9e6-9d9eba76bcf3
8778875a-2aa5-424a-8f21-b65c1310a234
b219ef5e-97b1-45bc-9c22-80631c97e923
fb437419-8d1c-4654-a857-6b5fe6687fca

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: