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)

019f3b93-5e01-7c84-8d52-7bd0d3a51e1b
019f3b93-5e01-7ea4-a060-c9b26045cc1e
019f3b93-5e01-7fec-944a-8c932fccb9ad
019f3b93-5e02-7107-8c96-3510ed2d3067
019f3b93-5e02-7219-97b7-3cb0efd15a93
019f3b93-5e02-732c-b6b7-ecc4399bc174
019f3b93-5e02-743e-960c-84bace2e5658
019f3b93-5e02-754c-a394-a4d4ee6c14e8
019f3b93-5e02-7663-8333-7f3afb53c5ee
019f3b93-5e02-7775-a1e1-0985555ef94f
019f3b93-5e02-77e4-8d84-0c7e0fd46dc3
019f3b93-5e02-78f6-b5be-7c206c1f43e8
019f3b93-5e02-7a0d-bab9-d6dc79f71acf
019f3b93-5e02-7b1f-ae15-b8a8d1fb7595
019f3b93-5e02-7c2e-8e66-01e835285b42

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)

1f179d94-0099-6206-9f90-4cf95d479851
1f179d94-0099-63dc-9f90-4cf95d479851
1f179d94-0099-64b8-9f90-4cf95d479851
1f179d94-0099-6580-9f90-4cf95d479851
1f179d94-0099-6648-9f90-4cf95d479851
1f179d94-0099-6706-9f90-4cf95d479851
1f179d94-0099-67c4-9f90-4cf95d479851
1f179d94-0099-6882-9f90-4cf95d479851
1f179d94-0099-6940-9f90-4cf95d479851
1f179d94-0099-69fe-9f90-4cf95d479851
1f179d94-0099-6b7a-9f90-4cf95d479851
1f179d94-0099-6cce-9f90-4cf95d479851
1f179d94-0099-6dfa-9f90-4cf95d479851
1f179d94-0099-6ed6-9f90-4cf95d479851
1f179d94-0099-6f94-9f90-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)

4009a066-79d9-11f1-9f90-4cf95d479851
4009a0ca-79d9-11f1-9f90-4cf95d479851
4009a12e-79d9-11f1-9f90-4cf95d479851
4009a192-79d9-11f1-9f90-4cf95d479851
4009a1ec-79d9-11f1-9f90-4cf95d479851
4009a250-79d9-11f1-9f90-4cf95d479851
4009a2b4-79d9-11f1-9f90-4cf95d479851
4009a318-79d9-11f1-9f90-4cf95d479851
4009a372-79d9-11f1-9f90-4cf95d479851
4009a3d6-79d9-11f1-9f90-4cf95d479851
4009a43a-79d9-11f1-9f90-4cf95d479851
4009a4a8-79d9-11f1-9f90-4cf95d479851
4009a520-79d9-11f1-9f90-4cf95d479851
4009a584-79d9-11f1-9f90-4cf95d479851
4009a5e8-79d9-11f1-9f90-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)

11f47129-dc01-8c0b-87ea-5ce32bd83b97
71a27229-dc01-8c0b-87ea-5ce32bd83b97
b12a7329-dc01-8c0b-87ea-5ce32bd83b97
7a157429-dc01-8c0b-87ea-5ce32bd83b97
56117529-dc01-8c0b-87ea-5ce32bd83b97
dd6e7629-dc01-8c0b-87ea-5ce32bd83b97
97ea7729-dc01-8c0b-87ea-5ce32bd83b97
7f6e7829-dc01-8c0b-87ea-5ce32bd83b97
e33c7a29-dc01-8c0b-87ea-5ce32bd83b97
e8167b29-dc01-8c0b-87ea-5ce32bd83b97
0bc67c29-dc01-8c0b-87ea-5ce32bd83b97
69567d29-dc01-8c0b-87ea-5ce32bd83b97
07527e29-dc01-8c0b-87ea-5ce32bd83b97
24fb7f29-dc01-8c0b-87ea-5ce32bd83b97
4ef88029-dc01-8c0b-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)

0187a7bb-ea7d-4830-98a4-3a4ef91f4c4b
59f3523e-6cd6-4fab-bdcf-7fd0f8308ff8
2dd7a027-308e-4523-9641-45b04eeebe49
9fe09e3d-0d6e-46d2-8915-b8dc9798aeff
5c649388-d003-4ee6-95d6-6ec19a58af2f
7fc431b2-b404-4cb4-afcd-d42dc76d9dff
9d3e3064-ce3e-478a-8eab-006c6d26db2c
9eec0272-629f-4276-8e28-8ae347a9350f
7b728558-5b7e-44b3-bf7d-c555584daa0c
4bc0b615-561d-436c-a030-3407ab682fee
a1571f83-c0c4-4a64-84d3-f5bbaf299012
13abafdc-843b-4f13-983d-451e9a734588
656327ad-d0ee-45dd-8f87-41b89218262b
91a2473d-5f32-42c8-b56b-b81f63467620
d561434f-79f2-45a2-a629-35c192bf7df1

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: