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)

019f0faa-c9eb-758a-aea7-57d115c71b86
019f0faa-c9eb-7748-8c0c-c2efdb34f0c9
019f0faa-c9eb-7888-ac07-a1078bbd4e08
019f0faa-c9eb-79a2-8727-18ad1f828c5b
019f0faa-c9eb-7ab9-88d9-77082fc2d837
019f0faa-c9eb-7bd3-a050-1212ace62443
019f0faa-c9eb-7ce6-9b1b-f58a288bbc0d
019f0faa-c9eb-7dfc-a43a-2b6fb6461344
019f0faa-c9eb-7f13-b832-0b05cae18ad9
019f0faa-c9ec-7025-9a41-48850558c1c9
019f0faa-c9ec-713c-959b-7cfe48a90146
019f0faa-c9ec-7252-8819-827fe38785a3
019f0faa-c9ec-7369-911a-6ae27e670b7d
019f0faa-c9ec-747f-8cf2-eca0c14cd491
019f0faa-c9ec-7596-8263-e50d8f1c0a88

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)

1f173261-2f0e-6706-8fdc-4cf95d479851
1f173261-2f0e-68f0-8fdc-4cf95d479851
1f173261-2f0e-69e0-8fdc-4cf95d479851
1f173261-2f0e-6ab2-8fdc-4cf95d479851
1f173261-2f0e-6b84-8fdc-4cf95d479851
1f173261-2f0e-6c4c-8fdc-4cf95d479851
1f173261-2f0e-6d14-8fdc-4cf95d479851
1f173261-2f0e-6ddc-8fdc-4cf95d479851
1f173261-2f0e-6ea4-8fdc-4cf95d479851
1f173261-2f0e-6f6c-8fdc-4cf95d479851
1f173261-2f0f-60c0-8fdc-4cf95d479851
1f173261-2f0f-6192-8fdc-4cf95d479851
1f173261-2f0f-625a-8fdc-4cf95d479851
1f173261-2f0f-6318-8fdc-4cf95d479851
1f173261-2f0f-63e0-8fdc-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)

12f0f4c6-7326-11f1-8fdc-4cf95d479851
12f0f534-7326-11f1-8fdc-4cf95d479851
12f0f598-7326-11f1-8fdc-4cf95d479851
12f0f5fc-7326-11f1-8fdc-4cf95d479851
12f0f660-7326-11f1-8fdc-4cf95d479851
12f0f6c4-7326-11f1-8fdc-4cf95d479851
12f0f728-7326-11f1-8fdc-4cf95d479851
12f0f78c-7326-11f1-8fdc-4cf95d479851
12f0f7f0-7326-11f1-8fdc-4cf95d479851
12f0f854-7326-11f1-8fdc-4cf95d479851
12f0f8ae-7326-11f1-8fdc-4cf95d479851
12f0f91c-7326-11f1-8fdc-4cf95d479851
12f0f980-7326-11f1-8fdc-4cf95d479851
12f0f9ee-7326-11f1-8fdc-4cf95d479851
12f0fa52-7326-11f1-8fdc-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)

35abe43a-8604-830b-87ea-5ce32bd83b97
31fbe53a-8604-830b-87ea-5ce32bd83b97
bd64e63a-8604-830b-87ea-5ce32bd83b97
8a41e73a-8604-830b-87ea-5ce32bd83b97
4e89e83a-8604-830b-87ea-5ce32bd83b97
b8ebe93a-8604-830b-87ea-5ce32bd83b97
8f03ea3a-8604-830b-87ea-5ce32bd83b97
1304eb3a-8604-830b-87ea-5ce32bd83b97
4206ec3a-8604-830b-87ea-5ce32bd83b97
aa05ed3a-8604-830b-87ea-5ce32bd83b97
18cdee3a-8604-830b-87ea-5ce32bd83b97
3932ef3a-8604-830b-87ea-5ce32bd83b97
ca72f03a-8604-830b-87ea-5ce32bd83b97
dd08f13a-8604-830b-87ea-5ce32bd83b97
ccc3f23a-8604-830b-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)

5fe7f181-fbb0-4422-ae9d-a5782386cbdf
3bd4fa4f-62fe-4fc4-86aa-af66b043af65
61ce5ecd-272c-4ca0-8f2d-8d34984db26e
018543e3-38f2-4b0c-b456-ccc531af3eb3
4ee8a1e3-71ff-421a-af4d-37d01d5a45bf
bcf63d99-88ce-42c2-a295-48cf0859f894
48578246-e632-49cc-8e39-3c4f99f39b35
30270926-8191-4f0e-ab2e-65b20c87cb01
9e554cef-f6aa-489d-8c47-06d568af8db6
2381c96a-8854-4c40-b66e-0f09ec5ea30d
e33a5fb0-04cd-4c46-804a-0d46d52dbbf9
d041e96c-5535-411f-bd3e-c6eceed83c30
2454c76a-ab12-44aa-8243-50ea7a0d54b8
b0961aed-38bb-4be6-89c0-b81d594e122a
6df95e52-47cf-4fda-8eef-eb572c3c4ba6

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: