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)

019beb5e-cf8e-785f-bd7f-fda1e5f00ee4
019beb5e-cf8e-79fc-9049-085b412b62e3
019beb5e-cf8e-7b40-9951-5e670e4044e1
019beb5e-cf8e-7c67-bafc-05fd0beab0ae
019beb5e-cf8e-7d8a-8c89-4a3cac6eac5a
019beb5e-cf8e-7ea8-b393-1391f9282ccf
019beb5e-cf8e-7fc3-bafc-cc8a01d20c02
019beb5e-cf8f-70de-9840-d2673f7bc65b
019beb5e-cf8f-71fc-b2e5-0d0e8c35a943
019beb5e-cf8f-731b-ab9c-49dfe4cce23e
019beb5e-cf8f-7436-91c2-bb5605d0cf5c
019beb5e-cf8f-7550-ada9-852f4a61044d
019beb5e-cf8f-766b-b033-5052b708a98b
019beb5e-cf8f-778a-bfa1-8f196d6af3fe
019beb5e-cf8f-78a4-8cbf-47a84212eee2

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)

1f0f86c3-b0d1-6ae6-8b71-4cf95d479851
1f0f86c3-b0d1-6c8a-8b71-4cf95d479851
1f0f86c3-b0d1-6d70-8b71-4cf95d479851
1f0f86c3-b0d1-6e42-8b71-4cf95d479851
1f0f86c3-b0d1-6f0a-8b71-4cf95d479851
1f0f86c3-b0d1-6fd2-8b71-4cf95d479851
1f0f86c3-b0d2-609a-8b71-4cf95d479851
1f0f86c3-b0d2-6158-8b71-4cf95d479851
1f0f86c3-b0d2-62c0-8b71-4cf95d479851
1f0f86c3-b0d2-63a6-8b71-4cf95d479851
1f0f86c3-b0d2-64e6-8b71-4cf95d479851
1f0f86c3-b0d2-65b8-8b71-4cf95d479851
1f0f86c3-b0d2-6680-8b71-4cf95d479851
1f0f86c3-b0d2-673e-8b71-4cf95d479851
1f0f86c3-b0d2-6806-8b71-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)

d7cf0879-cc04-4cf2-9b9a-c2e99d68cb0c
11710d2d-f557-4645-a018-dba1437b4b8c
bb941b70-185b-4fa3-a8c6-bff7f979e35c
a4bfa741-9656-42d6-aeb3-1fa76f531ae4
8affc9ea-0813-4fdc-aa67-94e35872ff2a
569abe18-1839-4d91-b84d-e299e1d17b3e
a3eb0e56-ba25-4f41-bc44-3e2c1be55a1b
efda6933-8910-48ce-bc06-632ce0988fd8
495671da-76ad-4b79-b131-da1200198390
8a17b1c5-567d-4073-a0be-c44189bda861
1d7b05e5-d85a-45d6-b2fb-48d8253ed38a
364026aa-3254-461f-896e-3d23f9e75b8e
7b4645ba-880d-4919-97e8-a4e2f6b612f7
8496267c-922a-4dec-a97d-f6b24144f133
3eb54439-18fd-44a7-ba81-fc084326a705

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)

3b0d2d38-f86c-11f0-8b71-4cf95d479851
3b0d2d9c-f86c-11f0-8b71-4cf95d479851
3b0d2e00-f86c-11f0-8b71-4cf95d479851
3b0d2e5a-f86c-11f0-8b71-4cf95d479851
3b0d2ebe-f86c-11f0-8b71-4cf95d479851
3b0d2f22-f86c-11f0-8b71-4cf95d479851
3b0d2f7c-f86c-11f0-8b71-4cf95d479851
3b0d2fd6-f86c-11f0-8b71-4cf95d479851
3b0d303a-f86c-11f0-8b71-4cf95d479851
3b0d3094-f86c-11f0-8b71-4cf95d479851
3b0d30f8-f86c-11f0-8b71-4cf95d479851
3b0d3166-f86c-11f0-8b71-4cf95d479851
3b0d31d4-f86c-11f0-8b71-4cf95d479851
3b0d3238-f86c-11f0-8b71-4cf95d479851
3b0d329c-f86c-11f0-8b71-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)

470eef11-8503-8701-87ea-5ce32bd83b97
ec0bf011-8503-8701-87ea-5ce32bd83b97
cee6f111-8503-8701-87ea-5ce32bd83b97
0a75f211-8503-8701-87ea-5ce32bd83b97
66edf311-8503-8701-87ea-5ce32bd83b97
74d7f411-8503-8701-87ea-5ce32bd83b97
40a1f511-8503-8701-87ea-5ce32bd83b97
7d66f611-8503-8701-87ea-5ce32bd83b97
d1edf711-8503-8701-87ea-5ce32bd83b97
c1eff811-8503-8701-87ea-5ce32bd83b97
c5f4f911-8503-8701-87ea-5ce32bd83b97
6558fa11-8503-8701-87ea-5ce32bd83b97
65ecfb11-8503-8701-87ea-5ce32bd83b97
9345fc11-8503-8701-87ea-5ce32bd83b97
64c7fd11-8503-8701-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: