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)

019bc759-135f-7cea-bf86-f0d5a8752a46
019bc759-135f-7ec9-b6bd-73dfa1315291
019bc759-135f-700d-a1cf-c4da1e000f0d
019bc759-1360-7130-af02-a7ec7a101838
019bc759-1360-724e-a01b-0a022ab1b0d4
019bc759-1360-7369-902a-aa95dcd146b6
019bc759-1360-7484-80eb-93ced87432fe
019bc759-1360-75aa-952f-058ead23cf1c
019bc759-1360-76c5-890b-601f583c7bb7
019bc759-1360-77e0-bc63-2db052861aad
019bc759-1360-78fa-b113-7d9dc8538830
019bc759-1360-7a11-8a63-897468af5247
019bc759-1360-7b2c-bc7b-ddf90b06ab01
019bc759-1360-7c46-a819-b879db304f29
019bc759-1360-7d65-a7ec-b975b3e8e059

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)

1f0f2ed1-b063-6acc-8727-4cf95d479851
1f0f2ed1-b063-6c70-8727-4cf95d479851
1f0f2ed1-b063-6d60-8727-4cf95d479851
1f0f2ed1-b063-6e32-8727-4cf95d479851
1f0f2ed1-b063-6f04-8727-4cf95d479851
1f0f2ed1-b063-6fcc-8727-4cf95d479851
1f0f2ed1-b064-609e-8727-4cf95d479851
1f0f2ed1-b064-6166-8727-4cf95d479851
1f0f2ed1-b064-622e-8727-4cf95d479851
1f0f2ed1-b064-62f6-8727-4cf95d479851
1f0f2ed1-b064-6436-8727-4cf95d479851
1f0f2ed1-b064-6508-8727-4cf95d479851
1f0f2ed1-b064-65c6-8727-4cf95d479851
1f0f2ed1-b064-6684-8727-4cf95d479851
1f0f2ed1-b064-674c-8727-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)

488ba79c-0420-47e6-82c5-da41ca70b0df
705d31ef-275b-4940-90c6-1e21704bc63f
69eb7635-b7ce-4cc7-9379-738c6774d9f0
573306c1-8c29-4d8b-b559-349d1e5b1dc7
461e25b8-3442-4ea5-9f8e-97bfe059d3b5
e17d7080-4025-426b-bbc4-e293bc1f3a87
874f6227-4cc2-4396-bfc8-796650050170
665bdbb6-18bc-4032-87f3-ab976578efec
79c65ce9-bb7c-49ab-8209-687f837b9d13
c6f3f4b3-7256-4758-892c-4c5aa71c1d2c
86150192-9eb7-48da-8a85-4027e2368668
d305cbe9-0f80-41fe-863c-8ef11da334ed
c001db31-2b67-4c07-972b-2b0f897d7384
c7c1332c-874b-4c06-a1b5-17ac3aed1961
bb363e96-57a4-4801-9500-0266d741a53a

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)

1b064c7e-f2ed-11f0-8727-4cf95d479851
1b064ce2-f2ed-11f0-8727-4cf95d479851
1b064d46-f2ed-11f0-8727-4cf95d479851
1b064da0-f2ed-11f0-8727-4cf95d479851
1b064dfa-f2ed-11f0-8727-4cf95d479851
1b064e54-f2ed-11f0-8727-4cf95d479851
1b064eb8-f2ed-11f0-8727-4cf95d479851
1b064f1c-f2ed-11f0-8727-4cf95d479851
1b064f76-f2ed-11f0-8727-4cf95d479851
1b064fd0-f2ed-11f0-8727-4cf95d479851
1b065034-f2ed-11f0-8727-4cf95d479851
1b06508e-f2ed-11f0-8727-4cf95d479851
1b0650e8-f2ed-11f0-8727-4cf95d479851
1b06514c-f2ed-11f0-8727-4cf95d479851
1b0651a6-f2ed-11f0-8727-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)

5b0e4e2a-8c03-8001-87ea-5ce32bd83b97
b6ee4f2a-8c03-8001-87ea-5ce32bd83b97
1ed1502a-8c03-8001-87ea-5ce32bd83b97
c82a512a-8c03-8001-87ea-5ce32bd83b97
c442522a-8c03-8001-87ea-5ce32bd83b97
21e0532a-8c03-8001-87ea-5ce32bd83b97
2e8e542a-8c03-8001-87ea-5ce32bd83b97
782c552a-8c03-8001-87ea-5ce32bd83b97
81ea562a-8c03-8001-87ea-5ce32bd83b97
369a572a-8c03-8001-87ea-5ce32bd83b97
0ad4582a-8c03-8001-87ea-5ce32bd83b97
1471592a-8c03-8001-87ea-5ce32bd83b97
dc2e5a2a-8c03-8001-87ea-5ce32bd83b97
f40b5b2a-8c03-8001-87ea-5ce32bd83b97
5f1b5c2a-8c03-8001-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: