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)

01a15973-cc98-79a6-a5c1-af2f83c995e4
01a15973-cc98-7b8a-aa56-1715acceef84
01a15973-cc98-7d13-ae3f-efa2801312fd
01a15973-cc98-7e67-ad09-c9069c5a85d0
01a15973-cc98-7fb3-922a-d1340d707521
01a15973-cc99-70fe-be2e-75008b11edb0
01a15973-cc99-7246-9222-f91148db3493
01a15973-cc99-7396-8e8b-dddb64a0d1bf
01a15973-cc99-7523-ae11-782268bc97fc
01a15973-cc99-767b-9c37-884f0893a7e3
01a15973-cc99-77c7-8a69-f40e9419198d
01a15973-cc99-7917-9efc-60b10a11d3ae
01a15973-cc99-7a6b-bb3a-6cd23a08ea73
01a15973-cc99-7bbb-bd69-9b3cae35aab4
01a15973-cc99-7d03-ac9a-6f2ea3c00888

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)

1f1cc884-eecb-64cc-b835-4cf95d479851
1f1cc884-eecb-69ea-b835-4cf95d479851
1f1cc884-eecb-6b98-b835-4cf95d479851
1f1cc884-eecb-6d3c-b835-4cf95d479851
1f1cc884-eecb-6eea-b835-4cf95d479851
1f1cc884-eecc-607a-b835-4cf95d479851
1f1cc884-eecc-621e-b835-4cf95d479851
1f1cc884-eecc-6390-b835-4cf95d479851
1f1cc884-eecc-6502-b835-4cf95d479851
1f1cc884-eecc-66a6-b835-4cf95d479851
1f1cc884-eecc-6926-b835-4cf95d479851
1f1cc884-eecc-6ade-b835-4cf95d479851
1f1cc884-eecc-6c28-b835-4cf95d479851
1f1cc884-eecc-6d4a-b835-4cf95d479851
1f1cc884-eecc-6eda-b835-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)

4eecd0b0-cc88-11f1-b835-4cf95d479851
4eecd15a-cc88-11f1-b835-4cf95d479851
4eecd204-cc88-11f1-b835-4cf95d479851
4eecd29a-cc88-11f1-b835-4cf95d479851
4eecd330-cc88-11f1-b835-4cf95d479851
4eecd3d0-cc88-11f1-b835-4cf95d479851
4eecd484-cc88-11f1-b835-4cf95d479851
4eecd506-cc88-11f1-b835-4cf95d479851
4eecd574-cc88-11f1-b835-4cf95d479851
4eecd60a-cc88-11f1-b835-4cf95d479851
4eecd6a0-cc88-11f1-b835-4cf95d479851
4eecd736-cc88-11f1-b835-4cf95d479851
4eecd7e0-cc88-11f1-b835-4cf95d479851
4eecd880-cc88-11f1-b835-4cf95d479851
4eecd916-cc88-11f1-b835-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)

b887b217-1c03-8512-87ea-5ce32bd83b97
d9b5b317-1c03-8512-87ea-5ce32bd83b97
1e60b417-1c03-8512-87ea-5ce32bd83b97
e78eb517-1c03-8512-87ea-5ce32bd83b97
cb29b617-1c03-8512-87ea-5ce32bd83b97
573cb717-1c03-8512-87ea-5ce32bd83b97
554db817-1c03-8512-87ea-5ce32bd83b97
e10bb917-1c03-8512-87ea-5ce32bd83b97
287fba17-1c03-8512-87ea-5ce32bd83b97
5eebbb17-1c03-8512-87ea-5ce32bd83b97
236fbc17-1c03-8512-87ea-5ce32bd83b97
f042bd17-1c03-8512-87ea-5ce32bd83b97
b66dbe17-1c03-8512-87ea-5ce32bd83b97
c183bf17-1c03-8512-87ea-5ce32bd83b97
aeb1c017-1c03-8512-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)

63a5a119-ea3c-4cf6-be1e-1ed350cf72b4
53bf2e5f-a766-4820-8bbf-f0bd21c45eaa
5cf3993a-397f-4f22-a8c7-5204605b4591
e2d9d53a-d502-4f2a-8ba3-314679e13793
aa77d3e9-d2a0-49c9-97a0-f555f19bc445
c24f8993-e836-44f5-bed6-223fb5539912
326b00ab-a72f-4e97-95e9-dcfc04b56ee0
7cc8f0a4-7b82-421e-a2d6-64ecbcda24ec
c258d084-e12b-41fe-8ccd-c479a3985ef0
1c7908ee-621a-4aa2-903a-dd3150504694
7a1e6872-5898-42c3-a8ce-696e9ff49c57
fc8fb8b7-a468-465d-a2e5-63fd847a13cb
0b7a8a74-6d5e-4c1b-acbf-a4f7a74db803
c1ad315c-6794-4153-ab16-416541448c19
f819e50f-feee-4efb-a606-ec00632db3ce

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: