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)

018f1403-2db9-7b44-bcf3-44b44b71d4b3
018f1403-2db9-7d03-9899-b6656f5f5f7a
018f1403-2db9-7e6f-8f26-841a1b081ea1
018f1403-2db9-7fb3-b02c-380123390cef
018f1403-2dba-70f2-aafe-1ac1033f0e59
018f1403-2dba-7232-ae16-b2c243774a49
018f1403-2dba-7371-8843-2b974a31cead
018f1403-2dba-74b1-9115-6de77c67cf2c
018f1403-2dba-75ec-84a1-2cce51c13c66
018f1403-2dba-772c-8141-e30e5687dc79
018f1403-2dba-786b-9f42-12852bae4c99
018f1403-2dba-79a6-a81d-d60dee1d1d79
018f1403-2dba-7aea-955a-6dbe286df107
018f1403-2dba-7c2e-a0fd-1e9f9b87b1b0
018f1403-2dba-7d71-b577-66ffb89fd6a8

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)

1ef02cfc-fab9-670c-a944-4cf95d479851
1ef02cfc-fab9-695a-a944-4cf95d479851
1ef02cfc-fab9-6ad6-a944-4cf95d479851
1ef02cfc-fab9-6c34-a944-4cf95d479851
1ef02cfc-fab9-6d88-a944-4cf95d479851
1ef02cfc-fab9-6ef0-a944-4cf95d479851
1ef02cfc-faba-6044-a944-4cf95d479851
1ef02cfc-faba-61a2-a944-4cf95d479851
1ef02cfc-faba-62f6-a944-4cf95d479851
1ef02cfc-faba-644a-a944-4cf95d479851
1ef02cfc-faba-663e-a944-4cf95d479851
1ef02cfc-faba-67a6-a944-4cf95d479851
1ef02cfc-faba-68fa-a944-4cf95d479851
1ef02cfc-faba-6a4e-a944-4cf95d479851
1ef02cfc-faba-6b98-a944-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)

3e73cd3a-6858-49c3-9dbd-307af0f33a51
03d70b85-195f-417e-9a88-842a6c6feb9c
e04bcf0f-bd8e-499c-a897-e30929544776
bf4eb1c1-f83a-4beb-8e46-e31dc3a0bc39
b8bf4a76-7d31-488d-939f-2f755e562561
2a06b0e3-1687-4a8f-8a34-a08dfbdca305
7b8e06cd-fe07-4c9c-b470-7b191a6835c4
a01a4224-84b0-4449-b7ec-4a622bb61a34
6a22f17e-2863-40e9-a627-3a564f644b05
3f426ed2-0c2f-4d1c-8d7d-9a1f60a104c9
8efdd0cc-a5dc-4760-9e91-f6d864412d65
9cb6b1db-d6ec-4e4f-9369-8450e3af65f1
9f5d09c5-06f6-44a9-9213-772687d29dd4
dc6e2407-9cf2-49d7-9b43-108ccd34e899
5490d5b3-9865-4088-8907-eb5cb6cf2896

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)

cfabb2b4-02cf-11ef-a944-4cf95d479851
cfabb34a-02cf-11ef-a944-4cf95d479851
cfabb3e0-02cf-11ef-a944-4cf95d479851
cfabb480-02cf-11ef-a944-4cf95d479851
cfabb516-02cf-11ef-a944-4cf95d479851
cfabb5ac-02cf-11ef-a944-4cf95d479851
cfabb64c-02cf-11ef-a944-4cf95d479851
cfabb6e2-02cf-11ef-a944-4cf95d479851
cfabb782-02cf-11ef-a944-4cf95d479851
cfabb822-02cf-11ef-a944-4cf95d479851
cfabb8b8-02cf-11ef-a944-4cf95d479851
cfabb958-02cf-11ef-a944-4cf95d479851
cfabb9f8-02cf-11ef-a944-4cf95d479851
cfabba8e-02cf-11ef-a944-4cf95d479851
cfabbb2e-02cf-11ef-a944-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)

9715bd17-0199-8074-87e8-5ce32bd83b96
8372be17-0199-8074-87e8-5ce32bd83b96
ac86bf17-0199-8074-87e8-5ce32bd83b96
a0fcc017-0199-8074-87e8-5ce32bd83b96
369bc117-0199-8074-87e8-5ce32bd83b96
6d9ac217-0199-8074-87e8-5ce32bd83b96
f407c317-0199-8074-87e8-5ce32bd83b96
581ac417-0199-8074-87e8-5ce32bd83b96
0966c517-0199-8074-87e8-5ce32bd83b96
8258c617-0199-8074-87e8-5ce32bd83b96
6ba2c717-0199-8074-87e8-5ce32bd83b96
a801c817-0199-8074-87e8-5ce32bd83b96
05d2c917-0199-8074-87e8-5ce32bd83b96
06ddca17-0199-8074-87e8-5ce32bd83b96
3dbdcb17-0199-8074-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: