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)

019f0a27-c7a0-7211-a2a9-4decc6521b4e
019f0a27-c7a0-73aa-ae10-dfd2a8721abc
019f0a27-c7a0-74e2-9159-058ce10b584a
019f0a27-c7a0-760d-93d6-dc986afaf5a2
019f0a27-c7a0-7723-aa77-60eb6e3e3095
019f0a27-c7a0-7842-bb6e-19a28cc831be
019f0a27-c7a0-7954-b7f8-29c27eb478e2
019f0a27-c7a0-7a67-9fb8-254f17e843b7
019f0a27-c7a0-7b79-9c32-399af7c1bd23
019f0a27-c7a0-7c8c-9cf9-bb5f1ba69a3d
019f0a27-c7a0-7d9e-b085-0d35dc79f12d
019f0a27-c7a0-7eb1-a08a-982bccdceeb1
019f0a27-c7a0-7fc7-9b07-69f97e81ccc0
019f0a27-c7a1-70d5-bd24-8a236474d799
019f0a27-c7a1-71ec-ae1e-421bbed450f6

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)

1f1724ec-5674-699e-afc6-4cf95d479851
1f1724ec-5674-6b38-afc6-4cf95d479851
1f1724ec-5674-6c82-afc6-4cf95d479851
1f1724ec-5674-6d68-afc6-4cf95d479851
1f1724ec-5674-6e30-afc6-4cf95d479851
1f1724ec-5674-6ef8-afc6-4cf95d479851
1f1724ec-5674-6fb6-afc6-4cf95d479851
1f1724ec-5675-6074-afc6-4cf95d479851
1f1724ec-5675-613c-afc6-4cf95d479851
1f1724ec-5675-61fa-afc6-4cf95d479851
1f1724ec-5675-634e-afc6-4cf95d479851
1f1724ec-5675-6420-afc6-4cf95d479851
1f1724ec-5675-64de-afc6-4cf95d479851
1f1724ec-5675-659c-afc6-4cf95d479851
1f1724ec-5675-665a-afc6-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)

c567572c-724e-11f1-afc6-4cf95d479851
c567579a-724e-11f1-afc6-4cf95d479851
c56757f4-724e-11f1-afc6-4cf95d479851
c5675858-724e-11f1-afc6-4cf95d479851
c56758bc-724e-11f1-afc6-4cf95d479851
c567592a-724e-11f1-afc6-4cf95d479851
c5675998-724e-11f1-afc6-4cf95d479851
c5675a06-724e-11f1-afc6-4cf95d479851
c5675a6a-724e-11f1-afc6-4cf95d479851
c5675ae2-724e-11f1-afc6-4cf95d479851
c5675b50-724e-11f1-afc6-4cf95d479851
c5675bb4-724e-11f1-afc6-4cf95d479851
c5675c18-724e-11f1-afc6-4cf95d479851
c5675c86-724e-11f1-afc6-4cf95d479851
c5675cf4-724e-11f1-afc6-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)

3deb022f-2104-820b-87ea-5ce32bd83b97
2ac7032f-2104-820b-87ea-5ce32bd83b97
f45f042f-2104-820b-87ea-5ce32bd83b97
b3ee062f-2104-820b-87ea-5ce32bd83b97
e7fe072f-2104-820b-87ea-5ce32bd83b97
212a082f-2104-820b-87ea-5ce32bd83b97
3375092f-2104-820b-87ea-5ce32bd83b97
183c0a2f-2104-820b-87ea-5ce32bd83b97
9d300b2f-2104-820b-87ea-5ce32bd83b97
dad00c2f-2104-820b-87ea-5ce32bd83b97
b5af0d2f-2104-820b-87ea-5ce32bd83b97
1c750e2f-2104-820b-87ea-5ce32bd83b97
d8450f2f-2104-820b-87ea-5ce32bd83b97
4435102f-2104-820b-87ea-5ce32bd83b97
88e1112f-2104-820b-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)

a963e895-b05c-4da2-b320-d09482e71f37
e281baf7-186b-4e8b-ac92-cd6238b96583
4bfcc81e-b427-4757-916a-eea75266afd4
f86768df-1fe9-4593-9106-032ff6fe7254
d0b9b728-14a4-4659-a268-70bf73877db3
e7e8960c-0d0a-4e0c-bbd4-bd51e8890a2f
5f828eb4-4dd8-4130-ad1c-63ca2759042d
2857a069-845f-499a-bd5c-74030ec5e69d
9050c57b-6abb-4c07-beb1-25db754dfe23
6543f3de-203e-4d2a-a375-5267a58f9f2f
e440b0b2-58ca-4b4c-8a16-1ace8201a4d4
18e26293-3495-46d4-b990-52cd71bcf4b7
dbfc72cb-f38d-4cd0-89e1-f1e050a89652
e453d6c1-308b-44ab-8a74-edd1500b5c74
29083393-a02f-438e-bf25-33b41861e9d0

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: