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)

019e9f5a-57d0-79f4-9dc8-af1d5d711a8a
019e9f5a-57d0-7b9e-afe3-315c2f334650
019e9f5a-57d0-7cda-b078-bc2512b29f7b
019e9f5a-57d0-7df8-80bc-a70b7007f205
019e9f5a-57d0-7f0f-a227-e5a6bad67d36
019e9f5a-57d1-7025-ba0a-8857e8e27e43
019e9f5a-57d1-7140-b030-5fc58ef16c9a
019e9f5a-57d1-7257-8386-926b76d1f0e9
019e9f5a-57d1-7369-a741-166118820dd1
019e9f5a-57d1-747f-a2a6-5bcc2d7d268e
019e9f5a-57d1-7592-9cca-759713266a27
019e9f5a-57d1-76a8-90a2-851dd86731ce
019e9f5a-57d1-77bb-b3f4-a7d15d79ee23
019e9f5a-57d1-78d1-b5bf-f44f31196d27
019e9f5a-57d1-79e8-8a2e-a34ccad8933a

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)

1f16202c-c87b-624c-8eca-4cf95d479851
1f16202c-c87b-6404-8eca-4cf95d479851
1f16202c-c87b-64f4-8eca-4cf95d479851
1f16202c-c87b-65c6-8eca-4cf95d479851
1f16202c-c87b-668e-8eca-4cf95d479851
1f16202c-c87b-6760-8eca-4cf95d479851
1f16202c-c87b-6828-8eca-4cf95d479851
1f16202c-c87b-68f0-8eca-4cf95d479851
1f16202c-c87b-69b8-8eca-4cf95d479851
1f16202c-c87b-6a80-8eca-4cf95d479851
1f16202c-c87b-6bd4-8eca-4cf95d479851
1f16202c-c87b-6cb0-8eca-4cf95d479851
1f16202c-c87b-6d82-8eca-4cf95d479851
1f16202c-c87b-6e4a-8eca-4cf95d479851
1f16202c-c87b-6f12-8eca-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)

cc87bfee-6202-11f1-8eca-4cf95d479851
cc87c05c-6202-11f1-8eca-4cf95d479851
cc87c0c0-6202-11f1-8eca-4cf95d479851
cc87c124-6202-11f1-8eca-4cf95d479851
cc87c192-6202-11f1-8eca-4cf95d479851
cc87c200-6202-11f1-8eca-4cf95d479851
cc87c264-6202-11f1-8eca-4cf95d479851
cc87c2c8-6202-11f1-8eca-4cf95d479851
cc87c336-6202-11f1-8eca-4cf95d479851
cc87c39a-6202-11f1-8eca-4cf95d479851
cc87c3fe-6202-11f1-8eca-4cf95d479851
cc87c462-6202-11f1-8eca-4cf95d479851
cc87c4c6-6202-11f1-8eca-4cf95d479851
cc87c52a-6202-11f1-8eca-4cf95d479851
cc87c58e-6202-11f1-8eca-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)

05219c26-9905-8d09-87ea-5ce32bd83b97
40e59d26-9905-8d09-87ea-5ce32bd83b97
8cfd9e26-9905-8d09-87ea-5ce32bd83b97
bbf89f26-9905-8d09-87ea-5ce32bd83b97
86eea026-9905-8d09-87ea-5ce32bd83b97
8025a126-9905-8d09-87ea-5ce32bd83b97
1736a226-9905-8d09-87ea-5ce32bd83b97
ad46a326-9905-8d09-87ea-5ce32bd83b97
7cfaa426-9905-8d09-87ea-5ce32bd83b97
5982a526-9905-8d09-87ea-5ce32bd83b97
6976a626-9905-8d09-87ea-5ce32bd83b97
8fbba726-9905-8d09-87ea-5ce32bd83b97
15a2a826-9905-8d09-87ea-5ce32bd83b97
0f75a926-9905-8d09-87ea-5ce32bd83b97
76dcaa26-9905-8d09-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)

554bfff5-e8d0-4408-9822-9e829517fbff
d0d7a1e9-a1c7-43f9-a279-d27050ed9ab0
a9e812c6-41ab-4540-ab5e-b5c1915e8a32
a748312c-a91f-4773-9096-88f42e156d01
3ef11b28-62f0-4975-a27a-2ea7f1be47f9
ae0db72a-b1eb-4e45-ac01-8ae1bbeb72ea
76f87a52-7a93-4358-85d1-ffb02d81a19d
d138f02f-bbb7-4868-9e32-914fd712da0c
b73c7e3c-5716-4579-867c-c5112fc0d4a8
22dbe5ed-b04e-4ede-b3a4-401e1c811723
b8c702e7-c8c4-4bbd-b7cf-d7f0ffe5c721
a9fe80bc-dcb8-484a-8b2b-3169f07a658b
c71dafc5-b3b2-48ed-bbae-4d6e2b132346
e4a661cf-05ca-41b7-9164-6658df7b6fd9
6ec32713-db1a-4185-ae69-f480853d7036

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: