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)

019c9d3c-ca16-750b-93a5-99fd2fe2ad63
019c9d3c-ca16-7698-9c3b-ef74e51e7a67
019c9d3c-ca16-77d8-a524-22b2f1fd669b
019c9d3c-ca16-78fe-915f-d0c4b0955dcd
019c9d3c-ca16-7a1d-ab6e-939d3d62a2fd
019c9d3c-ca16-7b3c-9f3c-a1a0cbe2d74f
019c9d3c-ca16-7c57-a038-aaa879177db0
019c9d3c-ca16-7d75-805a-fd1d7ae3dea6
019c9d3c-ca16-7e90-9df7-1f855fd9d3d0
019c9d3c-ca16-7faa-9ebb-241a8dc1fba9
019c9d3c-ca17-70c9-827a-eafda6b1a3ac
019c9d3c-ca17-71e4-86d9-557a4e97218e
019c9d3c-ca17-72fe-9516-d168b4bad5ae
019c9d3c-ca17-741d-a469-2da665c71413
019c9d3c-ca17-753c-ba3f-86aa830bd2dd

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)

1f113902-a177-6300-86f5-4cf95d479851
1f113902-a177-6486-86f5-4cf95d479851
1f113902-a177-656c-86f5-4cf95d479851
1f113902-a177-6634-86f5-4cf95d479851
1f113902-a177-66fc-86f5-4cf95d479851
1f113902-a177-67ba-86f5-4cf95d479851
1f113902-a177-6882-86f5-4cf95d479851
1f113902-a177-694a-86f5-4cf95d479851
1f113902-a177-6a08-86f5-4cf95d479851
1f113902-a177-6ac6-86f5-4cf95d479851
1f113902-a177-6c1a-86f5-4cf95d479851
1f113902-a177-6ce2-86f5-4cf95d479851
1f113902-a177-6daa-86f5-4cf95d479851
1f113902-a177-6e68-86f5-4cf95d479851
1f113902-a177-6f26-86f5-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)

29457788-43b8-4f67-9152-76f25a24993e
1b5b0171-c9a9-45b3-84a6-e9338286f07f
6e97cde8-2cad-488f-9a13-a18858286839
aef1d7bb-eec0-4a7c-b125-3fdbc1a31416
e0479208-2420-4984-8373-c6077999da0e
03cf702a-8616-4214-adc2-198d15a57b4a
f3dd042f-1749-4a79-ab29-94452aebd750
f21cd745-8118-4d86-8990-467c9656b941
c02c906a-0900-49e6-ac50-050eebca1aa0
e55565c4-1515-4ceb-90aa-f0a5a021c649
a962a946-4d9b-4816-bb0c-07d265c314ca
65b01e58-abd4-4a4c-b271-6c184228551d
de36b867-524c-4968-bc48-053045a28daa
d2bef86e-a21d-40aa-ad9c-0567e91de448
f743de58-891e-4d1d-957d-1dabe500dfc1

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)

2a178444-1390-11f1-86f5-4cf95d479851
2a1784a8-1390-11f1-86f5-4cf95d479851
2a178516-1390-11f1-86f5-4cf95d479851
2a17857a-1390-11f1-86f5-4cf95d479851
2a1785de-1390-11f1-86f5-4cf95d479851
2a178642-1390-11f1-86f5-4cf95d479851
2a17869c-1390-11f1-86f5-4cf95d479851
2a1786f6-1390-11f1-86f5-4cf95d479851
2a17875a-1390-11f1-86f5-4cf95d479851
2a1787b4-1390-11f1-86f5-4cf95d479851
2a17880e-1390-11f1-86f5-4cf95d479851
2a178872-1390-11f1-86f5-4cf95d479851
2a1788cc-1390-11f1-86f5-4cf95d479851
2a178930-1390-11f1-86f5-4cf95d479851
2a17898a-1390-11f1-86f5-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)

66afc220-ec00-8a03-87ea-5ce32bd83b97
499ac320-ec00-8a03-87ea-5ce32bd83b97
7400c420-ec00-8a03-87ea-5ce32bd83b97
afbbc520-ec00-8a03-87ea-5ce32bd83b97
0407c620-ec00-8a03-87ea-5ce32bd83b97
9c10c720-ec00-8a03-87ea-5ce32bd83b97
476fc820-ec00-8a03-87ea-5ce32bd83b97
21fac920-ec00-8a03-87ea-5ce32bd83b97
1769ca20-ec00-8a03-87ea-5ce32bd83b97
49bfcb20-ec00-8a03-87ea-5ce32bd83b97
8c3bcc20-ec00-8a03-87ea-5ce32bd83b97
e1b4cd20-ec00-8a03-87ea-5ce32bd83b97
3365ce20-ec00-8a03-87ea-5ce32bd83b97
0596d020-ec00-8a03-87ea-5ce32bd83b97
71c7d120-ec00-8a03-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: