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)

019edc14-31f2-7fdc-ad3e-1bcaf5b20837
019edc14-31f3-71f0-9adf-744510d974bb
019edc14-31f3-7330-9753-67d54b9ce8ec
019edc14-31f3-744a-b0a4-cdf29506c90c
019edc14-31f3-7561-89a2-f2b08930db93
019edc14-31f3-7677-8663-35a124dd0c35
019edc14-31f3-778e-90fe-7689421f1d43
019edc14-31f3-78a4-9f12-9e0a5a781efb
019edc14-31f3-79bb-8f37-764c26722c10
019edc14-31f3-7ad1-8d6a-9a6b22b8fb10
019edc14-31f3-7be4-8c25-1e9a1dc630f6
019edc14-31f3-7cfa-9123-e3e83290f996
019edc14-31f3-7e0d-9cea-16dee75eea28
019edc14-31f3-7f23-856d-5244d4232866
019edc14-31f4-7042-bbb2-eb96ddb497e4

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)

1f16b46e-8609-6324-bced-4cf95d479851
1f16b46e-8609-650e-bced-4cf95d479851
1f16b46e-8609-65f4-bced-4cf95d479851
1f16b46e-8609-66c6-bced-4cf95d479851
1f16b46e-8609-678e-bced-4cf95d479851
1f16b46e-8609-684c-bced-4cf95d479851
1f16b46e-8609-690a-bced-4cf95d479851
1f16b46e-8609-69c8-bced-4cf95d479851
1f16b46e-8609-6a86-bced-4cf95d479851
1f16b46e-8609-6b44-bced-4cf95d479851
1f16b46e-8609-6ca2-bced-4cf95d479851
1f16b46e-8609-6d74-bced-4cf95d479851
1f16b46e-8609-6e28-bced-4cf95d479851
1f16b46e-8609-6ee6-bced-4cf95d479851
1f16b46e-8609-6fa4-bced-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)

e860a0d0-6b46-11f1-bced-4cf95d479851
e860a15c-6b46-11f1-bced-4cf95d479851
e860a1d4-6b46-11f1-bced-4cf95d479851
e860a238-6b46-11f1-bced-4cf95d479851
e860a29c-6b46-11f1-bced-4cf95d479851
e860a300-6b46-11f1-bced-4cf95d479851
e860a36e-6b46-11f1-bced-4cf95d479851
e860a3dc-6b46-11f1-bced-4cf95d479851
e860a44a-6b46-11f1-bced-4cf95d479851
e860a4a4-6b46-11f1-bced-4cf95d479851
e860a512-6b46-11f1-bced-4cf95d479851
e860a576-6b46-11f1-bced-4cf95d479851
e860a5da-6b46-11f1-bced-4cf95d479851
e860a634-6b46-11f1-bced-4cf95d479851
e860a6a2-6b46-11f1-bced-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)

a7409233-6d04-890a-87ea-5ce32bd83b97
cd509333-6d04-890a-87ea-5ce32bd83b97
d4b19433-6d04-890a-87ea-5ce32bd83b97
00499533-6d04-890a-87ea-5ce32bd83b97
ccf99633-6d04-890a-87ea-5ce32bd83b97
41889733-6d04-890a-87ea-5ce32bd83b97
7df29833-6d04-890a-87ea-5ce32bd83b97
c6059933-6d04-890a-87ea-5ce32bd83b97
b0539a33-6d04-890a-87ea-5ce32bd83b97
a16a9b33-6d04-890a-87ea-5ce32bd83b97
3b709c33-6d04-890a-87ea-5ce32bd83b97
60b39d33-6d04-890a-87ea-5ce32bd83b97
77999f33-6d04-890a-87ea-5ce32bd83b97
9b79a033-6d04-890a-87ea-5ce32bd83b97
a0d0a133-6d04-890a-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)

537aa903-3064-400b-9291-3426c74d265a
52db0646-cdce-4a23-923d-b461e2466e05
e85be100-7c8b-4fbc-8afc-f4f5625f239c
e48b0f4a-d255-4ecb-9d77-83aa03594cd3
262cf320-b9b1-4e1d-8669-549b319514c7
27d7d0f3-e501-4f14-bc0e-b2cab304caf3
054eb835-92c7-43c9-b5af-0022b8fffbd3
c76a7116-39c8-489b-b437-42d437802a3e
61b75a22-2b78-498c-91aa-78ba4a1aeb0c
d586925d-5e78-4252-8cd4-a2da4e043e25
c3d40544-8ac0-40e1-85bc-317aeb0dc8e8
6a03f586-1580-4223-9b1a-388f41e0e3f2
e172b954-f691-45d8-9ae9-21b630d4d49b
9cacafa4-527c-4624-a45d-25c0b5521258
8bf77e97-7c11-4eae-96c2-0c6948282e07

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: