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)

01a1f4ff-e3c1-7215-bdbf-5ca83bcd501d
01a1f4ff-e3c1-73c7-9265-8670f50ffa48
01a1f4ff-e3c1-7517-a000-accf99087abe
01a1f4ff-e3c1-763e-9991-a026075abd07
01a1f4ff-e3c1-775d-8588-dc0922a56c27
01a1f4ff-e3c1-787b-b0c0-582af6d1d533
01a1f4ff-e3c1-799e-aa2b-73ece7a3c78a
01a1f4ff-e3c1-7abd-b00c-9ea9516699df
01a1f4ff-e3c1-7bdc-8fd9-6e14f68a366e
01a1f4ff-e3c1-7cfa-ba31-777d72233ba4
01a1f4ff-e3c1-7e15-a2ce-9e54b46d821c
01a1f4ff-e3c1-7f34-b330-aefc077601c6
01a1f4ff-e3c2-7052-8c7a-d0b090a9534c
01a1f4ff-e3c2-7175-91c2-b9ed8446f545
01a1f4ff-e3c2-7290-980d-1cfa08ea0c62

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)

1f1e4445-f321-643e-9816-4cf95d479851
1f1e4445-f321-65f6-9816-4cf95d479851
1f1e4445-f321-66e6-9816-4cf95d479851
1f1e4445-f321-67b8-9816-4cf95d479851
1f1e4445-f321-688a-9816-4cf95d479851
1f1e4445-f321-6952-9816-4cf95d479851
1f1e4445-f321-6a1a-9816-4cf95d479851
1f1e4445-f321-6ae2-9816-4cf95d479851
1f1e4445-f321-6baa-9816-4cf95d479851
1f1e4445-f321-6c7c-9816-4cf95d479851
1f1e4445-f321-6dc6-9816-4cf95d479851
1f1e4445-f321-6e98-9816-4cf95d479851
1f1e4445-f321-6f6a-9816-4cf95d479851
1f1e4445-f322-6032-9816-4cf95d479851
1f1e4445-f322-60fa-9816-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)

5f3221e0-e444-11f1-9816-4cf95d479851
5f32224e-e444-11f1-9816-4cf95d479851
5f3222b2-e444-11f1-9816-4cf95d479851
5f322316-e444-11f1-9816-4cf95d479851
5f32237a-e444-11f1-9816-4cf95d479851
5f3223e8-e444-11f1-9816-4cf95d479851
5f32244c-e444-11f1-9816-4cf95d479851
5f3224b0-e444-11f1-9816-4cf95d479851
5f32251e-e444-11f1-9816-4cf95d479851
5f322582-e444-11f1-9816-4cf95d479851
5f3225dc-e444-11f1-9816-4cf95d479851
5f322636-e444-11f1-9816-4cf95d479851
5f32269a-e444-11f1-9816-4cf95d479851
5f3226fe-e444-11f1-9816-4cf95d479851
5f322758-e444-11f1-9816-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)

698e1f21-4204-8314-87ea-5ce32bd83b97
b4752021-4204-8314-87ea-5ce32bd83b97
be182121-4204-8314-87ea-5ce32bd83b97
28242221-4204-8314-87ea-5ce32bd83b97
0e832321-4204-8314-87ea-5ce32bd83b97
dc692521-4204-8314-87ea-5ce32bd83b97
e0372621-4204-8314-87ea-5ce32bd83b97
15c52721-4204-8314-87ea-5ce32bd83b97
1b402821-4204-8314-87ea-5ce32bd83b97
1b772921-4204-8314-87ea-5ce32bd83b97
932a2a21-4204-8314-87ea-5ce32bd83b97
0e832b21-4204-8314-87ea-5ce32bd83b97
ccc42c21-4204-8314-87ea-5ce32bd83b97
ae262d21-4204-8314-87ea-5ce32bd83b97
47332e21-4204-8314-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)

aa353101-d10d-48dd-9224-33cc79c031d8
ce0dc5ea-44b7-4a70-b42b-869abac8da40
ad1dd3a8-f92a-4fc1-bd5a-c63acef08e97
d2382ed2-2c2c-4570-ad56-bb566703b2bf
19029f06-47b6-49a2-b8ea-66e493f41976
6b026e94-6cf0-40a1-9965-76f1d2a700cc
796ea4e0-79ab-41b7-8c0e-55d4e3b60c72
f3d57705-2a07-4528-ba4a-af8881a90e39
afd0d1e0-aa9d-47d5-877e-c1ce8fbe2003
886c8a48-8dda-4980-92a9-a7793e443a97
f3a307fe-c67b-4fe0-9eab-fc23ed7109df
a1696316-4cef-4bd7-abc4-dd7c59de53e3
ed59e9b2-190e-48d1-beee-f8126473fd7e
79b5dd5b-ea8a-48e4-aa95-1ddd02bcf74a
0d4b1726-bd57-43f4-b68c-ca1976fcaede

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: