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)

01a21b42-45e4-723a-94e6-acdf47764924
01a21b42-45e4-73af-ae69-ffd8fdd5ceae
01a21b42-45e4-74e6-87e2-c1b7b0887fce
01a21b42-45e4-7600-93a8-0fa211b6bec4
01a21b42-45e4-7717-9d51-c5d5efccd786
01a21b42-45e4-7832-87e4-19d3e87e76ee
01a21b42-45e4-7948-b573-8dd6189df1f6
01a21b42-45e4-7a5f-8100-0b4632c1933f
01a21b42-45e4-7b71-a33a-33004c6a53d6
01a21b42-45e4-7c84-bc6e-7364ef159605
01a21b42-45e4-7d96-86d2-af6b735e88e5
01a21b42-45e4-7ed5-8e76-5b07e1cc5b37
01a21b42-45e5-7011-9f25-0a364d952cd9
01a21b42-45e5-712c-831c-9aaf45bffe8b
01a21b42-45e5-723e-bba3-4d00d2c4a719

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)

1f1ea1ae-04b8-6b28-9ad7-4cf95d479851
1f1ea1ae-04b8-6cea-9ad7-4cf95d479851
1f1ea1ae-04b8-6dda-9ad7-4cf95d479851
1f1ea1ae-04b8-6eb6-9ad7-4cf95d479851
1f1ea1ae-04b8-6f88-9ad7-4cf95d479851
1f1ea1ae-04b9-6050-9ad7-4cf95d479851
1f1ea1ae-04b9-6118-9ad7-4cf95d479851
1f1ea1ae-04b9-61e0-9ad7-4cf95d479851
1f1ea1ae-04b9-62b2-9ad7-4cf95d479851
1f1ea1ae-04b9-637a-9ad7-4cf95d479851
1f1ea1ae-04b9-64d8-9ad7-4cf95d479851
1f1ea1ae-04b9-65a0-9ad7-4cf95d479851
1f1ea1ae-04b9-6672-9ad7-4cf95d479851
1f1ea1ae-04b9-673a-9ad7-4cf95d479851
1f1ea1ae-04b9-6802-9ad7-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)

e04b98e8-ea1a-11f1-9ad7-4cf95d479851
e04b9956-ea1a-11f1-9ad7-4cf95d479851
e04b99c4-ea1a-11f1-9ad7-4cf95d479851
e04b9a32-ea1a-11f1-9ad7-4cf95d479851
e04b9a96-ea1a-11f1-9ad7-4cf95d479851
e04b9af0-ea1a-11f1-9ad7-4cf95d479851
e04b9b5e-ea1a-11f1-9ad7-4cf95d479851
e04b9bc2-ea1a-11f1-9ad7-4cf95d479851
e04b9c26-ea1a-11f1-9ad7-4cf95d479851
e04b9c8a-ea1a-11f1-9ad7-4cf95d479851
e04b9cee-ea1a-11f1-9ad7-4cf95d479851
e04b9d52-ea1a-11f1-9ad7-4cf95d479851
e04b9db6-ea1a-11f1-9ad7-4cf95d479851
e04b9e1a-ea1a-11f1-9ad7-4cf95d479851
e04b9e74-ea1a-11f1-9ad7-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)

4fc7d425-0c01-8b14-87ea-5ce32bd83b97
6cd8d525-0c01-8b14-87ea-5ce32bd83b97
9ac0d625-0c01-8b14-87ea-5ce32bd83b97
9c9bd725-0c01-8b14-87ea-5ce32bd83b97
82efd825-0c01-8b14-87ea-5ce32bd83b97
b861d925-0c01-8b14-87ea-5ce32bd83b97
9758da25-0c01-8b14-87ea-5ce32bd83b97
5a14db25-0c01-8b14-87ea-5ce32bd83b97
add0dc25-0c01-8b14-87ea-5ce32bd83b97
7304dd25-0c01-8b14-87ea-5ce32bd83b97
de0bde25-0c01-8b14-87ea-5ce32bd83b97
4531df25-0c01-8b14-87ea-5ce32bd83b97
2abbe025-0c01-8b14-87ea-5ce32bd83b97
e6c0e125-0c01-8b14-87ea-5ce32bd83b97
4d21e225-0c01-8b14-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)

966f957f-4036-4dbb-bd40-3d95518c3969
a5731881-40fc-4208-b6e3-6d9abfc85c62
8ad43b31-a90d-4cd0-a421-2c7e46971955
26084036-50d4-4a2c-9ef2-953c4325efa5
1a633091-bdfe-4a3c-806c-5caa2f06e932
8a084540-48e1-4a38-99e9-e7fa731b3093
90bc036b-e4df-4670-b63b-9cc15fc97011
92a8e50a-951a-4c29-867c-5f83eac02507
2280ac70-1d57-4f9d-a6e8-a6648ab5db4b
fcfdf59e-c095-44da-a77f-d0a45cd4a000
bb7630f0-de0f-4593-b525-5214c729b05d
60f9dde0-da99-4ba1-aab1-81e602c3378a
6b8ef98f-6f78-4c21-8aaa-4c17e3c274c7
f73e83db-3c19-41d1-92ee-7fa55c639a99
b13ceda1-b87d-45e3-8e36-2bffbd96ccda

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: