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)

01a03f95-eb31-7a0d-8a7f-57516c751c55
01a03f95-eb31-7ba2-be67-9f1119baaf8d
01a03f95-eb31-7cda-9c35-04c33db5647b
01a03f95-eb31-7df4-bda3-c84fd0479156
01a03f95-eb31-7f0b-8398-2122a5b7cbc0
01a03f95-eb32-7021-9317-cf18963f05bc
01a03f95-eb32-713c-8d4c-f7425a30c78c
01a03f95-eb32-724e-a9a4-c5ad8ad29225
01a03f95-eb32-7361-830f-a09be81e14ad
01a03f95-eb32-7477-b034-da56b85acd64
01a03f95-eb32-758a-af7b-ad2edbebe67f
01a03f95-eb32-76ad-9451-ea362c5e9a6c
01a03f95-eb32-77c3-a976-feeda53e9426
01a03f95-eb32-78da-b0da-f4f9c41221dd
01a03f95-eb32-79f0-8978-ef0d07ccb4f6

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)

1f1a185e-3b4a-6e80-b233-4cf95d479851
1f1a185e-3b4b-6006-b233-4cf95d479851
1f1a185e-3b4b-60e2-b233-4cf95d479851
1f1a185e-3b4b-61aa-b233-4cf95d479851
1f1a185e-3b4b-6272-b233-4cf95d479851
1f1a185e-3b4b-633a-b233-4cf95d479851
1f1a185e-3b4b-63f8-b233-4cf95d479851
1f1a185e-3b4b-64c0-b233-4cf95d479851
1f1a185e-3b4b-657e-b233-4cf95d479851
1f1a185e-3b4b-663c-b233-4cf95d479851
1f1a185e-3b4b-6772-b233-4cf95d479851
1f1a185e-3b4b-683a-b233-4cf95d479851
1f1a185e-3b4b-68f8-b233-4cf95d479851
1f1a185e-3b4b-69b6-b233-4cf95d479851
1f1a185e-3b4b-6a88-b233-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)

e3b4bb5a-a185-11f1-b233-4cf95d479851
e3b4bbc8-a185-11f1-b233-4cf95d479851
e3b4bc2c-a185-11f1-b233-4cf95d479851
e3b4bc90-a185-11f1-b233-4cf95d479851
e3b4bcf4-a185-11f1-b233-4cf95d479851
e3b4bd58-a185-11f1-b233-4cf95d479851
e3b4bdbc-a185-11f1-b233-4cf95d479851
e3b4be20-a185-11f1-b233-4cf95d479851
e3b4be8e-a185-11f1-b233-4cf95d479851
e3b4bef2-a185-11f1-b233-4cf95d479851
e3b4bf56-a185-11f1-b233-4cf95d479851
e3b4bfba-a185-11f1-b233-4cf95d479851
e3b4c01e-a185-11f1-b233-4cf95d479851
e3b4c08c-a185-11f1-b233-4cf95d479851
e3b4c0f0-a185-11f1-b233-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)

6dced12c-9c04-8e0e-87ea-5ce32bd83b97
a1ddd22c-9c04-8e0e-87ea-5ce32bd83b97
5504d32c-9c04-8e0e-87ea-5ce32bd83b97
4d19d42c-9c04-8e0e-87ea-5ce32bd83b97
a365d52c-9c04-8e0e-87ea-5ce32bd83b97
d808d62c-9c04-8e0e-87ea-5ce32bd83b97
434ed72c-9c04-8e0e-87ea-5ce32bd83b97
4511d82c-9c04-8e0e-87ea-5ce32bd83b97
920ad92c-9c04-8e0e-87ea-5ce32bd83b97
1959da2c-9c04-8e0e-87ea-5ce32bd83b97
f9cbdc2c-9c04-8e0e-87ea-5ce32bd83b97
c6ffdd2c-9c04-8e0e-87ea-5ce32bd83b97
4f1fde2c-9c04-8e0e-87ea-5ce32bd83b97
2eeadf2c-9c04-8e0e-87ea-5ce32bd83b97
9694e02c-9c04-8e0e-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)

ea5bc97f-eede-4e62-bbe0-676247389b9e
10e47e11-c0b1-4135-b035-73f48044f76a
3252fae3-ee13-46ce-910b-9ad94488d252
3633823c-46a6-4675-83eb-1e31afe9a1be
9723bdc4-859c-4797-88c5-f5b460766a14
b3731864-6d67-44b3-8a83-c04dbfb00574
3f10ddab-7ec1-4a85-a49f-26b460d5b57c
3e15e186-91c1-447a-88ad-aa330a1d71c0
c10b747d-f3e1-4c8b-a40d-137016c7eaab
17967da4-5294-4099-ad8d-e3a280bb59c7
ce1d8d26-772f-41e7-89d3-baca12ed4f8b
05509814-b2d0-471b-8c58-c20c3ca38d5d
4a48f5e6-1352-426d-bef5-47f509559ef7
08cf5ec7-2174-4e6c-9b1d-5192718c7d0a
440438d6-ba26-4fd8-ab21-c5ea2949e89f

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: