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)

019a7919-a654-7148-91e0-a475ec990fd7
019a7919-a654-7303-92c0-ff0de9e49457
019a7919-a654-7477-9da1-b1298122dc62
019a7919-a654-75dc-9bd2-f170dffcea9e
019a7919-a654-7748-9b37-2bd09d171368
019a7919-a654-789c-a0bd-68c180d091d8
019a7919-a654-79cf-9bfb-747e5a3b26b0
019a7919-a654-7b07-861a-cd9c7f0ea3fd
019a7919-a654-7c67-9633-31baeffb31d0
019a7919-a654-7dcb-bba6-760641e04796
019a7919-a654-7f1b-a903-da60c8834bd6
019a7919-a655-705f-9cfc-82c20795577f
019a7919-a655-71bb-96c6-572b7957731b
019a7919-a655-72e2-8387-c48f823b4055
019a7919-a655-740d-91c5-10614e84fb31

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)

1f0bfec8-d72a-66b0-98c5-4cf95d479851
1f0bfec8-d72a-694e-98c5-4cf95d479851
1f0bfec8-d72a-6afc-98c5-4cf95d479851
1f0bfec8-d72a-6c78-98c5-4cf95d479851
1f0bfec8-d72a-6dfe-98c5-4cf95d479851
1f0bfec8-d72a-6f66-98c5-4cf95d479851
1f0bfec8-d72b-6060-98c5-4cf95d479851
1f0bfec8-d72b-611e-98c5-4cf95d479851
1f0bfec8-d72b-61dc-98c5-4cf95d479851
1f0bfec8-d72b-629a-98c5-4cf95d479851
1f0bfec8-d72b-6416-98c5-4cf95d479851
1f0bfec8-d72b-656a-98c5-4cf95d479851
1f0bfec8-d72b-665a-98c5-4cf95d479851
1f0bfec8-d72b-6718-98c5-4cf95d479851
1f0bfec8-d72b-6862-98c5-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)

b9cd4bc3-8e54-42ac-971f-db656fb422b5
49796427-ebf2-4ae4-9c40-9c7cba0f6603
7befeae6-7b40-4338-a04c-d2a8a8815604
8e119ba6-9dc3-4e8d-959d-3315d81c6c96
be1b8467-68cf-4241-8263-ceee9fc9575a
88495e3e-f90e-4a9f-aed8-3054c21e665c
9f0ede4b-9bdc-4f08-9370-bf0038c3505e
b150ad03-1d1a-449e-9b29-e5200d4e2ae2
d99e5239-31ed-46a0-880e-834a15128eb5
8386e0b3-8452-492e-ab31-417e4b601e6d
3235b46d-2209-49ef-b88c-285af29a56ce
44215591-e98f-47d9-85ec-072f6c37f76d
37d98fca-547b-4091-aa72-8e23063b5085
e2faefe2-1f82-417c-b538-3d728d487070
b056fd54-7ac8-4f44-ba49-4f5ea17f3b92

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)

8d72bfc4-bfec-11f0-98c5-4cf95d479851
8d72c06e-bfec-11f0-98c5-4cf95d479851
8d72c10e-bfec-11f0-98c5-4cf95d479851
8d72c1ae-bfec-11f0-98c5-4cf95d479851
8d72c24e-bfec-11f0-98c5-4cf95d479851
8d72c2ee-bfec-11f0-98c5-4cf95d479851
8d72c3a2-bfec-11f0-98c5-4cf95d479851
8d72c438-bfec-11f0-98c5-4cf95d479851
8d72c4e2-bfec-11f0-98c5-4cf95d479851
8d72c550-bfec-11f0-98c5-4cf95d479851
8d72c5b4-bfec-11f0-98c5-4cf95d479851
8d72c618-bfec-11f0-98c5-4cf95d479851
8d72c67c-bfec-11f0-98c5-4cf95d479851
8d72c6e0-bfec-11f0-98c5-4cf95d479851
8d72c744-bfec-11f0-98c5-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)

46937a0f-1604-8c13-87e9-5ce32bd83b97
56c97b0f-1604-8c13-87e9-5ce32bd83b97
59097c0f-1604-8c13-87e9-5ce32bd83b97
e0127d0f-1604-8c13-87e9-5ce32bd83b97
a7247e0f-1604-8c13-87e9-5ce32bd83b97
7d407f0f-1604-8c13-87e9-5ce32bd83b97
e3a7800f-1604-8c13-87e9-5ce32bd83b97
0d86810f-1604-8c13-87e9-5ce32bd83b97
1783820f-1604-8c13-87e9-5ce32bd83b97
1a02830f-1604-8c13-87e9-5ce32bd83b97
41aa840f-1604-8c13-87e9-5ce32bd83b97
86b3850f-1604-8c13-87e9-5ce32bd83b97
868d870f-1604-8c13-87e9-5ce32bd83b97
3397880f-1604-8c13-87e9-5ce32bd83b97
3025890f-1604-8c13-87e9-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

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: