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)

019dec01-e032-77f4-8f7a-784890819919
019dec01-e032-79af-9d87-b92426fbd87c
019dec01-e032-7b17-a3c3-daa29f4f0854
019dec01-e032-7c7b-bfec-39a1261368c6
019dec01-e032-7dcf-b793-b15073327b7c
019dec01-e032-7f17-a0a0-8fcf0aa53e9f
019dec01-e033-705b-9126-91ddf91baf88
019dec01-e033-71a2-84a9-d79f771c7df2
019dec01-e033-72ea-8200-b7c87bad84c6
019dec01-e033-7432-baea-b560e96fc5a4
019dec01-e033-7571-b22d-d37ccfa6cf84
019dec01-e033-76b1-bbc2-ba633029b1e1
019dec01-e033-77f0-823b-eda17ba11cf5
019dec01-e033-7940-b79b-00ee920aa115
019dec01-e033-7b0f-b18f-bea99ffae65a

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)

1f146a51-cc72-6b80-a661-4cf95d479851
1f146a51-cc72-6e78-a661-4cf95d479851
1f146a51-cc73-6026-a661-4cf95d479851
1f146a51-cc73-6198-a661-4cf95d479851
1f146a51-cc73-6292-a661-4cf95d479851
1f146a51-cc73-6364-a661-4cf95d479851
1f146a51-cc73-647c-a661-4cf95d479851
1f146a51-cc73-6562-a661-4cf95d479851
1f146a51-cc73-662a-a661-4cf95d479851
1f146a51-cc73-66e8-a661-4cf95d479851
1f146a51-cc73-6850-a661-4cf95d479851
1f146a51-cc73-6922-a661-4cf95d479851
1f146a51-cc73-69f4-a661-4cf95d479851
1f146a51-cc73-6abc-a661-4cf95d479851
1f146a51-cc73-6b84-a661-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)

bd5252c5-a6ff-4649-b2d2-4dde22c84391
6c9d930d-ca59-4cf2-8ff0-57683551a22c
67ab0a4c-f268-4260-8b24-fc0ecf13b023
5238cdcc-5ae8-459c-bb0e-853dd6438016
3e3affc9-7894-4e28-8396-0cd3e4eb032e
8cb7183d-df45-4a0b-a3b6-eb6d2a659828
14e484f2-9e8f-4a57-b666-40ed5225ad25
7fbaee2d-3c5d-4b45-b264-d4974bc671a5
c775a7d9-d970-4546-a7ba-f1da2df2e657
4592cf59-4f4a-43e7-8dfe-02439c6fc3d5
1785018d-d47e-48e9-90eb-cb3c704d6f17
8e1de687-ade4-4ec9-9fe2-192fb97e9020
3dbd9af4-357e-4e25-9f5d-90a690b960b7
0249db63-482a-4f9d-a1c8-669a1cabbf41
0580ad17-2dea-4a96-945d-c6b90ea70b27

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)

1cc740b6-46a5-11f1-a661-4cf95d479851
1cc74124-46a5-11f1-a661-4cf95d479851
1cc7417e-46a5-11f1-a661-4cf95d479851
1cc741ec-46a5-11f1-a661-4cf95d479851
1cc7425a-46a5-11f1-a661-4cf95d479851
1cc742c8-46a5-11f1-a661-4cf95d479851
1cc74322-46a5-11f1-a661-4cf95d479851
1cc74386-46a5-11f1-a661-4cf95d479851
1cc743e0-46a5-11f1-a661-4cf95d479851
1cc7443a-46a5-11f1-a661-4cf95d479851
1cc74494-46a5-11f1-a661-4cf95d479851
1cc744f8-46a5-11f1-a661-4cf95d479851
1cc7455c-46a5-11f1-a661-4cf95d479851
1cc745c0-46a5-11f1-a661-4cf95d479851
1cc74624-46a5-11f1-a661-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)

4c62283b-f400-8b07-87ea-5ce32bd83b97
788c293b-f400-8b07-87ea-5ce32bd83b97
b6e02a3b-f400-8b07-87ea-5ce32bd83b97
3e4b2b3b-f400-8b07-87ea-5ce32bd83b97
97d62c3b-f400-8b07-87ea-5ce32bd83b97
6dab2d3b-f400-8b07-87ea-5ce32bd83b97
c1ef2e3b-f400-8b07-87ea-5ce32bd83b97
f8812f3b-f400-8b07-87ea-5ce32bd83b97
7b37303b-f400-8b07-87ea-5ce32bd83b97
dbc7313b-f400-8b07-87ea-5ce32bd83b97
e3b1323b-f400-8b07-87ea-5ce32bd83b97
0afa333b-f400-8b07-87ea-5ce32bd83b97
aa4f353b-f400-8b07-87ea-5ce32bd83b97
4ff0363b-f400-8b07-87ea-5ce32bd83b97
6ec4373b-f400-8b07-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: