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)

019bccd5-d551-73f4-b965-e21178cdcf24
019bccd5-d551-7592-871d-96b2084f30c4
019bccd5-d551-76d5-a802-07bbd555d8ad
019bccd5-d551-77f8-9daa-d1b183a22f16
019bccd5-d551-7917-b137-6539e4265b30
019bccd5-d551-7a32-97f0-e5bf0fa23b77
019bccd5-d551-7b50-817d-4226b2ec26bc
019bccd5-d551-7c6b-80d9-473e1d1d4785
019bccd5-d551-7d86-8e30-e7b4181ebd75
019bccd5-d551-7ea0-93d5-be0a1f297b1e
019bccd5-d551-7fbf-afd8-2056723d213a
019bccd5-d552-70de-8003-b5c7f5303e25
019bccd5-d552-71f8-ae8d-4bc3115add32
019bccd5-d552-7317-b4fa-f13f3f4e632f
019bccd5-d552-7467-97d8-9d0879ae125b

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)

1f0f3c37-45e2-61d0-8ef4-4cf95d479851
1f0f3c37-45e2-6374-8ef4-4cf95d479851
1f0f3c37-45e2-6464-8ef4-4cf95d479851
1f0f3c37-45e2-6536-8ef4-4cf95d479851
1f0f3c37-45e2-6612-8ef4-4cf95d479851
1f0f3c37-45e2-66e4-8ef4-4cf95d479851
1f0f3c37-45e2-67b6-8ef4-4cf95d479851
1f0f3c37-45e2-6888-8ef4-4cf95d479851
1f0f3c37-45e2-6964-8ef4-4cf95d479851
1f0f3c37-45e2-6a36-8ef4-4cf95d479851
1f0f3c37-45e2-6b94-8ef4-4cf95d479851
1f0f3c37-45e2-6c7a-8ef4-4cf95d479851
1f0f3c37-45e2-6d4c-8ef4-4cf95d479851
1f0f3c37-45e2-6e1e-8ef4-4cf95d479851
1f0f3c37-45e2-6ee6-8ef4-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)

e4229a83-b708-4f2b-a3bb-10bc0d9a96d4
f8dc1814-2a63-412b-9742-5ed946bd7bfc
d80d4f39-da09-4dd8-84d0-e60e9304da2c
b448019b-a5a4-4ce1-a9d4-41b08e60c05c
768abf1a-b2a9-4b82-9b87-2b1e4997b17b
bf7fc53b-9c7c-4021-816a-ef59026614f0
6b1faf4a-59cc-4908-93da-c6e1753b3357
ac93213e-ed7f-45ef-84a5-a174a6ce8c9e
d9fcfa6b-fa9c-4504-95dd-3d9821ec37c1
8c77e5ab-0987-48ae-a3f9-ae6723003650
a5ed5a31-1f68-4b36-8ced-c025bcc805a3
99dfe24d-430e-4a9b-b56b-9ec1b47b4818
bd9c705d-b300-49e9-9374-73e384cbed45
24b04e83-3b0a-4d1b-8849-74593685b921
db58ea7e-3b4c-47e6-ab56-602ac4ff3a95

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)

745e340e-f3c3-11f0-8ef4-4cf95d479851
745e347c-f3c3-11f0-8ef4-4cf95d479851
745e34e0-f3c3-11f0-8ef4-4cf95d479851
745e354e-f3c3-11f0-8ef4-4cf95d479851
745e35bc-f3c3-11f0-8ef4-4cf95d479851
745e362a-f3c3-11f0-8ef4-4cf95d479851
745e368e-f3c3-11f0-8ef4-4cf95d479851
745e36f2-f3c3-11f0-8ef4-4cf95d479851
745e374c-f3c3-11f0-8ef4-4cf95d479851
745e37b0-f3c3-11f0-8ef4-4cf95d479851
745e3814-f3c3-11f0-8ef4-4cf95d479851
745e386e-f3c3-11f0-8ef4-4cf95d479851
745e38d2-f3c3-11f0-8ef4-4cf95d479851
745e3936-f3c3-11f0-8ef4-4cf95d479851
745e3990-f3c3-11f0-8ef4-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)

3c3e7f04-eb03-8101-87ea-5ce32bd83b97
3db98004-eb03-8101-87ea-5ce32bd83b97
9f418104-eb03-8101-87ea-5ce32bd83b97
97ac8204-eb03-8101-87ea-5ce32bd83b97
e91e8304-eb03-8101-87ea-5ce32bd83b97
73c48404-eb03-8101-87ea-5ce32bd83b97
f04e8504-eb03-8101-87ea-5ce32bd83b97
b4ce8704-eb03-8101-87ea-5ce32bd83b97
3b258804-eb03-8101-87ea-5ce32bd83b97
863f8904-eb03-8101-87ea-5ce32bd83b97
07ba8a04-eb03-8101-87ea-5ce32bd83b97
4a288b04-eb03-8101-87ea-5ce32bd83b97
de748c04-eb03-8101-87ea-5ce32bd83b97
7f6b8d04-eb03-8101-87ea-5ce32bd83b97
62268e04-eb03-8101-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: