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)

019bd413-c897-752c-b9de-64891f220782
019bd413-c897-76e6-8522-ac9107128a80
019bd413-c897-7829-9a9a-6eaca5048157
019bd413-c897-7948-945a-ab8386fdef49
019bd413-c897-7a67-857f-dac1e8975553
019bd413-c897-7b86-9c1c-5e3a21090ffe
019bd413-c897-7ca0-bf49-16e9c9eaaa67
019bd413-c897-7dbb-bcd3-4fce4e687c72
019bd413-c897-7ed5-8ab2-2b13330b73f9
019bd413-c897-7ff0-aa9a-24718cc34671
019bd413-c898-710f-a5cc-2e3fc6441b09
019bd413-c898-7229-8286-df842e470ee3
019bd413-c898-7344-ac20-e5b2b760dc2e
019bd413-c898-745f-97e2-ac04be84bad7
019bd413-c898-7579-b63f-92b491dcf894

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)

1f0f4de5-84d0-62f6-a557-4cf95d479851
1f0f4de5-84d0-649a-a557-4cf95d479851
1f0f4de5-84d0-658a-a557-4cf95d479851
1f0f4de5-84d0-665c-a557-4cf95d479851
1f0f4de5-84d0-6724-a557-4cf95d479851
1f0f4de5-84d0-67f6-a557-4cf95d479851
1f0f4de5-84d0-68be-a557-4cf95d479851
1f0f4de5-84d0-6990-a557-4cf95d479851
1f0f4de5-84d0-6a58-a557-4cf95d479851
1f0f4de5-84d0-6b20-a557-4cf95d479851
1f0f4de5-84d0-6c6a-a557-4cf95d479851
1f0f4de5-84d0-6d46-a557-4cf95d479851
1f0f4de5-84d0-6e0e-a557-4cf95d479851
1f0f4de5-84d0-6ecc-a557-4cf95d479851
1f0f4de5-84d0-6f94-a557-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)

31a974ba-876e-4c11-a669-5e0c0c2cd1d8
e40782e5-9956-47f3-97aa-b067b9d8b899
4003f468-871d-4859-865e-18a34dd0ccf3
406f80ab-1ffd-4eca-a1ce-9eef84a3847e
84de9abb-976f-443f-8072-2ea57bef5d04
a4b26603-e8ea-4a6f-b25f-2c166cb66bab
9e8b0403-119c-486e-ba96-4e62d3528baa
946f5544-3cef-472c-912c-42fe6c2e43bc
aed16dfd-ee31-461d-a5db-0e8b021ff8bf
494f5748-05f6-48a3-ab56-8558620ccb90
40044cf4-ccf4-4168-a0cd-63b8072d28ab
c4c05668-0f02-4904-b545-668538137625
4f0fb4bd-d69d-49ac-b396-ec99ed87bd83
a9ff2738-ac3e-4521-b960-a2ce36e79a72
43e16ccf-31f1-4b54-a01f-5f54493b397b

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)

584d14bc-f4de-11f0-a557-4cf95d479851
584d1520-f4de-11f0-a557-4cf95d479851
584d1584-f4de-11f0-a557-4cf95d479851
584d15e8-f4de-11f0-a557-4cf95d479851
584d164c-f4de-11f0-a557-4cf95d479851
584d16b0-f4de-11f0-a557-4cf95d479851
584d1714-f4de-11f0-a557-4cf95d479851
584d176e-f4de-11f0-a557-4cf95d479851
584d17d2-f4de-11f0-a557-4cf95d479851
584d182c-f4de-11f0-a557-4cf95d479851
584d1886-f4de-11f0-a557-4cf95d479851
584d18e0-f4de-11f0-a557-4cf95d479851
584d1944-f4de-11f0-a557-4cf95d479851
584d199e-f4de-11f0-a557-4cf95d479851
584d1a02-f4de-11f0-a557-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)

5203fb04-9400-8301-87ea-5ce32bd83b97
81dcfc04-9400-8301-87ea-5ce32bd83b97
c41dfd04-9400-8301-87ea-5ce32bd83b97
d66afe04-9400-8301-87ea-5ce32bd83b97
6b870005-9400-8301-87ea-5ce32bd83b97
1d390105-9400-8301-87ea-5ce32bd83b97
caef0205-9400-8301-87ea-5ce32bd83b97
8ca70305-9400-8301-87ea-5ce32bd83b97
2aa20405-9400-8301-87ea-5ce32bd83b97
0d4a0505-9400-8301-87ea-5ce32bd83b97
f26e0605-9400-8301-87ea-5ce32bd83b97
c8b50705-9400-8301-87ea-5ce32bd83b97
f3030905-9400-8301-87ea-5ce32bd83b97
87300a05-9400-8301-87ea-5ce32bd83b97
f31f0b05-9400-8301-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: