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)

019e8f8f-5b47-79b3-ae5f-7a200d2a05cf
019e8f8f-5b47-7b86-853d-882fb386801a
019e8f8f-5b47-7cc5-92d5-879e6032b221
019e8f8f-5b47-7de4-a9e1-1bffac89db37
019e8f8f-5b47-7efa-b149-90f7210769fa
019e8f8f-5b48-7011-b23a-3aba0bbb652e
019e8f8f-5b48-7127-a0b0-f7240afeff85
019e8f8f-5b48-723e-b8e8-64b595fb8103
019e8f8f-5b48-7354-9d74-6ae9a9aa7bbb
019e8f8f-5b48-746b-83d5-55b102213b49
019e8f8f-5b48-7582-8a6b-933f0259f024
019e8f8f-5b48-7698-b703-526c0c045484
019e8f8f-5b48-77af-8527-232223b5f0a4
019e8f8f-5b48-78d5-b731-85808527b2b4
019e8f8f-5b48-79ec-a3ba-5d7525646a9b

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)

1f15f99e-35f0-6b5c-b2eb-4cf95d479851
1f15f99e-35f0-6d50-b2eb-4cf95d479851
1f15f99e-35f0-6e40-b2eb-4cf95d479851
1f15f99e-35f0-6f12-b2eb-4cf95d479851
1f15f99e-35f0-6fda-b2eb-4cf95d479851
1f15f99e-35f1-60a2-b2eb-4cf95d479851
1f15f99e-35f1-616a-b2eb-4cf95d479851
1f15f99e-35f1-6232-b2eb-4cf95d479851
1f15f99e-35f1-62fa-b2eb-4cf95d479851
1f15f99e-35f1-63b8-b2eb-4cf95d479851
1f15f99e-35f1-6534-b2eb-4cf95d479851
1f15f99e-35f1-6606-b2eb-4cf95d479851
1f15f99e-35f1-66ce-b2eb-4cf95d479851
1f15f99e-35f1-678c-b2eb-4cf95d479851
1f15f99e-35f1-6854-b2eb-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)

e35f1930-5f99-11f1-b2eb-4cf95d479851
e35f1994-5f99-11f1-b2eb-4cf95d479851
e35f1a02-5f99-11f1-b2eb-4cf95d479851
e35f1a66-5f99-11f1-b2eb-4cf95d479851
e35f1aca-5f99-11f1-b2eb-4cf95d479851
e35f1b2e-5f99-11f1-b2eb-4cf95d479851
e35f1b9c-5f99-11f1-b2eb-4cf95d479851
e35f1c00-5f99-11f1-b2eb-4cf95d479851
e35f1c6e-5f99-11f1-b2eb-4cf95d479851
e35f1cdc-5f99-11f1-b2eb-4cf95d479851
e35f1d36-5f99-11f1-b2eb-4cf95d479851
e35f1d9a-5f99-11f1-b2eb-4cf95d479851
e35f1e08-5f99-11f1-b2eb-4cf95d479851
e35f1e62-5f99-11f1-b2eb-4cf95d479851
e35f1ec6-5f99-11f1-b2eb-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)

89117325-3905-8a09-87ea-5ce32bd83b97
fe387425-3905-8a09-87ea-5ce32bd83b97
18bd7525-3905-8a09-87ea-5ce32bd83b97
41427625-3905-8a09-87ea-5ce32bd83b97
177f7725-3905-8a09-87ea-5ce32bd83b97
73b57825-3905-8a09-87ea-5ce32bd83b97
414b7925-3905-8a09-87ea-5ce32bd83b97
a7377a25-3905-8a09-87ea-5ce32bd83b97
4ac57b25-3905-8a09-87ea-5ce32bd83b97
a5a97c25-3905-8a09-87ea-5ce32bd83b97
e0707d25-3905-8a09-87ea-5ce32bd83b97
12307e25-3905-8a09-87ea-5ce32bd83b97
7e0e7f25-3905-8a09-87ea-5ce32bd83b97
7a2f8025-3905-8a09-87ea-5ce32bd83b97
026b8125-3905-8a09-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)

408861f1-0011-4746-83ec-8c1d5ec38f6a
b7c4ae70-c3e9-4718-a05b-6d26d02517f5
f901efa3-f058-4674-a5d7-6f9467e2a6e3
d3c7525b-c329-4399-8e33-3ba21d774f01
c806bca5-6426-44ed-9ca9-e79f9977207e
21bfa966-7999-444f-b6b5-0abf3d3c595a
90f9ed99-161a-420b-b411-b832a6e2f6e4
385a759e-fc7b-430d-b1c5-1518d157a4fe
4fa13d16-434b-49c4-9ac3-efc3465fdd4c
d5ecf250-d282-449e-b44e-8e9a02a73a09
8e5e5e91-9ae3-4431-97af-2b642f42b4fc
23b29e94-fec1-4664-ab34-8ed64a582c24
c369541d-1ea2-4ef7-8ef0-bb9d25c3ad27
925f911f-0a72-406e-b72c-477350a1d668
1908217f-cc96-4ddb-ab35-1d3041e460e0

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: