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)

019cc04c-814b-714c-8b5f-ed91548466a4
019cc04c-814b-72fe-8685-31b01855e570
019cc04c-814b-743a-9b2a-fc7bae37bb55
019cc04c-814b-755d-b134-d1af9a6d9bde
019cc04c-814b-7673-b141-b40651340768
019cc04c-814b-778e-8048-b22077daadce
019cc04c-814b-78a0-9b69-2e555f774114
019cc04c-814b-79b7-b9e7-cfa3ca05fb06
019cc04c-814b-7acd-8a05-869bf291da07
019cc04c-814b-7be4-ba33-17713ea5c379
019cc04c-814b-7cfe-8426-49604657ac0f
019cc04c-814b-7e15-90de-b2a35de6518a
019cc04c-814b-7f2c-8584-74f789e664db
019cc04c-814c-7042-854a-488e2a44842b
019cc04c-814c-7159-8e43-096973674388

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)

1f118e9b-ffbf-6144-8bdd-4cf95d479851
1f118e9b-ffbf-62d4-8bdd-4cf95d479851
1f118e9b-ffbf-63c4-8bdd-4cf95d479851
1f118e9b-ffbf-6496-8bdd-4cf95d479851
1f118e9b-ffbf-655e-8bdd-4cf95d479851
1f118e9b-ffbf-6626-8bdd-4cf95d479851
1f118e9b-ffbf-66f8-8bdd-4cf95d479851
1f118e9b-ffbf-67b6-8bdd-4cf95d479851
1f118e9b-ffbf-687e-8bdd-4cf95d479851
1f118e9b-ffbf-693c-8bdd-4cf95d479851
1f118e9b-ffbf-6a86-8bdd-4cf95d479851
1f118e9b-ffbf-6b6c-8bdd-4cf95d479851
1f118e9b-ffbf-6c34-8bdd-4cf95d479851
1f118e9b-ffbf-6d06-8bdd-4cf95d479851
1f118e9b-ffbf-6dce-8bdd-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)

ed98edbc-9752-4caf-968f-ac07ce375868
3d17a569-8141-40aa-92fe-512454356ee0
30b76831-cab4-436c-8ad0-02c478bc197e
285e90f2-91e4-4410-b255-d789da8f8221
67a9cc4d-7584-4c43-972c-384863526525
0f516f89-67a7-4935-9304-f4806aba2b9c
2ec93e25-839d-44ec-8bc9-4de548afcf85
9e167079-7543-4fa3-bd65-a9404f33ebb2
673aa44a-b698-4456-83c6-378fb26a2b60
b841e3bc-30ca-4b9f-88c6-1247a11bb0c3
7df1a532-780d-4a23-b8d5-ccaa4547639b
11dea8f7-eb6d-4918-bf01-7c871a870a8a
05ffa523-197b-4929-b012-d8fe8767657e
756c192d-710e-4dbe-b350-31c3ba608335
67f822f7-51b4-4bf4-81e5-6f5c829af534

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)

bffc045e-18e9-11f1-8bdd-4cf95d479851
bffc04d6-18e9-11f1-8bdd-4cf95d479851
bffc0544-18e9-11f1-8bdd-4cf95d479851
bffc05a8-18e9-11f1-8bdd-4cf95d479851
bffc060c-18e9-11f1-8bdd-4cf95d479851
bffc0670-18e9-11f1-8bdd-4cf95d479851
bffc06e8-18e9-11f1-8bdd-4cf95d479851
bffc0756-18e9-11f1-8bdd-4cf95d479851
bffc07c4-18e9-11f1-8bdd-4cf95d479851
bffc0828-18e9-11f1-8bdd-4cf95d479851
bffc088c-18e9-11f1-8bdd-4cf95d479851
bffc08fa-18e9-11f1-8bdd-4cf95d479851
bffc095e-18e9-11f1-8bdd-4cf95d479851
bffc09c2-18e9-11f1-8bdd-4cf95d479851
bffc0a30-18e9-11f1-8bdd-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)

145f4219-7805-8004-87ea-5ce32bd83b97
8cb74419-7805-8004-87ea-5ce32bd83b97
ad1b4519-7805-8004-87ea-5ce32bd83b97
db3e4619-7805-8004-87ea-5ce32bd83b97
261d4719-7805-8004-87ea-5ce32bd83b97
46414819-7805-8004-87ea-5ce32bd83b97
53b04919-7805-8004-87ea-5ce32bd83b97
74104a19-7805-8004-87ea-5ce32bd83b97
8f6d4b19-7805-8004-87ea-5ce32bd83b97
b89a4c19-7805-8004-87ea-5ce32bd83b97
60df4d19-7805-8004-87ea-5ce32bd83b97
405c4e19-7805-8004-87ea-5ce32bd83b97
c4624f19-7805-8004-87ea-5ce32bd83b97
5cd15019-7805-8004-87ea-5ce32bd83b97
e8e95119-7805-8004-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: