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)

01a05865-bf9e-711b-bd37-7d6f60e91349
01a05865-bf9e-730f-87ad-432d4cf58f69
01a05865-bf9e-74a4-a3b1-41d9ec6783b6
01a05865-bf9e-75fc-b940-8f6c57bec5f2
01a05865-bf9e-7759-afb2-1e040ab0bb93
01a05865-bf9e-78b5-9d6b-8e57b648053a
01a05865-bf9e-7a09-9e3d-040af524141c
01a05865-bf9e-7b71-9e88-c324a16a9cf1
01a05865-bf9e-7cd1-8376-421d25952128
01a05865-bf9e-7e36-afae-a3999255ef21
01a05865-bf9e-7f82-811a-392a111ad9eb
01a05865-bf9f-70da-893b-0f64b99438f8
01a05865-bf9f-7229-8002-f21809e11674
01a05865-bf9f-7379-8e83-4b7832fa6bb1
01a05865-bf9f-74e2-9649-f846db90e4bf

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)

1f1a54f1-a0e8-63da-9f73-4cf95d479851
1f1a54f1-a0e8-66a0-9f73-4cf95d479851
1f1a54f1-a0e8-6812-9f73-4cf95d479851
1f1a54f1-a0e8-6998-9f73-4cf95d479851
1f1a54f1-a0e8-6b46-9f73-4cf95d479851
1f1a54f1-a0e8-6ccc-9f73-4cf95d479851
1f1a54f1-a0e8-6e52-9f73-4cf95d479851
1f1a54f1-a0e8-6ff6-9f73-4cf95d479851
1f1a54f1-a0e9-612c-9f73-4cf95d479851
1f1a54f1-a0e9-62a8-9f73-4cf95d479851
1f1a54f1-a0e9-64ec-9f73-4cf95d479851
1f1a54f1-a0e9-6686-9f73-4cf95d479851
1f1a54f1-a0e9-6820-9f73-4cf95d479851
1f1a54f1-a0e9-6956-9f73-4cf95d479851
1f1a54f1-a0e9-6ac8-9f73-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)

1a0e9c8a-a54f-11f1-9f73-4cf95d479851
1a0e9d3e-a54f-11f1-9f73-4cf95d479851
1a0e9dde-a54f-11f1-9f73-4cf95d479851
1a0e9e74-a54f-11f1-9f73-4cf95d479851
1a0e9f14-a54f-11f1-9f73-4cf95d479851
1a0e9faa-a54f-11f1-9f73-4cf95d479851
1a0ea040-a54f-11f1-9f73-4cf95d479851
1a0ea0e0-a54f-11f1-9f73-4cf95d479851
1a0ea194-a54f-11f1-9f73-4cf95d479851
1a0ea220-a54f-11f1-9f73-4cf95d479851
1a0ea28e-a54f-11f1-9f73-4cf95d479851
1a0ea31a-a54f-11f1-9f73-4cf95d479851
1a0ea3c4-a54f-11f1-9f73-4cf95d479851
1a0ea464-a54f-11f1-9f73-4cf95d479851
1a0ea50e-a54f-11f1-9f73-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)

bae45626-9603-830f-87ea-5ce32bd83b97
a2105726-9603-830f-87ea-5ce32bd83b97
85ba5826-9603-830f-87ea-5ce32bd83b97
823d5926-9603-830f-87ea-5ce32bd83b97
ca7c5a26-9603-830f-87ea-5ce32bd83b97
bc025b26-9603-830f-87ea-5ce32bd83b97
49195c26-9603-830f-87ea-5ce32bd83b97
1b2b5d26-9603-830f-87ea-5ce32bd83b97
83d25e26-9603-830f-87ea-5ce32bd83b97
86d55f26-9603-830f-87ea-5ce32bd83b97
8ad06026-9603-830f-87ea-5ce32bd83b97
a4b26126-9603-830f-87ea-5ce32bd83b97
41cf6226-9603-830f-87ea-5ce32bd83b97
31b16326-9603-830f-87ea-5ce32bd83b97
1be96426-9603-830f-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)

b0daf007-1f29-4e5f-a97b-ef816e78386d
7d092072-98dd-454e-9529-244987fe8336
0b5a96fe-f825-49d3-8e52-a1d7c919e27d
37157147-95f6-428e-9c1a-13bc84b7a9dd
5f95338d-6fc6-4c03-8006-315f29ac467a
c6cf53e6-9c24-476c-bed7-2b15df73fe55
030894ec-5b68-4c45-911f-4ab233a44b37
e8b4b518-2878-4bfa-8f11-ad19e3a3675d
d2f8eab9-47ee-4b43-9517-b47866e9543a
cd3c8067-4b94-4d76-949c-bddf56d080b5
a908cfb5-1b55-4973-a8e2-b59db3b36f7e
9fb91eed-1a06-4c75-b176-762acd09fb2e
e5af0964-e6dc-49ce-9bcd-5b41d073d6bd
5642a210-53f8-4e36-9af3-2c042b7fc0d9
61faed92-60b1-44f5-8350-cc7def3c9158

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: