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)

01a03a0a-aaf1-7d5d-b56e-06f4a75280fd
01a03a0a-aaf1-7f34-907d-5b28db1bded2
01a03a0a-aaf2-706f-86b6-abba9d1437aa
01a03a0a-aaf2-718a-95b1-1ffb534f83d9
01a03a0a-aaf2-72a0-b946-ed6d8a992160
01a03a0a-aaf2-73b3-9afa-aa05e9a4af8d
01a03a0a-aaf2-74c5-9969-ce70eddab024
01a03a0a-aaf2-75d8-b5dc-6d3cbba3fa0a
01a03a0a-aaf2-76ea-aa0c-879652d0652e
01a03a0a-aaf2-77fc-809e-dacf82947533
01a03a0a-aaf2-790b-b60c-4f0fd5b7fcd4
01a03a0a-aaf2-7a1d-b0a8-e496d9f03fb0
01a03a0a-aaf2-7b30-a1f8-d38a03e97d3a
01a03a0a-aaf2-7c4a-9ce5-284587f1ee62
01a03a0a-aaf2-7d61-9e12-94ee0f244684

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)

1f1a0ad5-436f-620a-9beb-4cf95d479851
1f1a0ad5-436f-63c2-9beb-4cf95d479851
1f1a0ad5-436f-64b2-9beb-4cf95d479851
1f1a0ad5-436f-6598-9beb-4cf95d479851
1f1a0ad5-436f-6660-9beb-4cf95d479851
1f1a0ad5-436f-6732-9beb-4cf95d479851
1f1a0ad5-436f-67fa-9beb-4cf95d479851
1f1a0ad5-436f-68c2-9beb-4cf95d479851
1f1a0ad5-436f-69a8-9beb-4cf95d479851
1f1a0ad5-436f-6ade-9beb-4cf95d479851
1f1a0ad5-436f-6c64-9beb-4cf95d479851
1f1a0ad5-436f-6d40-9beb-4cf95d479851
1f1a0ad5-436f-6e08-9beb-4cf95d479851
1f1a0ad5-436f-6ed0-9beb-4cf95d479851
1f1a0ad5-436f-6f8e-9beb-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)

5437006a-a0ad-11f1-9beb-4cf95d479851
543700d8-a0ad-11f1-9beb-4cf95d479851
54370132-a0ad-11f1-9beb-4cf95d479851
543701a0-a0ad-11f1-9beb-4cf95d479851
54370204-a0ad-11f1-9beb-4cf95d479851
54370272-a0ad-11f1-9beb-4cf95d479851
543702d6-a0ad-11f1-9beb-4cf95d479851
54370330-a0ad-11f1-9beb-4cf95d479851
5437039e-a0ad-11f1-9beb-4cf95d479851
543703f8-a0ad-11f1-9beb-4cf95d479851
54370452-a0ad-11f1-9beb-4cf95d479851
543704b6-a0ad-11f1-9beb-4cf95d479851
54370510-a0ad-11f1-9beb-4cf95d479851
5437057e-a0ad-11f1-9beb-4cf95d479851
543705e2-a0ad-11f1-9beb-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)

c501c920-2e04-8d0e-87ea-5ce32bd83b97
d858ca20-2e04-8d0e-87ea-5ce32bd83b97
c7d3cb20-2e04-8d0e-87ea-5ce32bd83b97
a8a0cc20-2e04-8d0e-87ea-5ce32bd83b97
92bfcd20-2e04-8d0e-87ea-5ce32bd83b97
1618ce20-2e04-8d0e-87ea-5ce32bd83b97
d7a1cf20-2e04-8d0e-87ea-5ce32bd83b97
2525d020-2e04-8d0e-87ea-5ce32bd83b97
4d30d120-2e04-8d0e-87ea-5ce32bd83b97
7aedd220-2e04-8d0e-87ea-5ce32bd83b97
56bdd320-2e04-8d0e-87ea-5ce32bd83b97
8268d420-2e04-8d0e-87ea-5ce32bd83b97
a4b7d520-2e04-8d0e-87ea-5ce32bd83b97
d268d620-2e04-8d0e-87ea-5ce32bd83b97
659fd720-2e04-8d0e-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)

61331259-0385-4139-8044-8a8dbaad51e0
bac9c5d8-1619-42ce-947c-76d4a0ede46e
3c10cd89-3494-4ae9-8847-06b0da9c93c9
4465f2e9-68c6-413f-8b51-71de0d5d945b
a20975f5-06cb-4d2b-8a67-7dff822a944c
4729fc0e-2743-4de5-9ee1-8646266dabdc
9e6bb322-80cf-42c6-be52-feba63be9fd6
f6932618-9da7-40d5-a6fe-2f492f674024
922d955a-17c1-4a9d-9700-7f9dd0bd3871
06608132-5303-43cb-ad72-71ee1e0838be
e2099060-7e8c-48f2-9f79-895c2be82fae
1adbcefa-bfd1-48a6-907f-23e4527c67ea
d0ebd5be-e9a8-4ec1-ba99-e6d5556bd220
2655bd2c-5753-42b5-917d-ceb77e4cd17d
1f93a680-17bc-40f6-8ce0-b11b13b0035c

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: