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)

019f402b-32ba-7863-8bea-afb420c63aad
019f402b-32ba-7a52-9b86-8464b239a2f5
019f402b-32ba-7b92-9567-bf783f08e7b9
019f402b-32ba-7cad-802d-47dbdc33ae4f
019f402b-32ba-7dc7-8a90-bfbe6b091631
019f402b-32ba-7eda-8c8b-4c7862828d1f
019f402b-32ba-7ff0-9ac3-65a247469562
019f402b-32bb-710f-bddf-7a61ff9c56ab
019f402b-32bb-7225-a184-7b54c7678fab
019f402b-32bb-7338-b0f0-a1af61c2597e
019f402b-32bb-744a-aed6-1df32349d762
019f402b-32bb-755d-b8cd-f51ab0702c0a
019f402b-32bb-7673-91ba-0b7b8f96ac00
019f402b-32bb-778a-8fd6-71d6dcf827e9
019f402b-32bb-789c-ae9c-60633e1a0e77

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)

1f17a8ca-aef0-63a4-a2fa-4cf95d479851
1f17a8ca-aef0-6566-a2fa-4cf95d479851
1f17a8ca-aef0-6656-a2fa-4cf95d479851
1f17a8ca-aef0-671e-a2fa-4cf95d479851
1f17a8ca-aef0-67dc-a2fa-4cf95d479851
1f17a8ca-aef0-689a-a2fa-4cf95d479851
1f17a8ca-aef0-6958-a2fa-4cf95d479851
1f17a8ca-aef0-6a20-a2fa-4cf95d479851
1f17a8ca-aef0-6ad4-a2fa-4cf95d479851
1f17a8ca-aef0-6b92-a2fa-4cf95d479851
1f17a8ca-aef0-6ce6-a2fa-4cf95d479851
1f17a8ca-aef0-6db8-a2fa-4cf95d479851
1f17a8ca-aef0-6e76-a2fa-4cf95d479851
1f17a8ca-aef0-6f2a-a2fa-4cf95d479851
1f17a8ca-aef0-6fe8-a2fa-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)

aaef10ba-7a8c-11f1-a2fa-4cf95d479851
aaef1128-7a8c-11f1-a2fa-4cf95d479851
aaef1182-7a8c-11f1-a2fa-4cf95d479851
aaef11dc-7a8c-11f1-a2fa-4cf95d479851
aaef124a-7a8c-11f1-a2fa-4cf95d479851
aaef12ae-7a8c-11f1-a2fa-4cf95d479851
aaef1312-7a8c-11f1-a2fa-4cf95d479851
aaef1380-7a8c-11f1-a2fa-4cf95d479851
aaef13da-7a8c-11f1-a2fa-4cf95d479851
aaef143e-7a8c-11f1-a2fa-4cf95d479851
aaef1498-7a8c-11f1-a2fa-4cf95d479851
aaef14fc-7a8c-11f1-a2fa-4cf95d479851
aaef1560-7a8c-11f1-a2fa-4cf95d479851
aaef15c4-7a8c-11f1-a2fa-4cf95d479851
aaef161e-7a8c-11f1-a2fa-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)

79f9b300-4101-8d0b-87ea-5ce32bd83b97
65a9b400-4101-8d0b-87ea-5ce32bd83b97
86c1b500-4101-8d0b-87ea-5ce32bd83b97
5887b600-4101-8d0b-87ea-5ce32bd83b97
96e6b700-4101-8d0b-87ea-5ce32bd83b97
720db800-4101-8d0b-87ea-5ce32bd83b97
a451b900-4101-8d0b-87ea-5ce32bd83b97
fbd0ba00-4101-8d0b-87ea-5ce32bd83b97
012bbb00-4101-8d0b-87ea-5ce32bd83b97
8146bc00-4101-8d0b-87ea-5ce32bd83b97
49e9bd00-4101-8d0b-87ea-5ce32bd83b97
1aafbe00-4101-8d0b-87ea-5ce32bd83b97
0d2ebf00-4101-8d0b-87ea-5ce32bd83b97
41edc000-4101-8d0b-87ea-5ce32bd83b97
a309c100-4101-8d0b-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)

de4d4fc5-5649-4359-b4d8-807a25cde7f9
ec1be74b-40aa-44de-abc6-67632b5caea6
370d411d-960a-4e73-b0d8-ffe7fdc05218
c1b0c3f4-6ef8-43e3-b886-ddb8268b9f0c
af05f658-975f-4d6c-bdd7-25ce03f82f92
e100822f-e60b-4359-a781-367bb3bb4282
9e8168d2-abf5-4203-a0d7-a86ffaa940c3
75d15a81-462e-4c6e-b446-072332a5ca94
01989fbc-1c81-411d-ba5f-dcc12c3a8c90
8f9dce0c-f3cf-4b33-823c-131db6184690
fb6a990f-e7bf-46a0-ab21-a26df0fcd007
778a51c2-d057-4685-8b24-17a34a63bda5
763af201-fdb4-4007-a5c0-54f4e4343a42
a790e561-57cf-45ee-a7cc-a4041deea19f
2ebeaf9f-6b45-4d1e-be47-d106e7e5ec5a

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: