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)

019df404-64e7-744a-87bc-3d21a7520ed0
019df404-64e7-763e-a933-213a86a9d774
019df404-64e7-77c7-a867-fd20ac26e21f
019df404-64e7-7917-b0b7-1d6d08157b39
019df404-64e7-7a57-993f-b853b3711bea
019df404-64e7-7b96-8930-ed752ab8edbf
019df404-64e7-7cda-a1dc-413e08e40201
019df404-64e7-7e11-948f-bd3edab69032
019df404-64e7-7f30-85e6-fe2cd8962b8d
019df404-64e8-704a-b446-87d0bfc72795
019df404-64e8-7175-b413-0fa1fd4dd1f7
019df404-64e8-7294-92fb-1a78cbd0c693
019df404-64e8-73aa-af2a-17cd68df1ae3
019df404-64e8-74c1-8b2b-63d22457beae
019df404-64e8-75d8-b68d-6a0fc00abc35

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)

1f147ddf-f26f-695e-bbff-4cf95d479851
1f147ddf-f26f-6b0c-bbff-4cf95d479851
1f147ddf-f26f-6bf2-bbff-4cf95d479851
1f147ddf-f26f-6cba-bbff-4cf95d479851
1f147ddf-f26f-6d82-bbff-4cf95d479851
1f147ddf-f26f-6e40-bbff-4cf95d479851
1f147ddf-f26f-6f08-bbff-4cf95d479851
1f147ddf-f26f-6fc6-bbff-4cf95d479851
1f147ddf-f270-608e-bbff-4cf95d479851
1f147ddf-f270-6156-bbff-4cf95d479851
1f147ddf-f270-6354-bbff-4cf95d479851
1f147ddf-f270-64da-bbff-4cf95d479851
1f147ddf-f270-662e-bbff-4cf95d479851
1f147ddf-f270-6782-bbff-4cf95d479851
1f147ddf-f270-68d6-bbff-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)

5a693bd4-98ac-47b7-88c5-6a92f5158444
bbb05cc5-ac9f-4b0e-a71c-bc73fb29f051
fef0a726-06f6-47c8-98bb-2e87045f5181
8aae65c3-006d-4447-af26-7749a9341318
7c160c4d-8f44-406d-b9f8-86103dd06e29
421ac395-40d0-4a20-9de2-6cf12d765feb
9de4e0b2-a637-4fbe-b0a1-10c381acf678
d8892e48-a1a4-407f-b0ed-ac04a677006b
a376175a-92c4-403d-82d7-3db1c65e4380
9fbaaf31-ae25-4c7e-bef8-17ccf6994a8f
4b391215-927c-4157-bf72-0d5189a93f94
32b3eb9a-cea6-445b-af03-7cb38358a998
11c97c81-e6ac-4faf-a728-9d4660f77a4f
72c99a56-15f0-459f-a64f-fdc8ebc207a9
6e844766-b2b7-4b45-88bc-bd4e1cc0663b

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)

ff270fca-47dd-11f1-bbff-4cf95d479851
ff271056-47dd-11f1-bbff-4cf95d479851
ff2710e2-47dd-11f1-bbff-4cf95d479851
ff271164-47dd-11f1-bbff-4cf95d479851
ff2711f0-47dd-11f1-bbff-4cf95d479851
ff271272-47dd-11f1-bbff-4cf95d479851
ff2712fe-47dd-11f1-bbff-4cf95d479851
ff271380-47dd-11f1-bbff-4cf95d479851
ff27140c-47dd-11f1-bbff-4cf95d479851
ff271498-47dd-11f1-bbff-4cf95d479851
ff271524-47dd-11f1-bbff-4cf95d479851
ff2715ba-47dd-11f1-bbff-4cf95d479851
ff271646-47dd-11f1-bbff-4cf95d479851
ff2716d2-47dd-11f1-bbff-4cf95d479851
ff27175e-47dd-11f1-bbff-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)

3f5bed29-1404-8c07-87ea-5ce32bd83b97
193fee29-1404-8c07-87ea-5ce32bd83b97
0aa7ef29-1404-8c07-87ea-5ce32bd83b97
9825f029-1404-8c07-87ea-5ce32bd83b97
a088f129-1404-8c07-87ea-5ce32bd83b97
c574f229-1404-8c07-87ea-5ce32bd83b97
ee12f329-1404-8c07-87ea-5ce32bd83b97
6a43f529-1404-8c07-87ea-5ce32bd83b97
0547f629-1404-8c07-87ea-5ce32bd83b97
ac24f729-1404-8c07-87ea-5ce32bd83b97
c75af829-1404-8c07-87ea-5ce32bd83b97
8d0cf929-1404-8c07-87ea-5ce32bd83b97
dcf4fa29-1404-8c07-87ea-5ce32bd83b97
b62bfb29-1404-8c07-87ea-5ce32bd83b97
cb68fc29-1404-8c07-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: