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)

019bf321-74c5-72de-bf97-a435ae952524
019bf321-74c5-74a4-a400-bd5a9ed7d8a6
019bf321-74c5-75e4-bec4-1a1a1427be46
019bf321-74c5-7703-947c-5463a19b765e
019bf321-74c5-781d-852b-3f689e123499
019bf321-74c5-7938-bcdf-71e6ef31738a
019bf321-74c5-7a5b-9bfe-03369a689758
019bf321-74c5-7b71-b77b-05a7b984859c
019bf321-74c5-7c8c-9199-5478b3300919
019bf321-74c5-7da2-b9b8-893da31c5d70
019bf321-74c5-7eb9-a0df-1f33582a8b0f
019bf321-74c5-7fd3-a347-be3deb9d6156
019bf321-74c6-70ee-9857-6f9184316949
019bf321-74c6-7205-a001-2fa784738050
019bf321-74c6-731b-bf26-f87e44b22cd4

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)

1f0f99b5-e62c-6344-b643-4cf95d479851
1f0f99b5-e62c-64f2-b643-4cf95d479851
1f0f99b5-e62c-65d8-b643-4cf95d479851
1f0f99b5-e62c-66a0-b643-4cf95d479851
1f0f99b5-e62c-679a-b643-4cf95d479851
1f0f99b5-e62c-686c-b643-4cf95d479851
1f0f99b5-e62c-6934-b643-4cf95d479851
1f0f99b5-e62c-69fc-b643-4cf95d479851
1f0f99b5-e62c-6aba-b643-4cf95d479851
1f0f99b5-e62c-6b82-b643-4cf95d479851
1f0f99b5-e62c-6cc2-b643-4cf95d479851
1f0f99b5-e62c-6d94-b643-4cf95d479851
1f0f99b5-e62c-6e5c-b643-4cf95d479851
1f0f99b5-e62c-6f1a-b643-4cf95d479851
1f0f99b5-e62c-6fd8-b643-4cf95d479851

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)

ba313e9a-8404-47ce-bba1-e23b496aecb2
c86bc549-8341-4b79-9a3e-73f3f2f7d975
f325e036-b48f-4bf9-bd3d-b92851931cd5
3a096e62-5c0a-4bb0-ac8a-c4ca6117d5d9
6fdad912-2bfc-4aea-b521-4d06692e0145
127e0511-675d-4872-8bc1-7c2c1bf752da
4ded4cfc-ab72-4b3a-9675-d83d176ec939
5f5de957-156c-4922-a0ee-e7e5acd61bef
3e72dba4-d9eb-4b21-ae7b-1728bfedcc18
26d5e0c3-101b-4e93-a914-198c95e971a9
33b18804-3530-4ec7-8c22-6ace5623f7eb
4cc29457-3ce5-4604-a7e3-a2318f1a64f1
22043b3d-977f-4a1f-9600-e0c18266384f
dd7b77d4-6464-4a65-b01e-96e760fcb224
118ec774-6e5d-4968-a06b-1d573f74d296

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)

5e62d4ec-f99b-11f0-b643-4cf95d479851
5e62d550-f99b-11f0-b643-4cf95d479851
5e62d5b4-f99b-11f0-b643-4cf95d479851
5e62d60e-f99b-11f0-b643-4cf95d479851
5e62d672-f99b-11f0-b643-4cf95d479851
5e62d6d6-f99b-11f0-b643-4cf95d479851
5e62d730-f99b-11f0-b643-4cf95d479851
5e62d78a-f99b-11f0-b643-4cf95d479851
5e62d7ee-f99b-11f0-b643-4cf95d479851
5e62d852-f99b-11f0-b643-4cf95d479851
5e62d8c0-f99b-11f0-b643-4cf95d479851
5e62d924-f99b-11f0-b643-4cf95d479851
5e62d988-f99b-11f0-b643-4cf95d479851
5e62d9e2-f99b-11f0-b643-4cf95d479851
5e62da46-f99b-11f0-b643-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)

ccf3b90e-bf00-8901-87ea-5ce32bd83b97
a103bb0e-bf00-8901-87ea-5ce32bd83b97
1575bc0e-bf00-8901-87ea-5ce32bd83b97
6788bd0e-bf00-8901-87ea-5ce32bd83b97
2d2abe0e-bf00-8901-87ea-5ce32bd83b97
f32dbf0e-bf00-8901-87ea-5ce32bd83b97
b9f1c00e-bf00-8901-87ea-5ce32bd83b97
08dfc10e-bf00-8901-87ea-5ce32bd83b97
0969c20e-bf00-8901-87ea-5ce32bd83b97
cebbc30e-bf00-8901-87ea-5ce32bd83b97
7c4fc40e-bf00-8901-87ea-5ce32bd83b97
057ec50e-bf00-8901-87ea-5ce32bd83b97
2d33c60e-bf00-8901-87ea-5ce32bd83b97
5054c70e-bf00-8901-87ea-5ce32bd83b97
92d6c80e-bf00-8901-87ea-5ce32bd83b97

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: