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)

01a06f5a-e447-719e-ab1c-506fd170f5c3
01a06f5a-e447-7354-a066-0d676aab9305
01a06f5a-e447-749c-94d2-080d7f61d474
01a06f5a-e447-75c3-8ed3-e01bfd15cc41
01a06f5a-e447-76e6-988c-8fe7cbc8a559
01a06f5a-e447-7805-ac82-ece7214e2ae3
01a06f5a-e447-791f-9cf2-974a1b8a7c12
01a06f5a-e447-7a3e-9cf2-5687cba9e62b
01a06f5a-e447-7b59-af23-ecc1c2482ffc
01a06f5a-e447-7c7b-b7fb-37071d27808a
01a06f5a-e447-7d9a-bf4c-84139e128aac
01a06f5a-e447-7eb5-95f1-0effbff5be8c
01a06f5a-e447-7fd3-ab42-51a61de13422
01a06f5a-e448-70f2-a05b-7b8c378811b4
01a06f5a-e448-7211-b47a-9789720881a9

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)

1f1a8cfe-1f68-6586-bc5c-4cf95d479851
1f1a8cfe-1f68-6752-bc5c-4cf95d479851
1f1a8cfe-1f68-6838-bc5c-4cf95d479851
1f1a8cfe-1f68-6900-bc5c-4cf95d479851
1f1a8cfe-1f68-69d2-bc5c-4cf95d479851
1f1a8cfe-1f68-6a90-bc5c-4cf95d479851
1f1a8cfe-1f68-6b58-bc5c-4cf95d479851
1f1a8cfe-1f68-6c16-bc5c-4cf95d479851
1f1a8cfe-1f68-6cde-bc5c-4cf95d479851
1f1a8cfe-1f68-6d9c-bc5c-4cf95d479851
1f1a8cfe-1f68-6ee6-bc5c-4cf95d479851
1f1a8cfe-1f68-6fb8-bc5c-4cf95d479851
1f1a8cfe-1f69-6080-bc5c-4cf95d479851
1f1a8cfe-1f69-613e-bc5c-4cf95d479851
1f1a8cfe-1f69-6206-bc5c-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)

e1f692d8-a8cf-11f1-bc5c-4cf95d479851
e1f69346-a8cf-11f1-bc5c-4cf95d479851
e1f693aa-a8cf-11f1-bc5c-4cf95d479851
e1f6940e-a8cf-11f1-bc5c-4cf95d479851
e1f69472-a8cf-11f1-bc5c-4cf95d479851
e1f694d6-a8cf-11f1-bc5c-4cf95d479851
e1f6953a-a8cf-11f1-bc5c-4cf95d479851
e1f6959e-a8cf-11f1-bc5c-4cf95d479851
e1f6960c-a8cf-11f1-bc5c-4cf95d479851
e1f69666-a8cf-11f1-bc5c-4cf95d479851
e1f696e8-a8cf-11f1-bc5c-4cf95d479851
e1f69774-a8cf-11f1-bc5c-4cf95d479851
e1f6981e-a8cf-11f1-bc5c-4cf95d479851
e1f698a0-a8cf-11f1-bc5c-4cf95d479851
e1f6990e-a8cf-11f1-bc5c-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)

045dca02-8a00-880f-87ea-5ce32bd83b97
6906cb02-8a00-880f-87ea-5ce32bd83b97
0795cc02-8a00-880f-87ea-5ce32bd83b97
0300cd02-8a00-880f-87ea-5ce32bd83b97
5854cf02-8a00-880f-87ea-5ce32bd83b97
a0d7d002-8a00-880f-87ea-5ce32bd83b97
9bb9d102-8a00-880f-87ea-5ce32bd83b97
4855d202-8a00-880f-87ea-5ce32bd83b97
a58dd302-8a00-880f-87ea-5ce32bd83b97
82b6d402-8a00-880f-87ea-5ce32bd83b97
48f4d502-8a00-880f-87ea-5ce32bd83b97
aba3d602-8a00-880f-87ea-5ce32bd83b97
d5d3d702-8a00-880f-87ea-5ce32bd83b97
596ed802-8a00-880f-87ea-5ce32bd83b97
b1d5d902-8a00-880f-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)

28a6e419-13e2-4072-b9ce-bc3a8f2c63c4
38a70e79-6c8f-4293-841b-be20723ab393
fca1fde1-16cb-4cde-841a-9a29d03858b5
3a046fa9-d8e2-40bf-a92a-fe94518bd13d
e754f688-1160-4fd6-8bab-4d049b6a3944
bcd5f0d5-e25d-4ac8-994b-7428cfaf8108
4e374264-7198-4d1e-a1c9-2905b311a818
ca8ebb4a-de4f-4337-827b-ac42fc86a709
3cb8958a-3bd2-46ec-aa01-5c6f2b15373c
b6d1742f-ba6e-42e8-af62-6d64004f6a02
eb4e402e-9a45-4a34-96f3-c722a543467b
40a985c6-d1ed-4c11-8c53-82e8d2cdb90c
aa5a15d1-5891-4bdf-b497-ee4dc413bc82
9c628ab8-eb06-432f-9106-01dfe77bd250
053b49ad-2770-4d22-9e73-451df95ce607

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: