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)

019b988e-4083-74de-80e7-5588af6e1fd1
019b988e-4083-76c5-9a97-9bea6c40e8a3
019b988e-4083-780d-b5c2-dce652139be4
019b988e-4083-7934-9341-86ae79026cee
019b988e-4083-7a52-9323-cb10bc522956
019b988e-4083-7b6d-be97-baa641ab6755
019b988e-4083-7c88-ac67-f8fdd68ef038
019b988e-4083-7da2-a985-779c57183e11
019b988e-4083-7ec1-b113-d35f8e6e1ea4
019b988e-4083-7fdc-8acc-8d0bb6eb3527
019b988e-4084-70f6-a6da-10bb69c786aa
019b988e-4084-7215-84ea-35fe33e72e4e
019b988e-4084-7330-8535-a092bd5d5d91
019b988e-4084-744a-9352-5f581fdc3249
019b988e-4084-7565-b68d-37bf738275e6

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)

1f0ebc94-8397-65b6-bec1-4cf95d479851
1f0ebc94-8397-675a-bec1-4cf95d479851
1f0ebc94-8397-6840-bec1-4cf95d479851
1f0ebc94-8397-6908-bec1-4cf95d479851
1f0ebc94-8397-69d0-bec1-4cf95d479851
1f0ebc94-8397-6a98-bec1-4cf95d479851
1f0ebc94-8397-6b56-bec1-4cf95d479851
1f0ebc94-8397-6c1e-bec1-4cf95d479851
1f0ebc94-8397-6cdc-bec1-4cf95d479851
1f0ebc94-8397-6d9a-bec1-4cf95d479851
1f0ebc94-8397-6ed0-bec1-4cf95d479851
1f0ebc94-8397-6fa2-bec1-4cf95d479851
1f0ebc94-8398-606a-bec1-4cf95d479851
1f0ebc94-8398-6128-bec1-4cf95d479851
1f0ebc94-8398-61fa-bec1-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)

cc777362-498e-4e09-9910-5647f2788d95
82b0f456-1eca-4e52-9da9-0a6886db3737
849b4b63-e1cc-4a77-90c0-4151810e21eb
e286f2f8-bfe7-4d85-a5e2-dd79bff6dd4b
27398b76-9b07-4369-9a46-a3e04698a134
fe29d075-b557-4cf4-9abb-d90572b83cf1
aa52c763-30e4-46ec-8f20-43030d0494fc
c9cab23d-db93-41b3-81fd-50a2e5b434b2
b58cb29b-f802-4818-b210-f1050d1064d5
f5c7f9c8-7098-41a5-86f7-cc2d59b8fb96
b8f6cc5a-313a-4f60-a830-036ac11f356f
e610f3b1-963d-4dcb-a5fc-a14c21bc9eb5
89dbda3d-5102-45c7-a9da-27e0f1a971b2
4aa2544d-3002-4794-a756-1f37e200ed72
80aa24d6-19af-4e29-b0df-9b182c91ba41

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)

483987f4-ebc9-11f0-bec1-4cf95d479851
48398858-ebc9-11f0-bec1-4cf95d479851
483988bc-ebc9-11f0-bec1-4cf95d479851
4839892a-ebc9-11f0-bec1-4cf95d479851
4839898e-ebc9-11f0-bec1-4cf95d479851
483989e8-ebc9-11f0-bec1-4cf95d479851
48398a4c-ebc9-11f0-bec1-4cf95d479851
48398ab0-ebc9-11f0-bec1-4cf95d479851
48398b0a-ebc9-11f0-bec1-4cf95d479851
48398b6e-ebc9-11f0-bec1-4cf95d479851
48398bc8-ebc9-11f0-bec1-4cf95d479851
48398c2c-ebc9-11f0-bec1-4cf95d479851
48398c90-ebc9-11f0-bec1-4cf95d479851
48398cea-ebc9-11f0-bec1-4cf95d479851
48398d44-ebc9-11f0-bec1-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)

1b321e26-1003-8700-87ea-5ce32bd83b97
d8991f26-1003-8700-87ea-5ce32bd83b97
96202026-1003-8700-87ea-5ce32bd83b97
55fe2126-1003-8700-87ea-5ce32bd83b97
ecf92226-1003-8700-87ea-5ce32bd83b97
70ad2326-1003-8700-87ea-5ce32bd83b97
7fdb2426-1003-8700-87ea-5ce32bd83b97
c6eb2526-1003-8700-87ea-5ce32bd83b97
fd6d2626-1003-8700-87ea-5ce32bd83b97
d0692726-1003-8700-87ea-5ce32bd83b97
a5c32826-1003-8700-87ea-5ce32bd83b97
f8f92926-1003-8700-87ea-5ce32bd83b97
bf142a26-1003-8700-87ea-5ce32bd83b97
72fb2b26-1003-8700-87ea-5ce32bd83b97
29292c26-1003-8700-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: