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)

019f4589-f40b-7cc5-9c28-254223bbaec4
019f4589-f40b-7e63-bd51-89aa2b4b5db8
019f4589-f40b-7fa2-acbe-c09955a70b26
019f4589-f40c-70c9-b4c5-d4c96feba8c9
019f4589-f40c-71e0-be69-b358237cb38e
019f4589-f40c-72f2-a240-1a85edee5616
019f4589-f40c-7409-89f9-559fdf6278f0
019f4589-f40c-751b-8f0f-7f3e61980b00
019f4589-f40c-762e-826b-b742e88a3ce0
019f4589-f40c-7744-b25b-29e94a3a62a6
019f4589-f40c-785b-85c7-222fa34e69e2
019f4589-f40c-796d-8f64-e49d1d76b891
019f4589-f40c-7a7f-b444-d35ad5c22863
019f4589-f40c-7b92-892b-0e8154d28a86
019f4589-f40c-7ca4-a82d-5af634085ad9

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)

1f17b5e7-04e7-690a-90cd-4cf95d479851
1f17b5e7-04e7-6ad6-90cd-4cf95d479851
1f17b5e7-04e7-6bb2-90cd-4cf95d479851
1f17b5e7-04e7-6c7a-90cd-4cf95d479851
1f17b5e7-04e7-6d42-90cd-4cf95d479851
1f17b5e7-04e7-6e00-90cd-4cf95d479851
1f17b5e7-04e7-6ebe-90cd-4cf95d479851
1f17b5e7-04e7-6f7c-90cd-4cf95d479851
1f17b5e7-04e8-603a-90cd-4cf95d479851
1f17b5e7-04e8-60f8-90cd-4cf95d479851
1f17b5e7-04e8-6256-90cd-4cf95d479851
1f17b5e7-04e8-6328-90cd-4cf95d479851
1f17b5e7-04e8-63e6-90cd-4cf95d479851
1f17b5e7-04e8-64a4-90cd-4cf95d479851
1f17b5e7-04e8-6562-90cd-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)

704e8634-7b5e-11f1-90cd-4cf95d479851
704e8698-7b5e-11f1-90cd-4cf95d479851
704e8706-7b5e-11f1-90cd-4cf95d479851
704e876a-7b5e-11f1-90cd-4cf95d479851
704e87d8-7b5e-11f1-90cd-4cf95d479851
704e8832-7b5e-11f1-90cd-4cf95d479851
704e8896-7b5e-11f1-90cd-4cf95d479851
704e88fa-7b5e-11f1-90cd-4cf95d479851
704e8968-7b5e-11f1-90cd-4cf95d479851
704e89cc-7b5e-11f1-90cd-4cf95d479851
704e8a30-7b5e-11f1-90cd-4cf95d479851
704e8a9e-7b5e-11f1-90cd-4cf95d479851
704e8b0c-7b5e-11f1-90cd-4cf95d479851
704e8b70-7b5e-11f1-90cd-4cf95d479851
704e8bd4-7b5e-11f1-90cd-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)

858aa724-7e01-8e0b-87ea-5ce32bd83b97
0a0fa824-7e01-8e0b-87ea-5ce32bd83b97
edf5a924-7e01-8e0b-87ea-5ce32bd83b97
63a8aa24-7e01-8e0b-87ea-5ce32bd83b97
91afab24-7e01-8e0b-87ea-5ce32bd83b97
7a67ac24-7e01-8e0b-87ea-5ce32bd83b97
5818ad24-7e01-8e0b-87ea-5ce32bd83b97
9505ae24-7e01-8e0b-87ea-5ce32bd83b97
99c2af24-7e01-8e0b-87ea-5ce32bd83b97
9efbb024-7e01-8e0b-87ea-5ce32bd83b97
36cdb124-7e01-8e0b-87ea-5ce32bd83b97
23f4b224-7e01-8e0b-87ea-5ce32bd83b97
535bb324-7e01-8e0b-87ea-5ce32bd83b97
b08ab424-7e01-8e0b-87ea-5ce32bd83b97
9599b524-7e01-8e0b-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)

316cc781-d60b-410a-80a4-c49c58633a27
b4ac796f-9d0e-4b5f-948a-8c7fd2c075d4
27dcd034-4c9b-402b-9c8b-25655fd61f37
55035847-6f57-4383-a942-9b8049e1a1b0
9c3b6575-2955-43c7-be91-3593cc170684
42463501-db64-43a0-ba8b-07bf75cbb947
d810745b-a860-47e8-8608-d977192e8349
15d8e1f1-b432-498c-bfb3-a1fadbcfed80
f166a04d-0459-4080-a8c4-a490fbba0678
3809deb6-ce42-4257-ae41-6c64b10dc83a
c404751b-883b-4995-953f-a856c27d7b59
75c75968-ea86-44d3-a7c1-855cc591618f
e2f6945b-8e1d-41af-a350-44e9e04374db
02c35afc-19d4-43eb-a3c4-c67d159396d9
5b623526-44d0-4669-9324-50992f114f11

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: