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)

01a0a9fd-a1c4-73e8-9a4f-765eeb6249c4
01a0a9fd-a1c4-75cf-8fe8-e27da8dfb014
01a0a9fd-a1c4-771b-ab13-6db8a13a192b
01a0a9fd-a1c4-7842-881a-4f5c4751f505
01a0a9fd-a1c4-7961-8a23-8bdb06eee2b3
01a0a9fd-a1c4-7a7b-957d-cb9f9f49b864
01a0a9fd-a1c4-7b9a-96ac-c1dd8dc26747
01a0a9fd-a1c4-7cb5-9088-993a80e07822
01a0a9fd-a1c4-7dd3-8ed5-e4b95c2fe1f9
01a0a9fd-a1c4-7ef2-a505-c0f9b0374268
01a0a9fd-a1c5-7011-ab12-06d53adcb439
01a0a9fd-a1c5-7130-ad3a-078e468f9876
01a0a9fd-a1c5-724a-ac81-db504d1a378e
01a0a9fd-a1c5-7365-b8a4-a2e54368b2b2
01a0a9fd-a1c5-73e0-b002-279b9e4dde80

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)

1f1b1c25-7006-6d4c-9938-4cf95d479851
1f1b1c25-7006-6f22-9938-4cf95d479851
1f1b1c25-7007-6008-9938-4cf95d479851
1f1b1c25-7007-60da-9938-4cf95d479851
1f1b1c25-7007-61a2-9938-4cf95d479851
1f1b1c25-7007-6260-9938-4cf95d479851
1f1b1c25-7007-6328-9938-4cf95d479851
1f1b1c25-7007-63e6-9938-4cf95d479851
1f1b1c25-7007-64b8-9938-4cf95d479851
1f1b1c25-7007-6580-9938-4cf95d479851
1f1b1c25-7007-66de-9938-4cf95d479851
1f1b1c25-7007-67b0-9938-4cf95d479851
1f1b1c25-7007-6878-9938-4cf95d479851
1f1b1c25-7007-6940-9938-4cf95d479851
1f1b1c25-7007-69fe-9938-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)

57007ada-b1c2-11f1-9938-4cf95d479851
57007b3e-b1c2-11f1-9938-4cf95d479851
57007ba2-b1c2-11f1-9938-4cf95d479851
57007c06-b1c2-11f1-9938-4cf95d479851
57007c6a-b1c2-11f1-9938-4cf95d479851
57007cc4-b1c2-11f1-9938-4cf95d479851
57007d1e-b1c2-11f1-9938-4cf95d479851
57007d82-b1c2-11f1-9938-4cf95d479851
57007ddc-b1c2-11f1-9938-4cf95d479851
57007e36-b1c2-11f1-9938-4cf95d479851
57007e90-b1c2-11f1-9938-4cf95d479851
57007ee0-b1c2-11f1-9938-4cf95d479851
57007f3a-b1c2-11f1-9938-4cf95d479851
57007f94-b1c2-11f1-9938-4cf95d479851
57007ff8-b1c2-11f1-9938-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)

4b06a92e-b502-8310-87ea-5ce32bd83b97
95f8aa2e-b502-8310-87ea-5ce32bd83b97
1d08ab2e-b502-8310-87ea-5ce32bd83b97
bacbac2e-b502-8310-87ea-5ce32bd83b97
7bb0ad2e-b502-8310-87ea-5ce32bd83b97
7399ae2e-b502-8310-87ea-5ce32bd83b97
58a2af2e-b502-8310-87ea-5ce32bd83b97
b181b02e-b502-8310-87ea-5ce32bd83b97
e457b12e-b502-8310-87ea-5ce32bd83b97
065cb22e-b502-8310-87ea-5ce32bd83b97
2ec6b32e-b502-8310-87ea-5ce32bd83b97
302db42e-b502-8310-87ea-5ce32bd83b97
289ab52e-b502-8310-87ea-5ce32bd83b97
179eb62e-b502-8310-87ea-5ce32bd83b97
03e0b72e-b502-8310-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)

b3ac45f3-453e-4d4d-a761-d8ab205d08fe
0cc90a7a-b8a4-433d-98dc-70a5890fc15e
fe469f1c-855c-4fc2-b58f-74ef1f3811e3
db38dd0d-818e-4deb-a0e5-9412c572e113
701a3126-b038-4a3a-89ba-ec3079d8e6cd
94534f93-671f-442b-bb20-6011b6596f81
78bec2d2-2dd1-41f8-b748-909c9af6de8c
115d0931-f1c4-4b33-91b2-24d86be8c41b
b5badc7a-7b72-4036-93f4-2c6d8ae09b2b
ec67f987-c20b-4944-af00-8fe73ee564cd
7697ae85-5ddd-4dcf-a4e7-1658f69ffd97
070bf117-f2bc-44d7-a640-1fb87ecf8770
0deec12d-891c-4aae-989c-2949cd9afc3b
44bd30f2-6396-4bcf-a500-238303f92813
50e3c7cb-3a1a-42d6-9d4f-8e25bd0b18b2

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: