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)

019ec13b-063c-72c1-a2ed-182904a5df3b
019ec13b-063c-745b-80e8-1c4e0541c8f9
019ec13b-063c-759a-aa84-57d5ca63aece
019ec13b-063c-76b5-acd6-27a0eece3df1
019ec13b-063c-77cb-bbb3-67b8d68cecb3
019ec13b-063c-78e6-a964-0e13be9e5604
019ec13b-063c-79f8-b662-76c29d5c47aa
019ec13b-063c-7b0b-998d-f03c87d9cac8
019ec13b-063c-7c1d-bdfb-99a79f894298
019ec13b-063c-7d30-b79c-9e866a032fb9
019ec13b-063c-7e42-9dac-bb2d2cd69d90
019ec13b-063c-7f54-883f-96ce98c466bb
019ec13b-063d-706b-bd35-d5fec95914bc
019ec13b-063d-717d-97b8-56d0b26322aa
019ec13b-063d-7294-a558-ca64f467fe58

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)

1f1672e2-524f-695c-baaf-4cf95d479851
1f1672e2-524f-6b32-baaf-4cf95d479851
1f1672e2-524f-6c18-baaf-4cf95d479851
1f1672e2-524f-6ce0-baaf-4cf95d479851
1f1672e2-524f-6da8-baaf-4cf95d479851
1f1672e2-524f-6e70-baaf-4cf95d479851
1f1672e2-524f-6f2e-baaf-4cf95d479851
1f1672e2-524f-6fec-baaf-4cf95d479851
1f1672e2-5250-60b4-baaf-4cf95d479851
1f1672e2-5250-6172-baaf-4cf95d479851
1f1672e2-5250-62c6-baaf-4cf95d479851
1f1672e2-5250-6398-baaf-4cf95d479851
1f1672e2-5250-6456-baaf-4cf95d479851
1f1672e2-5250-651e-baaf-4cf95d479851
1f1672e2-5250-65d2-baaf-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)

252506ae-672e-11f1-baaf-4cf95d479851
25250712-672e-11f1-baaf-4cf95d479851
25250776-672e-11f1-baaf-4cf95d479851
252507da-672e-11f1-baaf-4cf95d479851
2525083e-672e-11f1-baaf-4cf95d479851
252508a2-672e-11f1-baaf-4cf95d479851
252508fc-672e-11f1-baaf-4cf95d479851
25250960-672e-11f1-baaf-4cf95d479851
252509c4-672e-11f1-baaf-4cf95d479851
25250a28-672e-11f1-baaf-4cf95d479851
25250a8c-672e-11f1-baaf-4cf95d479851
25250af0-672e-11f1-baaf-4cf95d479851
25250b54-672e-11f1-baaf-4cf95d479851
25250bb8-672e-11f1-baaf-4cf95d479851
25250c1c-672e-11f1-baaf-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)

7d3b741f-3a03-840a-87ea-5ce32bd83b97
3f6c751f-3a03-840a-87ea-5ce32bd83b97
f1f8761f-3a03-840a-87ea-5ce32bd83b97
e6f9771f-3a03-840a-87ea-5ce32bd83b97
5e0f781f-3a03-840a-87ea-5ce32bd83b97
d5e2791f-3a03-840a-87ea-5ce32bd83b97
6c667a1f-3a03-840a-87ea-5ce32bd83b97
f1017b1f-3a03-840a-87ea-5ce32bd83b97
d3a77c1f-3a03-840a-87ea-5ce32bd83b97
34987d1f-3a03-840a-87ea-5ce32bd83b97
57fb7e1f-3a03-840a-87ea-5ce32bd83b97
1cf77f1f-3a03-840a-87ea-5ce32bd83b97
ae3a801f-3a03-840a-87ea-5ce32bd83b97
70d5811f-3a03-840a-87ea-5ce32bd83b97
cebd821f-3a03-840a-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)

c7a1f699-4b04-431a-9df7-f5e1228d7ba0
279cae16-4cf4-41bf-ac21-d380c204367c
d5df017d-4700-46bc-b01b-b547abf6d7e6
d123cc44-5181-4529-b5af-a8dddb326828
20e518a9-5885-4e38-8480-fdd3ac197ce5
aafccecd-2dae-455d-b6bd-aa847634223e
6bd28ca2-7920-47a6-b4e0-29f97a24f503
ee43354c-7d80-468a-b6ce-f5e19e169351
30648bcc-e85a-4c78-b9fb-6bd2a284e59d
5e56dca7-2075-41f3-a409-112e0c2a024e
6a98e186-4037-481e-8047-c0841e10dad3
f95770a3-45df-4c9f-8c98-5224119000fd
8d3e57a4-31ed-41e9-b884-f98eaf29e74e
218f6b05-6e81-4b6d-94c4-add86cff76df
07a70660-dcb6-4b6d-9b74-b08afc41dedf

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: