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)

019c8ef8-b80e-79bb-8cf1-3f4758aa2a7a
019c8ef8-b80e-7b9e-9719-d99c9ed48e11
019c8ef8-b80e-7d17-b7ee-028212c8b076
019c8ef8-b80e-7e63-91e6-6f2cd8612f1f
019c8ef8-b80e-7faf-ba0c-786e6e2da369
019c8ef8-b80f-70fe-8ab0-0b2ed99dd250
019c8ef8-b80f-724a-8600-1c4a3bd276f3
019c8ef8-b80f-7392-9328-940c7a178da6
019c8ef8-b80f-74da-8834-7f9a7063a71d
019c8ef8-b80f-761d-b162-1d4f813590ca
019c8ef8-b80f-7761-8efa-0b3fd97c792c
019c8ef8-b80f-78a4-8a60-7b45804a77eb
019c8ef8-b80f-79e8-92d6-15f501dcc70b
019c8ef8-b80f-7b2c-b2c7-fcbe299520c1
019c8ef8-b80f-7c6f-b3d8-8f4575b05691

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)

1f11162e-7172-6cc8-8d42-4cf95d479851
1f11162e-7172-6f48-8d42-4cf95d479851
1f11162e-7173-60ce-8d42-4cf95d479851
1f11162e-7173-6240-8d42-4cf95d479851
1f11162e-7173-639e-8d42-4cf95d479851
1f11162e-7173-64fc-8d42-4cf95d479851
1f11162e-7173-6664-8d42-4cf95d479851
1f11162e-7173-67c2-8d42-4cf95d479851
1f11162e-7173-692a-8d42-4cf95d479851
1f11162e-7173-6a7e-8d42-4cf95d479851
1f11162e-7173-6c72-8d42-4cf95d479851
1f11162e-7173-6dda-8d42-4cf95d479851
1f11162e-7173-6f24-8d42-4cf95d479851
1f11162e-7174-6078-8d42-4cf95d479851
1f11162e-7174-61d6-8d42-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)

534c587d-cb84-4725-9d8d-31d22dd25b86
940a3ba7-357f-43cb-9def-7d693d82cfdb
ef35dac4-ea68-4af8-9772-259ed3fcefed
0bf5c2d4-1699-49d0-9c97-19c181c6755f
358c11a7-10ae-4747-8a38-c7788bb3b6dd
2ca9036c-c6ad-410a-b24f-743cb8ec9bad
3537a5ec-fd0d-41e6-becd-a8266ca94d6a
639816d2-9c86-4de4-b94d-64424b5e5d67
0b8ba026-359f-4a11-9cbf-ba52b804c2a4
c0c5daa4-2a56-4a2c-a26c-d1641ab76097
8a22fe52-9d73-4173-b4a0-a46e4e421dd4
de0c7e88-ae5e-46e5-a7c8-e57ca226d3b7
5678a198-526d-488b-abc6-b296a3e5a5e5
247edfc5-c15b-4a56-826b-28f51f3ef35c
3582aa16-0913-430b-8cf0-c601a94325c8

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)

e71748f2-1162-11f1-8d42-4cf95d479851
e7174992-1162-11f1-8d42-4cf95d479851
e7174a32-1162-11f1-8d42-4cf95d479851
e7174ad2-1162-11f1-8d42-4cf95d479851
e7174b72-1162-11f1-8d42-4cf95d479851
e7174c08-1162-11f1-8d42-4cf95d479851
e7174c9e-1162-11f1-8d42-4cf95d479851
e7174d3e-1162-11f1-8d42-4cf95d479851
e7174dd4-1162-11f1-8d42-4cf95d479851
e7174e7e-1162-11f1-8d42-4cf95d479851
e7174f14-1162-11f1-8d42-4cf95d479851
e7174fb4-1162-11f1-8d42-4cf95d479851
e7175054-1162-11f1-8d42-4cf95d479851
e71750ea-1162-11f1-8d42-4cf95d479851
e7175194-1162-11f1-8d42-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)

61e0ac1e-3702-8703-87ea-5ce32bd83b97
6a3bad1e-3702-8703-87ea-5ce32bd83b97
a9ecae1e-3702-8703-87ea-5ce32bd83b97
9fc2af1e-3702-8703-87ea-5ce32bd83b97
7cf9b01e-3702-8703-87ea-5ce32bd83b97
73f8b11e-3702-8703-87ea-5ce32bd83b97
7579b21e-3702-8703-87ea-5ce32bd83b97
0823b31e-3702-8703-87ea-5ce32bd83b97
0d2eb41e-3702-8703-87ea-5ce32bd83b97
e4e5b51e-3702-8703-87ea-5ce32bd83b97
128ab61e-3702-8703-87ea-5ce32bd83b97
25bfb71e-3702-8703-87ea-5ce32bd83b97
0117b81e-3702-8703-87ea-5ce32bd83b97
f3c5b91e-3702-8703-87ea-5ce32bd83b97
8b9bba1e-3702-8703-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: