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)

019f10aa-9908-70b9-8c2a-f68f234af7fa
019f10aa-9908-738a-ac26-51f465c9068c
019f10aa-9908-74fe-88aa-3dfe5796f1be
019f10aa-9908-7629-a64f-9b1ea7bfd2af
019f10aa-9908-774c-8d68-cda029af558d
019f10aa-9908-786b-be85-65142e93a9f6
019f10aa-9908-798e-8f38-9ad4569fbdd7
019f10aa-9908-7ab1-925a-848f533ff6f5
019f10aa-9908-7bcf-8c61-ef48e98133ec
019f10aa-9908-7cf2-a719-d433e7f45378
019f10aa-9908-7e15-b36b-fd4fec6a58c7
019f10aa-9908-7f34-a687-51ee2dc0ee20
019f10aa-9909-7057-9d81-d78a6b3e4db9
019f10aa-9909-7175-9a8b-1049e322f9bb
019f10aa-9909-7298-9c4c-64eba4f9dcef

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)

1f1734d1-b7b3-6a3a-b58c-4cf95d479851
1f1734d1-b7b3-6c2e-b58c-4cf95d479851
1f1734d1-b7b3-6d1e-b58c-4cf95d479851
1f1734d1-b7b3-6e04-b58c-4cf95d479851
1f1734d1-b7b3-6ed6-b58c-4cf95d479851
1f1734d1-b7b3-6fa8-b58c-4cf95d479851
1f1734d1-b7b4-6070-b58c-4cf95d479851
1f1734d1-b7b4-6142-b58c-4cf95d479851
1f1734d1-b7b4-620a-b58c-4cf95d479851
1f1734d1-b7b4-62dc-b58c-4cf95d479851
1f1734d1-b7b4-644e-b58c-4cf95d479851
1f1734d1-b7b4-652a-b58c-4cf95d479851
1f1734d1-b7b4-65f2-b58c-4cf95d479851
1f1734d1-b7b4-66ba-b58c-4cf95d479851
1f1734d1-b7b4-6782-b58c-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)

1b7b485e-734d-11f1-b58c-4cf95d479851
1b7b48cc-734d-11f1-b58c-4cf95d479851
1b7b4926-734d-11f1-b58c-4cf95d479851
1b7b4994-734d-11f1-b58c-4cf95d479851
1b7b49f8-734d-11f1-b58c-4cf95d479851
1b7b4a66-734d-11f1-b58c-4cf95d479851
1b7b4ac0-734d-11f1-b58c-4cf95d479851
1b7b4b24-734d-11f1-b58c-4cf95d479851
1b7b4b88-734d-11f1-b58c-4cf95d479851
1b7b4bec-734d-11f1-b58c-4cf95d479851
1b7b4c46-734d-11f1-b58c-4cf95d479851
1b7b4caa-734d-11f1-b58c-4cf95d479851
1b7b4d04-734d-11f1-b58c-4cf95d479851
1b7b4d68-734d-11f1-b58c-4cf95d479851
1b7b4dc2-734d-11f1-b58c-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)

3a8b9717-9e05-830b-87ea-5ce32bd83b97
02909817-9e05-830b-87ea-5ce32bd83b97
26709a17-9e05-830b-87ea-5ce32bd83b97
5b379b17-9e05-830b-87ea-5ce32bd83b97
30219c17-9e05-830b-87ea-5ce32bd83b97
c94b9d17-9e05-830b-87ea-5ce32bd83b97
70c09e17-9e05-830b-87ea-5ce32bd83b97
a20c9f17-9e05-830b-87ea-5ce32bd83b97
9a6ca017-9e05-830b-87ea-5ce32bd83b97
8b9ba117-9e05-830b-87ea-5ce32bd83b97
d5fba217-9e05-830b-87ea-5ce32bd83b97
735ea317-9e05-830b-87ea-5ce32bd83b97
2bcda417-9e05-830b-87ea-5ce32bd83b97
8640a517-9e05-830b-87ea-5ce32bd83b97
ae00a617-9e05-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)

534f4e1d-a1af-4dae-ae3f-5f6ad0b37a05
c15ae3d9-7e24-4bac-8f32-e1084b374df5
7448995e-4378-4113-9b18-962aea5b1360
e32fb6c8-9a5a-4b06-9160-bc62a820fff2
43e9b24c-f87e-4387-a493-faec2aaff0fc
153edbd4-b26d-4ebf-bef5-0c53eb1f7610
885205a0-8786-4445-bc95-5a6e4a7beeba
159425f9-78ae-45d3-8560-c433c42ad204
93afecf8-a7bb-4335-9f76-d52869ad3342
6530a8e0-fe27-48df-a6a9-d217619c5fd1
9037858d-e2cb-4c87-97f0-269174a7b493
79b1479a-3e41-42ce-8091-e2a38f30c643
138deb4e-d6fe-431a-accd-af0e77731cbf
d8f10321-4053-411a-b525-71ede687b7f6
4ca7822e-0398-4622-b402-b09e76c55919

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: