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)

018f89d6-2154-7b13-9a54-4464ce9729f3
018f89d6-2154-7ccd-bc6f-9e92f420c61a
018f89d6-2154-7e11-a6d7-7d60c3d6bbf0
018f89d6-2154-7f34-a86f-860e5e24eed4
018f89d6-2155-706b-9c19-29c4b31dc4ff
018f89d6-2155-718a-9477-8d1270dd6e22
018f89d6-2155-72a4-84dc-f2039cdff6d6
018f89d6-2155-73bf-b687-c78b7b0cbce8
018f89d6-2155-74da-bf88-84fc94e1c7e7
018f89d6-2155-75f4-8592-e917d426823f
018f89d6-2155-7713-9de1-912ce774a4f8
018f89d6-2155-782e-89a7-6eac3d8679e3
018f89d6-2155-7948-a3b9-c5823f16c96c
018f89d6-2155-7a63-ba75-ca5103de415a
018f89d6-2155-7b7d-a9b3-9b08c6c75411

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)

1ef14ca4-ff76-6ace-956c-4cf95d479851
1ef14ca4-ff76-6ca4-956c-4cf95d479851
1ef14ca4-ff76-6d80-956c-4cf95d479851
1ef14ca4-ff76-6e52-956c-4cf95d479851
1ef14ca4-ff76-6f10-956c-4cf95d479851
1ef14ca4-ff76-6fd8-956c-4cf95d479851
1ef14ca4-ff77-6096-956c-4cf95d479851
1ef14ca4-ff77-617c-956c-4cf95d479851
1ef14ca4-ff77-6244-956c-4cf95d479851
1ef14ca4-ff77-6302-956c-4cf95d479851
1ef14ca4-ff77-646a-956c-4cf95d479851
1ef14ca4-ff77-6532-956c-4cf95d479851
1ef14ca4-ff77-65f0-956c-4cf95d479851
1ef14ca4-ff77-66ae-956c-4cf95d479851
1ef14ca4-ff77-6762-956c-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)

a249c731-52fe-4fd2-a21a-82cca230dad6
5872a7fd-8638-4d27-9de4-47fe144e4fec
91faadc6-316d-4280-aa67-75b28589bef0
a18adcc9-d8e0-49b5-b30e-2d3487fcc09b
2e796fd4-b75a-4435-8b1f-8ef01a1353bd
2e684d13-5d43-482f-aa79-06fc416982e2
51c86764-212d-43a5-903d-c5d97d9eb46c
0da21638-3074-480c-a980-8b37bba9cc7c
7d95e67c-0484-4486-84c9-f7bb88377bbb
b6bddaa3-58ac-4501-a981-290df40e11a1
87170e25-46e4-4023-aa8f-95af3223c1ab
f3269c39-798f-4a06-9a1c-dee8b835a30a
41bc0075-1df0-4dac-9086-baab5946302f
bc1b77b0-6d0b-416d-b7b6-69ff04a36bde
c89d83e2-4728-4495-bc23-283c6efe209e

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)

4ff77c94-14ca-11ef-956c-4cf95d479851
4ff77cee-14ca-11ef-956c-4cf95d479851
4ff77d52-14ca-11ef-956c-4cf95d479851
4ff77dac-14ca-11ef-956c-4cf95d479851
4ff77e06-14ca-11ef-956c-4cf95d479851
4ff77e6a-14ca-11ef-956c-4cf95d479851
4ff77ece-14ca-11ef-956c-4cf95d479851
4ff77f32-14ca-11ef-956c-4cf95d479851
4ff77f96-14ca-11ef-956c-4cf95d479851
4ff77ff0-14ca-11ef-956c-4cf95d479851
4ff7804a-14ca-11ef-956c-4cf95d479851
4ff780ae-14ca-11ef-956c-4cf95d479851
4ff78108-14ca-11ef-956c-4cf95d479851
4ff78162-14ca-11ef-956c-4cf95d479851
4ff781bc-14ca-11ef-956c-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)

9800ee16-00eb-808b-87e8-5ce32bd83b96
948fef16-00eb-808b-87e8-5ce32bd83b96
7901f016-00eb-808b-87e8-5ce32bd83b96
ae5df116-00eb-808b-87e8-5ce32bd83b96
169ff216-00eb-808b-87e8-5ce32bd83b96
557bf416-00eb-808b-87e8-5ce32bd83b96
6170f516-00eb-808b-87e8-5ce32bd83b96
cc02f616-00eb-808b-87e8-5ce32bd83b96
45dbf716-00eb-808b-87e8-5ce32bd83b96
c6cff816-00eb-808b-87e8-5ce32bd83b96
3c2af916-00eb-808b-87e8-5ce32bd83b96
972ffa16-00eb-808b-87e8-5ce32bd83b96
8b53fb16-00eb-808b-87e8-5ce32bd83b96
cfe4fc16-00eb-808b-87e8-5ce32bd83b96
ef76fd16-00eb-808b-87e8-5ce32bd83b96

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

An 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

An UUIDv3 is made out of a MD5 hash and an 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: