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)

019e8fa2-374c-7e7b-8669-7af815310a31
019e8fa2-374c-7000-8d4d-d9b8c981a113
019e8fa2-374d-7148-b24b-3ba6b72059b0
019e8fa2-374d-726b-a57e-ada8fde5cbf8
019e8fa2-374d-738a-ad5c-315944486f7d
019e8fa2-374d-74a8-b465-8efb3218fbb7
019e8fa2-374d-75c7-992d-d776a8087956
019e8fa2-374d-76e6-95f5-ed32ed9835bc
019e8fa2-374d-7805-a890-e7be22406f8d
019e8fa2-374d-7923-9b41-0e9693dffbc7
019e8fa2-374d-7a42-bcf5-20da2188617a
019e8fa2-374d-7b61-8dc2-1547b4bc7c41
019e8fa2-374d-7c7b-9aed-00129027ac5f
019e8fa2-374d-7d9a-9b42-b1392fe988d8
019e8fa2-374d-7eb9-a20c-6a284604e333

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)

1f15f9cc-4119-679e-b2eb-4cf95d479851
1f15f9cc-4119-6942-b2eb-4cf95d479851
1f15f9cc-4119-6a32-b2eb-4cf95d479851
1f15f9cc-4119-6b04-b2eb-4cf95d479851
1f15f9cc-4119-6bd6-b2eb-4cf95d479851
1f15f9cc-4119-6ca8-b2eb-4cf95d479851
1f15f9cc-4119-6d70-b2eb-4cf95d479851
1f15f9cc-4119-6e38-b2eb-4cf95d479851
1f15f9cc-4119-6f00-b2eb-4cf95d479851
1f15f9cc-4119-6fc8-b2eb-4cf95d479851
1f15f9cc-411a-6112-b2eb-4cf95d479851
1f15f9cc-411a-61ee-b2eb-4cf95d479851
1f15f9cc-411a-62c0-b2eb-4cf95d479851
1f15f9cc-411a-6388-b2eb-4cf95d479851
1f15f9cc-411a-645a-b2eb-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)

c411a536-5f9c-11f1-b2eb-4cf95d479851
c411a59a-5f9c-11f1-b2eb-4cf95d479851
c411a608-5f9c-11f1-b2eb-4cf95d479851
c411a66c-5f9c-11f1-b2eb-4cf95d479851
c411a6d0-5f9c-11f1-b2eb-4cf95d479851
c411a73e-5f9c-11f1-b2eb-4cf95d479851
c411a7ac-5f9c-11f1-b2eb-4cf95d479851
c411a806-5f9c-11f1-b2eb-4cf95d479851
c411a874-5f9c-11f1-b2eb-4cf95d479851
c411a8d8-5f9c-11f1-b2eb-4cf95d479851
c411a932-5f9c-11f1-b2eb-4cf95d479851
c411a996-5f9c-11f1-b2eb-4cf95d479851
c411ac02-5f9c-11f1-b2eb-4cf95d479851
c411acde-5f9c-11f1-b2eb-4cf95d479851
c411adba-5f9c-11f1-b2eb-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)

6f336c0d-4e05-8a09-87ea-5ce32bd83b97
1d8d6d0d-4e05-8a09-87ea-5ce32bd83b97
48db6e0d-4e05-8a09-87ea-5ce32bd83b97
47686f0d-4e05-8a09-87ea-5ce32bd83b97
e594700d-4e05-8a09-87ea-5ce32bd83b97
75fc710d-4e05-8a09-87ea-5ce32bd83b97
7aa6720d-4e05-8a09-87ea-5ce32bd83b97
f422730d-4e05-8a09-87ea-5ce32bd83b97
25e3740d-4e05-8a09-87ea-5ce32bd83b97
7e9d750d-4e05-8a09-87ea-5ce32bd83b97
7a9e760d-4e05-8a09-87ea-5ce32bd83b97
1de2770d-4e05-8a09-87ea-5ce32bd83b97
eb86780d-4e05-8a09-87ea-5ce32bd83b97
f3c2790d-4e05-8a09-87ea-5ce32bd83b97
33a07a0d-4e05-8a09-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)

d225abb0-7b84-4b72-b722-076ac473bea4
1f81fded-78e4-4029-8a84-431305b26018
4e683933-8049-4c72-9beb-8bbb6176f703
b5df78a0-2c6a-49bb-bc02-5b7368297c3c
422fb2c3-0eb7-4aac-82a6-f266d2131b6a
19fc4023-f39a-4a8c-bb6a-96f08d263425
559b1b20-12e5-40e2-a1f9-2d4f89316b5b
f44a6ef4-a281-4dc9-86a9-e8ccde73697a
9f17933c-501e-42c0-920c-9c2960541feb
9329f892-1d37-4225-b1c3-4e202990ae0a
69f66c6c-b935-4e76-9475-217f7f4cb877
9dd7cf5b-f830-4674-a765-64b229ce2406
f1c789c0-3120-4782-85f1-16cbb8359bba
174bdf71-d8b5-40ea-8c06-127effacb085
8e85850c-9216-4d31-bc1c-597c43d443e0

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: