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)

01a0cb8d-f524-7f34-8df6-bcb5ccf5f937
01a0cb8d-f525-70f6-9c99-a2777458fb1a
01a0cb8d-f525-725f-a2a2-d285a26db55b
01a0cb8d-f525-73d3-a2f8-cc7378c1f53f
01a0cb8d-f525-7517-924f-50becf91f35c
01a0cb8d-f525-7652-a64e-af78ad63c4ad
01a0cb8d-f525-778e-8f1a-1ae271331848
01a0cb8d-f525-78c5-bf08-c7b17c44b174
01a0cb8d-f525-79fc-8ebe-bc6de8736e65
01a0cb8d-f525-7b38-8450-6e5d01a35e97
01a0cb8d-f525-7c7b-a727-8ffe0d576359
01a0cb8d-f525-7db7-b699-7505ed970082
01a0cb8d-f525-7ef2-852e-a66bee6da616
01a0cb8d-f526-702e-8500-9f4b89196d06
01a0cb8d-f526-7165-a57b-5047fd48e676

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)

1f1b6e16-cb96-64d0-b6f5-4cf95d479851
1f1b6e16-cb96-6746-b6f5-4cf95d479851
1f1b6e16-cb96-68b8-b6f5-4cf95d479851
1f1b6e16-cb96-69e4-b6f5-4cf95d479851
1f1b6e16-cb96-6ab6-b6f5-4cf95d479851
1f1b6e16-cb96-6b7e-b6f5-4cf95d479851
1f1b6e16-cb96-6c46-b6f5-4cf95d479851
1f1b6e16-cb96-6d04-b6f5-4cf95d479851
1f1b6e16-cb96-6dcc-b6f5-4cf95d479851
1f1b6e16-cb96-6e9e-b6f5-4cf95d479851
1f1b6e16-cb97-6006-b6f5-4cf95d479851
1f1b6e16-cb97-60e2-b6f5-4cf95d479851
1f1b6e16-cb97-61aa-b6f5-4cf95d479851
1f1b6e16-cb97-627c-b6f5-4cf95d479851
1f1b6e16-cb97-634e-b6f5-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)

6cb9742a-b6e1-11f1-b6f5-4cf95d479851
6cb97498-b6e1-11f1-b6f5-4cf95d479851
6cb974fc-b6e1-11f1-b6f5-4cf95d479851
6cb97560-b6e1-11f1-b6f5-4cf95d479851
6cb975ce-b6e1-11f1-b6f5-4cf95d479851
6cb97632-b6e1-11f1-b6f5-4cf95d479851
6cb97696-b6e1-11f1-b6f5-4cf95d479851
6cb97704-b6e1-11f1-b6f5-4cf95d479851
6cb97768-b6e1-11f1-b6f5-4cf95d479851
6cb977d6-b6e1-11f1-b6f5-4cf95d479851
6cb97844-b6e1-11f1-b6f5-4cf95d479851
6cb978a8-b6e1-11f1-b6f5-4cf95d479851
6cb9790c-b6e1-11f1-b6f5-4cf95d479851
6cb97970-b6e1-11f1-b6f5-4cf95d479851
6cb979e8-b6e1-11f1-b6f5-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)

6cf95135-9e05-8910-87ea-5ce32bd83b97
d4c05235-9e05-8910-87ea-5ce32bd83b97
5d955335-9e05-8910-87ea-5ce32bd83b97
31195435-9e05-8910-87ea-5ce32bd83b97
83a55635-9e05-8910-87ea-5ce32bd83b97
3c2a5735-9e05-8910-87ea-5ce32bd83b97
6bd55835-9e05-8910-87ea-5ce32bd83b97
789d5935-9e05-8910-87ea-5ce32bd83b97
ccef5a35-9e05-8910-87ea-5ce32bd83b97
a3455b35-9e05-8910-87ea-5ce32bd83b97
5dc55c35-9e05-8910-87ea-5ce32bd83b97
9f6e5d35-9e05-8910-87ea-5ce32bd83b97
fa855e35-9e05-8910-87ea-5ce32bd83b97
87df5f35-9e05-8910-87ea-5ce32bd83b97
d1f66035-9e05-8910-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)

4d753723-7eee-4798-86aa-f59dbeadb342
77039152-b7ca-45df-8979-3c672236e54c
d36a9e5e-d671-4d84-a498-1561a9571720
652a5260-826c-4e41-9377-fbf342567f60
70caaba6-51aa-4b71-ae56-5cffa9f5689d
daacf18d-05d2-481f-816b-d2486646cbf2
11e315ee-ae15-41f0-b8cf-bd8798472500
d59ffbd0-5388-4079-a0b1-7f77b1b46684
a319bc23-2899-4fe3-93c4-22e95511f81c
d8949ac7-1296-4730-a114-1d522dafd76d
9ecb005a-42c8-468c-9d0f-2b8f19d1b5fe
5bfec370-93a3-4f13-80a0-ba14faeb9e73
7d2c3580-57f3-4964-ba61-0583c6e6278b
2af6b9e4-17fa-4541-97a9-38b449f41715
db03057c-a707-47ba-a4fa-0dae860065e3

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: