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)

01a13490-c232-7fd8-9531-8604399f0efb
01a13490-c233-71d3-a498-4fb9708dad46
01a13490-c233-7369-b140-3a21fe44c638
01a13490-c233-74d1-b99b-cec876c44b1f
01a13490-c233-7632-a729-fc583fcaacb7
01a13490-c233-7796-b115-436eb2f81999
01a13490-c233-78f2-8de4-6d391c2dcd32
01a13490-c233-7a4a-a138-097fc11c11f0
01a13490-c233-7b9e-81fe-e14d643c0be8
01a13490-c233-7cfa-a856-88322bf74751
01a13490-c233-7e4e-9c99-784733a66d90
01a13490-c233-7fb7-b88e-fd738c4d59a5
01a13490-c234-7107-ba67-024ad58de86e
01a13490-c234-724e-b47f-2f370cde6f37
01a13490-c234-73a2-bfc4-662743dca684

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)

1f1c6e76-a252-613a-84e2-4cf95d479851
1f1c6e76-a252-6590-84e2-4cf95d479851
1f1c6e76-a252-6766-84e2-4cf95d479851
1f1c6e76-a252-68f6-84e2-4cf95d479851
1f1c6e76-a252-6a54-84e2-4cf95d479851
1f1c6e76-a252-6ba8-84e2-4cf95d479851
1f1c6e76-a252-6d24-84e2-4cf95d479851
1f1c6e76-a252-6e96-84e2-4cf95d479851
1f1c6e76-a253-6008-84e2-4cf95d479851
1f1c6e76-a253-617a-84e2-4cf95d479851
1f1c6e76-a253-63c8-84e2-4cf95d479851
1f1c6e76-a253-6562-84e2-4cf95d479851
1f1c6e76-a253-66de-84e2-4cf95d479851
1f1c6e76-a253-6864-84e2-4cf95d479851
1f1c6e76-a253-69e0-84e2-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)

6a253b8e-c6e7-11f1-84e2-4cf95d479851
6a253c38-c6e7-11f1-84e2-4cf95d479851
6a253cd8-c6e7-11f1-84e2-4cf95d479851
6a253d78-c6e7-11f1-84e2-4cf95d479851
6a253e18-c6e7-11f1-84e2-4cf95d479851
6a253eae-c6e7-11f1-84e2-4cf95d479851
6a253f4e-c6e7-11f1-84e2-4cf95d479851
6a253fee-c6e7-11f1-84e2-4cf95d479851
6a254084-c6e7-11f1-84e2-4cf95d479851
6a254124-c6e7-11f1-84e2-4cf95d479851
6a2541ba-c6e7-11f1-84e2-4cf95d479851
6a25426e-c6e7-11f1-84e2-4cf95d479851
6a25430e-c6e7-11f1-84e2-4cf95d479851
6a2543ae-c6e7-11f1-84e2-4cf95d479851
6a254444-c6e7-11f1-84e2-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)

3a7e9304-3202-8e11-87ea-5ce32bd83b97
4d699404-3202-8e11-87ea-5ce32bd83b97
9fca9504-3202-8e11-87ea-5ce32bd83b97
7ad19604-3202-8e11-87ea-5ce32bd83b97
d0769704-3202-8e11-87ea-5ce32bd83b97
dd239804-3202-8e11-87ea-5ce32bd83b97
f4d19904-3202-8e11-87ea-5ce32bd83b97
46009a04-3202-8e11-87ea-5ce32bd83b97
68c99b04-3202-8e11-87ea-5ce32bd83b97
43279c04-3202-8e11-87ea-5ce32bd83b97
34299d04-3202-8e11-87ea-5ce32bd83b97
fd4c9f04-3202-8e11-87ea-5ce32bd83b97
04afa004-3202-8e11-87ea-5ce32bd83b97
c129a104-3202-8e11-87ea-5ce32bd83b97
6e9ba204-3202-8e11-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)

abc3dace-bbdb-4679-a404-c4a8220feec5
d7342b5e-e788-46fa-817b-25ff708bdeff
64a378ad-15a0-4707-8a08-2bda304b6059
b3139745-039f-4ce9-9a5a-50a493430485
f6100d23-8d4f-4906-80ca-34d172e649ed
7c24e261-5a64-4ac3-9473-e79c1eb58122
4863c039-f816-4445-b6db-4d8383f45905
67f944e4-8c26-4f09-8e90-4b8d024a8b66
1e82d60d-7455-4610-bca4-6f34f4c4b243
efc9067f-fe53-4913-865f-99b42b6067a5
6ccec80d-3a1c-4938-8a4d-98804574a3a8
5cf8afbe-0d8e-44d9-9567-ceffc5db7d38
4e755c6b-f5e6-4918-b089-90ca2a82fd74
c2ff0ba3-34d7-4f1f-a39e-046042e1d3cd
180aa74a-67b9-4c3f-a6db-111fe870dbc2

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: