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)

019d0f5b-f7da-79fc-8760-e1206ffaa5d7
019d0f5b-f7da-7b96-9e10-4322a316e4e0
019d0f5b-f7da-7cda-ab3c-2c4d7da50339
019d0f5b-f7da-7df8-beb0-0cd92cc6032b
019d0f5b-f7da-7f17-8bfd-dd4b9ac32315
019d0f5b-f7db-702e-becc-b7893b5ce8f5
019d0f5b-f7db-7148-a0f1-76505f9c6625
019d0f5b-f7db-7263-9ea5-9915f80ddcc8
019d0f5b-f7db-737d-8d74-42fa013f7880
019d0f5b-f7db-74ad-a07c-1c63b4d17ff0
019d0f5b-f7db-75cb-9877-40195623c5a4
019d0f5b-f7db-76e2-829b-064278682a9e
019d0f5b-f7db-77f8-abd6-43dd2d4acdf6
019d0f5b-f7db-7913-a7d4-ee9ec69c04aa
019d0f5b-f7db-7a2e-9d82-ad1f692ac555

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)

1f124fa0-c033-6752-a9dc-4cf95d479851
1f124fa0-c033-68d8-a9dc-4cf95d479851
1f124fa0-c033-69be-a9dc-4cf95d479851
1f124fa0-c033-6a86-a9dc-4cf95d479851
1f124fa0-c033-6b4e-a9dc-4cf95d479851
1f124fa0-c033-6c0c-a9dc-4cf95d479851
1f124fa0-c033-6cca-a9dc-4cf95d479851
1f124fa0-c033-6d88-a9dc-4cf95d479851
1f124fa0-c033-6e46-a9dc-4cf95d479851
1f124fa0-c033-6f04-a9dc-4cf95d479851
1f124fa0-c034-6044-a9dc-4cf95d479851
1f124fa0-c034-610c-a9dc-4cf95d479851
1f124fa0-c034-61d4-a9dc-4cf95d479851
1f124fa0-c034-6292-a9dc-4cf95d479851
1f124fa0-c034-6350-a9dc-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)

0d9ca635-0eeb-40e4-ab7b-22677ace4e02
18143eb5-d9c6-47fa-b2ff-99c6e6110c19
1a1959db-8713-4122-94ce-f4d48899698c
6d5bbbc2-159c-4d6c-b228-6411730dade2
5edfd037-b140-4fad-96ab-d340ab0a9cc5
deb30f7c-d533-4eef-b10a-ea808bec2002
c3f8c6ae-bf8a-4a2f-bdb1-84327e76b579
0455e408-8415-4d0a-9991-a44034a89d99
c4afa14e-a265-48af-aaf6-3d76e5b4f21c
0432aff2-5a4a-40d5-8187-2e958ffe4918
6be6b342-92ee-471e-a65c-9b2fbbabd001
eb338915-b35e-40dc-bfeb-2808389fcff3
05fb172d-0d75-4893-ac3c-560d59c5071b
ccb2a92a-40aa-40c0-ab43-8cf3b6b7cdf9
f024093e-2dcc-4aa8-9f0f-0a8c43a76006

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)

0c03486e-24fa-11f1-a9dc-4cf95d479851
0c0348d2-24fa-11f1-a9dc-4cf95d479851
0c034936-24fa-11f1-a9dc-4cf95d479851
0c03499a-24fa-11f1-a9dc-4cf95d479851
0c0349f4-24fa-11f1-a9dc-4cf95d479851
0c034a62-24fa-11f1-a9dc-4cf95d479851
0c034ac6-24fa-11f1-a9dc-4cf95d479851
0c034b2a-24fa-11f1-a9dc-4cf95d479851
0c034ba2-24fa-11f1-a9dc-4cf95d479851
0c034c10-24fa-11f1-a9dc-4cf95d479851
0c034c74-24fa-11f1-a9dc-4cf95d479851
0c034cce-24fa-11f1-a9dc-4cf95d479851
0c034d3c-24fa-11f1-a9dc-4cf95d479851
0c034daa-24fa-11f1-a9dc-4cf95d479851
0c034e0e-24fa-11f1-a9dc-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)

125db712-d301-8005-87ea-5ce32bd83b97
8c26b812-d301-8005-87ea-5ce32bd83b97
a7aeb912-d301-8005-87ea-5ce32bd83b97
dc48ba12-d301-8005-87ea-5ce32bd83b97
64d4bb12-d301-8005-87ea-5ce32bd83b97
576ebc12-d301-8005-87ea-5ce32bd83b97
9497bd12-d301-8005-87ea-5ce32bd83b97
8669be12-d301-8005-87ea-5ce32bd83b97
17fcbf12-d301-8005-87ea-5ce32bd83b97
e288c012-d301-8005-87ea-5ce32bd83b97
a342c112-d301-8005-87ea-5ce32bd83b97
7531c212-d301-8005-87ea-5ce32bd83b97
8d8cc312-d301-8005-87ea-5ce32bd83b97
8bdbc412-d301-8005-87ea-5ce32bd83b97
8831c512-d301-8005-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: