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)

019f500f-1d77-7e00-b9dc-e33ba00d6cfb
019f500f-1d77-7f71-82f6-2aab552b6f28
019f500f-1d78-70a4-a8e2-80a1b3951d86
019f500f-1d78-71f0-8eea-62818ec8f707
019f500f-1d78-7340-a1e1-8f1a8a0096b1
019f500f-1d78-745f-b30a-e40a2553d1ce
019f500f-1d78-7575-a52a-1c18a46a64c5
019f500f-1d78-768c-95e3-3aff1a2aa43a
019f500f-1d78-779e-a920-b97494d2b2c3
019f500f-1d78-78b1-a86f-71fc5ef503fe
019f500f-1d78-79bf-a243-097d702645f9
019f500f-1d78-7ad1-aef7-8fc2748c50a4
019f500f-1d78-7be4-862f-17d7c9730e9e
019f500f-1d78-7cf6-877c-0857d66e7a0f
019f500f-1d78-7e09-bf9d-3ec25862ceab

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)

1f17cf96-1f08-658c-842d-4cf95d479851
1f17cf96-1f08-6726-842d-4cf95d479851
1f17cf96-1f08-680c-842d-4cf95d479851
1f17cf96-1f08-68d4-842d-4cf95d479851
1f17cf96-1f08-6992-842d-4cf95d479851
1f17cf96-1f08-6a50-842d-4cf95d479851
1f17cf96-1f08-6b18-842d-4cf95d479851
1f17cf96-1f08-6bd6-842d-4cf95d479851
1f17cf96-1f08-6c94-842d-4cf95d479851
1f17cf96-1f08-6d48-842d-4cf95d479851
1f17cf96-1f08-6ea6-842d-4cf95d479851
1f17cf96-1f08-6f78-842d-4cf95d479851
1f17cf96-1f09-602c-842d-4cf95d479851
1f17cf96-1f09-60ea-842d-4cf95d479851
1f17cf96-1f09-61a8-842d-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)

61f09270-7cf9-11f1-842d-4cf95d479851
61f092d4-7cf9-11f1-842d-4cf95d479851
61f09338-7cf9-11f1-842d-4cf95d479851
61f09392-7cf9-11f1-842d-4cf95d479851
61f093ec-7cf9-11f1-842d-4cf95d479851
61f09450-7cf9-11f1-842d-4cf95d479851
61f094aa-7cf9-11f1-842d-4cf95d479851
61f09504-7cf9-11f1-842d-4cf95d479851
61f09568-7cf9-11f1-842d-4cf95d479851
61f095cc-7cf9-11f1-842d-4cf95d479851
61f0961c-7cf9-11f1-842d-4cf95d479851
61f09676-7cf9-11f1-842d-4cf95d479851
61f096da-7cf9-11f1-842d-4cf95d479851
61f09734-7cf9-11f1-842d-4cf95d479851
61f09798-7cf9-11f1-842d-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)

9d4bb40f-bc01-800c-87ea-5ce32bd83b97
348bb50f-bc01-800c-87ea-5ce32bd83b97
2645b60f-bc01-800c-87ea-5ce32bd83b97
9768b70f-bc01-800c-87ea-5ce32bd83b97
d8e5b80f-bc01-800c-87ea-5ce32bd83b97
a032b90f-bc01-800c-87ea-5ce32bd83b97
600cba0f-bc01-800c-87ea-5ce32bd83b97
956cbb0f-bc01-800c-87ea-5ce32bd83b97
c59abc0f-bc01-800c-87ea-5ce32bd83b97
7314bd0f-bc01-800c-87ea-5ce32bd83b97
0ab5be0f-bc01-800c-87ea-5ce32bd83b97
d6f4bf0f-bc01-800c-87ea-5ce32bd83b97
bcd9c00f-bc01-800c-87ea-5ce32bd83b97
005ac10f-bc01-800c-87ea-5ce32bd83b97
07f5c30f-bc01-800c-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)

82705ba2-1d21-4449-9a05-abba92370e86
bdda3ef0-b7dd-476c-be23-803209da3bad
588d4205-efab-46eb-8c91-2335bc380101
ec71a8ea-aa65-4a0d-8adc-e16ae234d624
5e151e72-6a0a-44dd-8f96-e6b1ac738eb7
b5d3ba7e-8cb6-47b6-b4ca-1b080d05b643
17f5f025-f761-4b95-9534-f99bc057dd62
f8df2568-9ad2-449c-bd60-e29ffaf3a92d
e4d51735-b4f9-42b2-b90f-9d4ab7c5a62c
07dfd64e-c86a-446a-b863-fcd13115262a
9e2c3cc2-503c-43e7-ab5a-586940be11bc
0c20bfbc-1f6f-42b3-8cd7-6c12ba40821f
89607fd8-bc0a-45b1-a293-4778b3c76c48
886bcc74-c281-4773-a4aa-f7bf91fe8bc5
033dc8ab-eaf2-4830-9520-00b080e53ebf

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: