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)

019c4daf-4577-7917-bc5e-f04bbad9c48f
019c4daf-4577-7aa0-95b4-43314d12f6d1
019c4daf-4577-7be4-9312-880c9d0dfe38
019c4daf-4577-7d07-b43d-49a704213fd3
019c4daf-4577-7e21-b4d2-af741cba6373
019c4daf-4577-7f3c-b6c1-639038eefee7
019c4daf-4578-7057-b253-973943558939
019c4daf-4578-7171-8204-b108b3bdbc9e
019c4daf-4578-728c-8537-c00f71f752f8
019c4daf-4578-73a2-80ee-0120870dd612
019c4daf-4578-74bd-b7e8-03e89646e51d
019c4daf-4578-75d3-a004-0b480f3e8d1d
019c4daf-4578-76ee-b3c1-3886a6fa81f4
019c4daf-4578-7809-b9eb-26e45fb7cd5b
019c4daf-4578-7923-8c6a-7da4086a9336

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)

1f1076ca-20af-69a2-ab81-4cf95d479851
1f1076ca-20af-6b3c-ab81-4cf95d479851
1f1076ca-20af-6c2c-ab81-4cf95d479851
1f1076ca-20af-6cfe-ab81-4cf95d479851
1f1076ca-20af-6dc6-ab81-4cf95d479851
1f1076ca-20af-6e8e-ab81-4cf95d479851
1f1076ca-20af-6f56-ab81-4cf95d479851
1f1076ca-20b0-601e-ab81-4cf95d479851
1f1076ca-20b0-60e6-ab81-4cf95d479851
1f1076ca-20b0-61ae-ab81-4cf95d479851
1f1076ca-20b0-6302-ab81-4cf95d479851
1f1076ca-20b0-63ca-ab81-4cf95d479851
1f1076ca-20b0-6492-ab81-4cf95d479851
1f1076ca-20b0-655a-ab81-4cf95d479851
1f1076ca-20b0-6618-ab81-4cf95d479851

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)

04d34765-9028-489d-b00b-fed0befb8ac1
97c7b02b-284d-42f9-a511-376abca52e7c
86e6ae3d-1ce3-4467-8f68-87487588d43a
e17cc748-0154-4daf-a5d9-6785c4dfe8fb
aee3b102-a923-446e-bfd5-1d8b29b715eb
5a982876-2299-4e85-b333-3cf4777113eb
d0ac701c-2c2a-47e6-9fc7-a5f3b53f33f0
84e23a02-645a-45aa-ae27-f056f9f77c72
3dd03116-b1e2-481d-a30b-55b3c5c89c33
cc9d5c01-daa8-44e2-af1a-5dbdfbb32aa7
1618bbcd-41b1-4948-85f9-f0ec449b69d7
6961f0a2-8e59-48fe-9fa0-de7b4632b203
34b37d22-0c79-4e0f-9025-30b5926e76df
0152c2c6-0476-4b58-bdc7-72293e35e447
b60fad79-269c-47ea-89ac-9a0ec624c813

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)

a20b0b40-076c-11f1-ab81-4cf95d479851
a20b0bae-076c-11f1-ab81-4cf95d479851
a20b0c12-076c-11f1-ab81-4cf95d479851
a20b0c76-076c-11f1-ab81-4cf95d479851
a20b0cd0-076c-11f1-ab81-4cf95d479851
a20b0d34-076c-11f1-ab81-4cf95d479851
a20b0d8e-076c-11f1-ab81-4cf95d479851
a20b0df2-076c-11f1-ab81-4cf95d479851
a20b0e56-076c-11f1-ab81-4cf95d479851
a20b0eba-076c-11f1-ab81-4cf95d479851
a20b0f1e-076c-11f1-ab81-4cf95d479851
a20b0f78-076c-11f1-ab81-4cf95d479851
a20b0fdc-076c-11f1-ab81-4cf95d479851
a20b1040-076c-11f1-ab81-4cf95d479851
a20b109a-076c-11f1-ab81-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)

9de92b3a-0704-8a02-87ea-5ce32bd83b97
0f602c3a-0704-8a02-87ea-5ce32bd83b97
f5022d3a-0704-8a02-87ea-5ce32bd83b97
6b072e3a-0704-8a02-87ea-5ce32bd83b97
11f22f3a-0704-8a02-87ea-5ce32bd83b97
8b6e303a-0704-8a02-87ea-5ce32bd83b97
7564313a-0704-8a02-87ea-5ce32bd83b97
936f323a-0704-8a02-87ea-5ce32bd83b97
2678333a-0704-8a02-87ea-5ce32bd83b97
bf43353a-0704-8a02-87ea-5ce32bd83b97
31bb363a-0704-8a02-87ea-5ce32bd83b97
f953373a-0704-8a02-87ea-5ce32bd83b97
c6a1383a-0704-8a02-87ea-5ce32bd83b97
51ce393a-0704-8a02-87ea-5ce32bd83b97
f84e3a3a-0704-8a02-87ea-5ce32bd83b97

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: