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)

019c1e1f-cca7-7cbd-aad1-d2e8b27a4b0f
019c1e1f-cca7-7e52-81f0-9f7eec8d9518
019c1e1f-cca7-7f9e-a409-313428dce20d
019c1e1f-cca8-70c5-9a31-a060a4a4d1fa
019c1e1f-cca8-71e0-b6f7-7a6383516f1a
019c1e1f-cca8-72fe-a0ac-f250249039d9
019c1e1f-cca8-741d-bdd5-291c694ed22f
019c1e1f-cca8-753c-9c72-a530a1371c2f
019c1e1f-cca8-765b-98a1-6bf319691220
019c1e1f-cca8-7779-bab4-324e22969c9d
019c1e1f-cca8-7894-9de5-457660283b41
019c1e1f-cca8-79b7-ad37-a1851aa61d9c
019c1e1f-cca8-7ad5-aae3-193da9b39ed2
019c1e1f-cca8-7bf4-97f5-d39c35b0bf7d
019c1e1f-cca8-7d0f-8687-e82052c20e5f

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)

1f1002ac-dabc-6648-a0b6-4cf95d479851
1f1002ac-dabc-67ec-a0b6-4cf95d479851
1f1002ac-dabc-68c8-a0b6-4cf95d479851
1f1002ac-dabc-699a-a0b6-4cf95d479851
1f1002ac-dabc-6a58-a0b6-4cf95d479851
1f1002ac-dabc-6b16-a0b6-4cf95d479851
1f1002ac-dabc-6bd4-a0b6-4cf95d479851
1f1002ac-dabc-6c92-a0b6-4cf95d479851
1f1002ac-dabc-6d50-a0b6-4cf95d479851
1f1002ac-dabc-6e0e-a0b6-4cf95d479851
1f1002ac-dabc-6f58-a0b6-4cf95d479851
1f1002ac-dabd-602a-a0b6-4cf95d479851
1f1002ac-dabd-60de-a0b6-4cf95d479851
1f1002ac-dabd-619c-a0b6-4cf95d479851
1f1002ac-dabd-6250-a0b6-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)

09536dab-890b-4900-9c14-a793382d66b5
4bd82d0b-944c-45d6-9f36-64a7983cdf84
c08149bb-227a-4972-8cf6-93ab33bcf936
777fe5b4-5f62-453c-9753-f53513ba8060
241e5440-581b-47af-8b44-a2f7d81aef61
2d4dc971-956b-4dab-9a4e-028a8ec4ea1a
4cd00d59-9f21-4370-9a43-04583d31dd6f
fd21547b-1689-4997-916a-7943746dfdd5
94c97901-2b42-4807-b0c8-d12c6282dee3
c2d13752-7de5-434a-a6ff-7ccaabb19a47
639239c6-33a5-4054-a42c-6edfb69f23b2
8afc31f7-b5c7-4900-a49d-7bbaafd14781
926b422d-ca7d-4b93-bc02-71c5e92ae095
9324f828-96de-48ff-b1bf-357483e70a22
36fdc2a8-a982-4ef3-b7de-87bc0059bdd6

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)

cdabd76e-002a-11f1-a0b6-4cf95d479851
cdabd7d2-002a-11f1-a0b6-4cf95d479851
cdabd836-002a-11f1-a0b6-4cf95d479851
cdabd89a-002a-11f1-a0b6-4cf95d479851
cdabd8f4-002a-11f1-a0b6-4cf95d479851
cdabd958-002a-11f1-a0b6-4cf95d479851
cdabd9bc-002a-11f1-a0b6-4cf95d479851
cdabda16-002a-11f1-a0b6-4cf95d479851
cdabda7a-002a-11f1-a0b6-4cf95d479851
cdabdad4-002a-11f1-a0b6-4cf95d479851
cdabdb42-002a-11f1-a0b6-4cf95d479851
cdabdc3c-002a-11f1-a0b6-4cf95d479851
cdabdcbe-002a-11f1-a0b6-4cf95d479851
cdabdd22-002a-11f1-a0b6-4cf95d479851
cdabdd7c-002a-11f1-a0b6-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)

b8bb7106-b502-8102-87ea-5ce32bd83b97
62487206-b502-8102-87ea-5ce32bd83b97
6bf27306-b502-8102-87ea-5ce32bd83b97
8eae7406-b502-8102-87ea-5ce32bd83b97
7fb47506-b502-8102-87ea-5ce32bd83b97
7e8c7606-b502-8102-87ea-5ce32bd83b97
be757706-b502-8102-87ea-5ce32bd83b97
fce67806-b502-8102-87ea-5ce32bd83b97
5b1c7906-b502-8102-87ea-5ce32bd83b97
8d787a06-b502-8102-87ea-5ce32bd83b97
f4907b06-b502-8102-87ea-5ce32bd83b97
457f7c06-b502-8102-87ea-5ce32bd83b97
d6ce7d06-b502-8102-87ea-5ce32bd83b97
98d47e06-b502-8102-87ea-5ce32bd83b97
334b7f06-b502-8102-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: