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)

019ef0e8-1d10-7b0b-8f7c-04da6065b6aa
019ef0e8-1d10-7cb9-8f6b-1e65cd6d24bd
019ef0e8-1d10-7e09-8154-d45d90fbe0dc
019ef0e8-1d10-7f23-8995-fa77efee53e8
019ef0e8-1d11-7057-99e2-cbbbf9127fe5
019ef0e8-1d11-71af-939c-7fef78f2a11e
019ef0e8-1d11-72f2-b294-49a1592cbf6e
019ef0e8-1d11-7415-a2bd-777aebe66fed
019ef0e8-1d11-754c-ae44-7c0734972920
019ef0e8-1d11-766b-9948-b87547305208
019ef0e8-1d11-7782-9748-22e3d18e2a2c
019ef0e8-1d11-78a8-ad94-6f3d892e9dec
019ef0e8-1d11-79f0-b9f3-6c20ade9601e
019ef0e8-1d11-7b27-b075-20720d7bd261
019ef0e8-1d11-7c42-baf7-fea7a095a6f9

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)

1f16e747-e70c-6ca0-953a-4cf95d479851
1f16e747-e70c-6eb2-953a-4cf95d479851
1f16e747-e70c-6fa2-953a-4cf95d479851
1f16e747-e70d-607e-953a-4cf95d479851
1f16e747-e70d-6146-953a-4cf95d479851
1f16e747-e70d-620e-953a-4cf95d479851
1f16e747-e70d-62d6-953a-4cf95d479851
1f16e747-e70d-6394-953a-4cf95d479851
1f16e747-e70d-6452-953a-4cf95d479851
1f16e747-e70d-6510-953a-4cf95d479851
1f16e747-e70d-6664-953a-4cf95d479851
1f16e747-e70d-672c-953a-4cf95d479851
1f16e747-e70d-67ea-953a-4cf95d479851
1f16e747-e70d-68da-953a-4cf95d479851
1f16e747-e70d-6a42-953a-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)

7e70dbd2-6e74-11f1-953a-4cf95d479851
7e70dc40-6e74-11f1-953a-4cf95d479851
7e70dca4-6e74-11f1-953a-4cf95d479851
7e70dd08-6e74-11f1-953a-4cf95d479851
7e70dd6c-6e74-11f1-953a-4cf95d479851
7e70ddda-6e74-11f1-953a-4cf95d479851
7e70de3e-6e74-11f1-953a-4cf95d479851
7e70dea2-6e74-11f1-953a-4cf95d479851
7e70df10-6e74-11f1-953a-4cf95d479851
7e70df88-6e74-11f1-953a-4cf95d479851
7e70e01e-6e74-11f1-953a-4cf95d479851
7e70e0b4-6e74-11f1-953a-4cf95d479851
7e70e154-6e74-11f1-953a-4cf95d479851
7e70e26c-6e74-11f1-953a-4cf95d479851
7e70e30c-6e74-11f1-953a-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)

17df2d2c-ad04-8d0a-87ea-5ce32bd83b97
61e42e2c-ad04-8d0a-87ea-5ce32bd83b97
8c1f2f2c-ad04-8d0a-87ea-5ce32bd83b97
e598302c-ad04-8d0a-87ea-5ce32bd83b97
8860322c-ad04-8d0a-87ea-5ce32bd83b97
3579332c-ad04-8d0a-87ea-5ce32bd83b97
d117342c-ad04-8d0a-87ea-5ce32bd83b97
9384352c-ad04-8d0a-87ea-5ce32bd83b97
1d9d362c-ad04-8d0a-87ea-5ce32bd83b97
2fff372c-ad04-8d0a-87ea-5ce32bd83b97
d5c4382c-ad04-8d0a-87ea-5ce32bd83b97
785b392c-ad04-8d0a-87ea-5ce32bd83b97
51583a2c-ad04-8d0a-87ea-5ce32bd83b97
895c3b2c-ad04-8d0a-87ea-5ce32bd83b97
68973c2c-ad04-8d0a-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)

c1b8361e-d513-42e0-a377-0e72f199383c
bf6851d9-7573-49db-9cc7-b2bbaa198bc2
4b968e7f-b11b-4869-a741-ad013ea7fce0
e0ea8d14-b31d-469f-832d-5a4f9c18151a
7a7e921a-37ab-43a2-97df-1111fe436906
adb710de-7381-4f4b-b1c7-7c4feb05abb4
4a98b148-27e2-40e7-b16b-fd3d1247a094
c3647cd0-1fbc-43b0-b23d-f405a3b2e25a
9059916f-ad71-497a-be53-34341e82167f
80b8ba2b-b3e1-41a6-a848-9d956670f701
dbda6438-7889-4e14-9f81-2ac5afde36a0
5e13646f-347e-43e8-b08a-b73acd10ac22
79e9fbbd-9262-41f7-a836-95f626ee5075
67a0b23a-8a14-4b1c-b924-d575d5a02cc0
afe1b681-ca0d-4276-98bd-e848d7f41712

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: