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)

019d1460-1f7a-76b1-868c-a30c32b7f2ac
019d1460-1f7a-78b5-813a-9ee558d4a5f9
019d1460-1f7a-79f8-8d51-3cf7b116ca56
019d1460-1f7a-7b1f-8459-e52ca1b46dba
019d1460-1f7a-7c3a-abc3-2cf5067fa396
019d1460-1f7a-7d59-aa7f-6b2337899daa
019d1460-1f7a-7e73-b0a7-e1a47c1781e1
019d1460-1f7a-7f8e-9c2c-c347c72d9c46
019d1460-1f7b-70a8-8b65-6d38f3d17fe7
019d1460-1f7b-71c3-ba7c-f4701b231371
019d1460-1f7b-72de-8248-155ba466f615
019d1460-1f7b-73f8-b983-bfc2135ad077
019d1460-1f7b-74c1-8c9a-3b4a30ab7b26
019d1460-1f7b-75e8-b3c1-0d84f798aaf2
019d1460-1f7b-7707-aa8d-5534880c730c

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)

1f125bdf-e4f0-69be-83b5-4cf95d479851
1f125bdf-e4f0-6b62-83b5-4cf95d479851
1f125bdf-e4f0-6c52-83b5-4cf95d479851
1f125bdf-e4f0-6d24-83b5-4cf95d479851
1f125bdf-e4f0-6dec-83b5-4cf95d479851
1f125bdf-e4f0-6eb4-83b5-4cf95d479851
1f125bdf-e4f0-6f7c-83b5-4cf95d479851
1f125bdf-e4f1-6044-83b5-4cf95d479851
1f125bdf-e4f1-6116-83b5-4cf95d479851
1f125bdf-e4f1-61de-83b5-4cf95d479851
1f125bdf-e4f1-6332-83b5-4cf95d479851
1f125bdf-e4f1-640e-83b5-4cf95d479851
1f125bdf-e4f1-64d6-83b5-4cf95d479851
1f125bdf-e4f1-65a8-83b5-4cf95d479851
1f125bdf-e4f1-6670-83b5-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)

b80e5317-6bd0-4cfd-9706-a881befa60dc
2de2194b-7136-4d15-9309-f2392fac7c40
ca93008f-8d74-4e9e-ade3-2a81aee2ce3c
1809743c-8147-4afc-acbe-bb47bfb7ca1e
23a2ca4c-174f-4baf-ad90-0c5fba60eba8
52c50ea9-9e07-4021-8b1f-0f676a50c97f
bd6ae34b-66d9-4bc7-8050-e55a08caf05b
28c90dd1-c0d7-4296-88cc-c76dfc100ff7
d746e792-25df-4da8-98ba-cacb36a756e8
2b26834a-d5a0-4e6e-897f-d4da4ad13054
734e554f-eb28-4c65-bf23-d0bb4caa79a6
b91fbcee-babf-4165-9c59-664dcf26535f
84e1188c-605a-4158-a1d1-903a04ffef0f
04c4b03d-e1b0-463f-99f8-384aefaca08e
a3bbd73c-807e-4fb2-b49c-5cb883d91ab6

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)

fe4f1b98-25bd-11f1-83b5-4cf95d479851
fe4f1bfc-25bd-11f1-83b5-4cf95d479851
fe4f1c56-25bd-11f1-83b5-4cf95d479851
fe4f1cba-25bd-11f1-83b5-4cf95d479851
fe4f1d14-25bd-11f1-83b5-4cf95d479851
fe4f1d6e-25bd-11f1-83b5-4cf95d479851
fe4f1dd2-25bd-11f1-83b5-4cf95d479851
fe4f1e2c-25bd-11f1-83b5-4cf95d479851
fe4f1e90-25bd-11f1-83b5-4cf95d479851
fe4f1efe-25bd-11f1-83b5-4cf95d479851
fe4f1f62-25bd-11f1-83b5-4cf95d479851
fe4f1fbc-25bd-11f1-83b5-4cf95d479851
fe4f2020-25bd-11f1-83b5-4cf95d479851
fe4f208e-25bd-11f1-83b5-4cf95d479851
fe4f20e8-25bd-11f1-83b5-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)

79ce1539-ad01-8105-87ea-5ce32bd83b97
8cb51639-ad01-8105-87ea-5ce32bd83b97
eb431739-ad01-8105-87ea-5ce32bd83b97
4c051939-ad01-8105-87ea-5ce32bd83b97
25961a39-ad01-8105-87ea-5ce32bd83b97
1ed01b39-ad01-8105-87ea-5ce32bd83b97
214e1c39-ad01-8105-87ea-5ce32bd83b97
1dc11d39-ad01-8105-87ea-5ce32bd83b97
1d321e39-ad01-8105-87ea-5ce32bd83b97
dfbb1f39-ad01-8105-87ea-5ce32bd83b97
24bb2039-ad01-8105-87ea-5ce32bd83b97
00882139-ad01-8105-87ea-5ce32bd83b97
d8692239-ad01-8105-87ea-5ce32bd83b97
f0972339-ad01-8105-87ea-5ce32bd83b97
8c9b2439-ad01-8105-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: