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)

01a230f6-96ca-7cc1-9bf3-489b87e5cf9f
01a230f6-96ca-7e77-a2f3-beb7dde24803
01a230f6-96ca-7021-bfc8-f21edeb7e0aa
01a230f6-96cb-7182-9c0b-244909a8c047
01a230f6-96cb-72ad-be8f-0f41715deea1
01a230f6-96cb-73cb-9edd-8b5e420cdb2b
01a230f6-96cb-74ee-8dcb-ddaa99a3da9b
01a230f6-96cb-760d-92d3-9dd2cffb6e70
01a230f6-96cb-7730-9d78-b31b2128c380
01a230f6-96cb-784e-89a8-809b484ee828
01a230f6-96cb-796d-a9a3-ffd9e1698a38
01a230f6-96cb-7a8c-be6f-0ff40dada9d5
01a230f6-96cb-7baa-8df0-5c3590e8acae
01a230f6-96cb-7ccd-819d-86e7cb46f8bb
01a230f6-96cb-7df0-a6f1-c8fd15a96aba

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)

1f1ed6ab-3e3c-6278-abb2-4cf95d479851
1f1ed6ab-3e3c-64a8-abb2-4cf95d479851
1f1ed6ab-3e3c-65a2-abb2-4cf95d479851
1f1ed6ab-3e3c-6674-abb2-4cf95d479851
1f1ed6ab-3e3c-6746-abb2-4cf95d479851
1f1ed6ab-3e3c-680e-abb2-4cf95d479851
1f1ed6ab-3e3c-68d6-abb2-4cf95d479851
1f1ed6ab-3e3c-699e-abb2-4cf95d479851
1f1ed6ab-3e3c-6a5c-abb2-4cf95d479851
1f1ed6ab-3e3c-6b24-abb2-4cf95d479851
1f1ed6ab-3e3c-6ca0-abb2-4cf95d479851
1f1ed6ab-3e3c-6d72-abb2-4cf95d479851
1f1ed6ab-3e3c-6e30-abb2-4cf95d479851
1f1ed6ab-3e3c-6ef8-abb2-4cf95d479851
1f1ed6ab-3e3c-6fb6-abb2-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)

b3e3d09c-ed6a-11f1-abb2-4cf95d479851
b3e3d10a-ed6a-11f1-abb2-4cf95d479851
b3e3d16e-ed6a-11f1-abb2-4cf95d479851
b3e3d1dc-ed6a-11f1-abb2-4cf95d479851
b3e3d240-ed6a-11f1-abb2-4cf95d479851
b3e3d2ae-ed6a-11f1-abb2-4cf95d479851
b3e3d31c-ed6a-11f1-abb2-4cf95d479851
b3e3d380-ed6a-11f1-abb2-4cf95d479851
b3e3d3e4-ed6a-11f1-abb2-4cf95d479851
b3e3d43e-ed6a-11f1-abb2-4cf95d479851
b3e3d4a2-ed6a-11f1-abb2-4cf95d479851
b3e3d510-ed6a-11f1-abb2-4cf95d479851
b3e3d574-ed6a-11f1-abb2-4cf95d479851
b3e3d5ce-ed6a-11f1-abb2-4cf95d479851
b3e3d632-ed6a-11f1-abb2-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)

27c38e24-4102-8f14-87ea-5ce32bd83b97
41a98f24-4102-8f14-87ea-5ce32bd83b97
6dc19024-4102-8f14-87ea-5ce32bd83b97
5e749124-4102-8f14-87ea-5ce32bd83b97
bf389224-4102-8f14-87ea-5ce32bd83b97
c59a9324-4102-8f14-87ea-5ce32bd83b97
e76d9424-4102-8f14-87ea-5ce32bd83b97
74949524-4102-8f14-87ea-5ce32bd83b97
ac0a9624-4102-8f14-87ea-5ce32bd83b97
407b9724-4102-8f14-87ea-5ce32bd83b97
d0169824-4102-8f14-87ea-5ce32bd83b97
dce79a24-4102-8f14-87ea-5ce32bd83b97
96689b24-4102-8f14-87ea-5ce32bd83b97
59f49c24-4102-8f14-87ea-5ce32bd83b97
c6a59d24-4102-8f14-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)

dbeb2331-c299-47c8-9e77-f61e38ae7266
fbdc387d-2d2e-4464-b706-8c018f5aa7d1
b6be3740-7706-43fa-8bb3-2990cee91a50
dee43f1a-e989-4edc-983d-4b8f75d877dd
f67b6394-952c-4065-b0f6-84f612edfab0
be33d475-ea34-4554-be4a-c0a60dc82f2b
65bd2a13-9118-4c52-8e47-318ef59a8b0a
ac007f74-f4ce-46a9-bd27-980e564da9af
0154fbfe-723a-4a5b-9358-76c140158794
4f410dc8-9c74-4804-b217-13dcdbfd5032
25dbc893-8b72-4e44-a25d-b40ca47c83c1
9564c923-a4d2-4d7f-8d30-dffafa46a4bf
2a4ef468-7b9d-465d-b1ae-61b31ada107a
bd9e1a23-aece-4384-b1d6-f96d74277e78
c67a9f73-f8b8-4d31-96da-19e253eb8017

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: