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)

019fbd2b-504f-72b5-a161-316f6319fc34
019fbd2b-504f-7477-af98-f9cbb054737e
019fbd2b-504f-75b7-88c5-e85602d1bec9
019fbd2b-504f-76d1-9519-d0569d3993f8
019fbd2b-504f-77e4-b757-9ba4e5fe04b5
019fbd2b-504f-78fa-b425-7874b6b5aa0e
019fbd2b-504f-7a0d-8012-af125e0d3917
019fbd2b-504f-7b1f-bb24-08b2638b5069
019fbd2b-504f-7c36-8934-5f3f6490fa62
019fbd2b-504f-7d48-a22b-c746df028c51
019fbd2b-504f-7e5f-bb13-95a6e74f7fd0
019fbd2b-504f-7f71-a4bb-d160b7ac3496
019fbd2b-5050-7088-a2a1-1740ec91052a
019fbd2b-5050-719a-a637-3916da45cef6
019fbd2b-5050-72ad-b511-9a412b2eed84

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)

1f18d9f7-f727-6fc8-a128-4cf95d479851
1f18d9f7-f728-61a8-a128-4cf95d479851
1f18d9f7-f728-6298-a128-4cf95d479851
1f18d9f7-f728-636a-a128-4cf95d479851
1f18d9f7-f728-6432-a128-4cf95d479851
1f18d9f7-f728-64fa-a128-4cf95d479851
1f18d9f7-f728-65c2-a128-4cf95d479851
1f18d9f7-f728-668a-a128-4cf95d479851
1f18d9f7-f728-6752-a128-4cf95d479851
1f18d9f7-f728-681a-a128-4cf95d479851
1f18d9f7-f728-6982-a128-4cf95d479851
1f18d9f7-f728-6a54-a128-4cf95d479851
1f18d9f7-f728-6b1c-a128-4cf95d479851
1f18d9f7-f728-6bda-a128-4cf95d479851
1f18d9f7-f728-6ca2-a128-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)

7f728d74-8d9f-11f1-a128-4cf95d479851
7f728dd8-8d9f-11f1-a128-4cf95d479851
7f728e46-8d9f-11f1-a128-4cf95d479851
7f728eaa-8d9f-11f1-a128-4cf95d479851
7f728f04-8d9f-11f1-a128-4cf95d479851
7f728f5e-8d9f-11f1-a128-4cf95d479851
7f728fc2-8d9f-11f1-a128-4cf95d479851
7f72901c-8d9f-11f1-a128-4cf95d479851
7f729080-8d9f-11f1-a128-4cf95d479851
7f7290da-8d9f-11f1-a128-4cf95d479851
7f72913e-8d9f-11f1-a128-4cf95d479851
7f729198-8d9f-11f1-a128-4cf95d479851
7f7291f2-8d9f-11f1-a128-4cf95d479851
7f729256-8d9f-11f1-a128-4cf95d479851
7f7292ba-8d9f-11f1-a128-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)

805a4528-c902-850d-87ea-5ce32bd83b97
73a24628-c902-850d-87ea-5ce32bd83b97
b5a84828-c902-850d-87ea-5ce32bd83b97
11ae4928-c902-850d-87ea-5ce32bd83b97
d02a4a28-c902-850d-87ea-5ce32bd83b97
33a74b28-c902-850d-87ea-5ce32bd83b97
d17a4c28-c902-850d-87ea-5ce32bd83b97
24184d28-c902-850d-87ea-5ce32bd83b97
818e4e28-c902-850d-87ea-5ce32bd83b97
86844f28-c902-850d-87ea-5ce32bd83b97
757d5028-c902-850d-87ea-5ce32bd83b97
22485128-c902-850d-87ea-5ce32bd83b97
e1375228-c902-850d-87ea-5ce32bd83b97
3ed25328-c902-850d-87ea-5ce32bd83b97
86b65428-c902-850d-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)

c362858e-78d5-4067-9f0c-f9611ba0de8c
166b9670-fd15-423c-bff6-e224c7871f3d
e06af3ed-5f9d-402b-94b6-b6e75f73c392
89fadb84-2a53-4243-b5e4-0a769d6d7364
604dcaea-286e-4498-ba57-be5640f60504
3a75b902-9071-41d8-8659-a05e0c367d0c
52016705-457e-49c7-84cc-22f6370462a5
38d3eab6-bd4d-4c2c-88f3-3f455dcf3d9b
a7b9b2d4-5d94-4b9e-9e75-1f7abc11a540
55c87fae-cb87-4e4a-97c5-ed5c6ed757d6
268f7de1-79a6-4ccf-a4cd-ac3e44edc692
83a71b2e-a07f-44f3-a1be-650ea476d3d2
ef3c101b-b2b0-47b2-ab7f-bcc919aa24b4
dd1b715e-0d3c-4b62-a2df-67bd7a009d91
d487c533-e823-44d6-b13d-d9910db20212

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: