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)

019c107b-d515-750f-83af-4ad6faa0b819
019c107b-d515-7782-96b1-5b6d0c8c190a
019c107b-d515-790f-b3b1-4085f33c229e
019c107b-d515-7a7f-b41a-7345c63cb9fd
019c107b-d515-7bf0-b0da-5011b844932d
019c107b-d515-7d61-877e-ca8f98468c9b
019c107b-d515-7ecd-9052-68d094be9283
019c107b-d516-7036-bf84-08bfafa3a931
019c107b-d516-71a2-946c-c0f41cda9939
019c107b-d516-730f-b11e-9586727ad206
019c107b-d516-747f-891b-9970bde18a68
019c107b-d516-75ec-9f92-00d06e641342
019c107b-d516-7765-91d7-82462afd9860
019c107b-d516-78d5-afcf-33f3235bd6e1
019c107b-d516-7a42-bf99-2b31001d52ff

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)

1f0fe15f-8b50-6956-8516-4cf95d479851
1f0fe15f-8b50-6c12-8516-4cf95d479851
1f0fe15f-8b50-6df2-8516-4cf95d479851
1f0fe15f-8b50-6f96-8516-4cf95d479851
1f0fe15f-8b51-6126-8516-4cf95d479851
1f0fe15f-8b51-62b6-8516-4cf95d479851
1f0fe15f-8b51-643c-8516-4cf95d479851
1f0fe15f-8b51-65cc-8516-4cf95d479851
1f0fe15f-8b51-6752-8516-4cf95d479851
1f0fe15f-8b51-68d8-8516-4cf95d479851
1f0fe15f-8b51-6b12-8516-4cf95d479851
1f0fe15f-8b51-6cc0-8516-4cf95d479851
1f0fe15f-8b51-6e46-8516-4cf95d479851
1f0fe15f-8b51-6fcc-8516-4cf95d479851
1f0fe15f-8b52-61e8-8516-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)

aa4c563f-3a2d-4fac-91d5-da01013df353
5b8e7b8c-a17c-4351-9d8d-696e725381af
c318a5db-583a-456d-b48f-efe97d7bf7b7
1a49def0-a5a6-46f1-9f96-d1c121a72ec8
e792707f-e3ff-47bf-9cd3-26c4121b2691
9622557b-ab28-4f11-869b-d400aaad88fa
3cfad39e-7aef-4c03-9544-7d5112a61965
73d8edb3-7eaf-4ec7-910a-cb6fda47266c
04e71a3d-3bf5-4757-a4a2-064748c05acb
fd066e33-c39e-4d83-8d93-050e0d5d81e7
300a3f92-2c8a-4113-969a-9b7b6a1e30bb
5dcb219b-8209-40d0-b0b9-46001b0f0680
eafb4ced-3bc7-4b34-95c9-a9615f49de60
74ca801d-2dde-411b-99be-2d1299749017
d21c0591-fdf6-48f8-948d-7be2cee9093d

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)

f8b52968-fe15-11f0-8516-4cf95d479851
f8b52a12-fe15-11f0-8516-4cf95d479851
f8b52aa8-fe15-11f0-8516-4cf95d479851
f8b52b48-fe15-11f0-8516-4cf95d479851
f8b52bde-fe15-11f0-8516-4cf95d479851
f8b52c7e-fe15-11f0-8516-4cf95d479851
f8b52d28-fe15-11f0-8516-4cf95d479851
f8b52dc8-fe15-11f0-8516-4cf95d479851
f8b52e68-fe15-11f0-8516-4cf95d479851
f8b52efe-fe15-11f0-8516-4cf95d479851
f8b52f9e-fe15-11f0-8516-4cf95d479851
f8b53048-fe15-11f0-8516-4cf95d479851
f8b530e8-fe15-11f0-8516-4cf95d479851
f8b5317e-fe15-11f0-8516-4cf95d479851
f8b53214-fe15-11f0-8516-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)

c5dae238-ae04-8e01-87ea-5ce32bd83b97
8ce0e438-ae04-8e01-87ea-5ce32bd83b97
0256e538-ae04-8e01-87ea-5ce32bd83b97
31d3e638-ae04-8e01-87ea-5ce32bd83b97
a5c4e738-ae04-8e01-87ea-5ce32bd83b97
1a4fe838-ae04-8e01-87ea-5ce32bd83b97
77ede938-ae04-8e01-87ea-5ce32bd83b97
4b18ea38-ae04-8e01-87ea-5ce32bd83b97
ed97eb38-ae04-8e01-87ea-5ce32bd83b97
ae99ec38-ae04-8e01-87ea-5ce32bd83b97
7ef8ed38-ae04-8e01-87ea-5ce32bd83b97
844fee38-ae04-8e01-87ea-5ce32bd83b97
f6d1ef38-ae04-8e01-87ea-5ce32bd83b97
7be6f038-ae04-8e01-87ea-5ce32bd83b97
7c45f138-ae04-8e01-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: