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)

01a1a46a-3f3d-7a7b-892d-072c985f19b2
01a1a46a-3f3d-7c0d-bb1b-8fc165e3ddec
01a1a46a-3f3d-7d4c-95c0-1efde1e9bd51
01a1a46a-3f3d-7e6b-9481-12e9ea4bb11e
01a1a46a-3f3d-7f86-a04e-26969baa4c8d
01a1a46a-3f3e-709c-aa12-37dccddf44ed
01a1a46a-3f3e-71b3-9bf2-d29eda406f7d
01a1a46a-3f3e-72c9-adf8-681c7bb93233
01a1a46a-3f3e-73e8-bcfa-0cb6b7319af8
01a1a46a-3f3e-7503-a97d-aac751c25344
01a1a46a-3f3e-7615-b927-0a9aa639c884
01a1a46a-3f3e-7730-a268-1757c558a1e5
01a1a46a-3f3e-7846-a132-2bbebf24dd04
01a1a46a-3f3e-795d-b5b6-15bab9fd8f5e
01a1a46a-3f3e-7a73-a9f2-03d4dd6a3111

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)

1f1d7f88-9c7c-6318-a45c-4cf95d479851
1f1d7f88-9c7c-64e4-a45c-4cf95d479851
1f1d7f88-9c7c-65ca-a45c-4cf95d479851
1f1d7f88-9c7c-669c-a45c-4cf95d479851
1f1d7f88-9c7c-6764-a45c-4cf95d479851
1f1d7f88-9c7c-682c-a45c-4cf95d479851
1f1d7f88-9c7c-68ea-a45c-4cf95d479851
1f1d7f88-9c7c-69b2-a45c-4cf95d479851
1f1d7f88-9c7c-6a70-a45c-4cf95d479851
1f1d7f88-9c7c-6b2e-a45c-4cf95d479851
1f1d7f88-9c7c-6c96-a45c-4cf95d479851
1f1d7f88-9c7c-6d68-a45c-4cf95d479851
1f1d7f88-9c7c-6e30-a45c-4cf95d479851
1f1d7f88-9c7c-6ef8-a45c-4cf95d479851
1f1d7f88-9c7c-6fb6-a45c-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)

89c7d09c-d7f8-11f1-a45c-4cf95d479851
89c7d100-d7f8-11f1-a45c-4cf95d479851
89c7d164-d7f8-11f1-a45c-4cf95d479851
89c7d1d2-d7f8-11f1-a45c-4cf95d479851
89c7d236-d7f8-11f1-a45c-4cf95d479851
89c7d2a4-d7f8-11f1-a45c-4cf95d479851
89c7d312-d7f8-11f1-a45c-4cf95d479851
89c7d376-d7f8-11f1-a45c-4cf95d479851
89c7d3da-d7f8-11f1-a45c-4cf95d479851
89c7d43e-d7f8-11f1-a45c-4cf95d479851
89c7d4a2-d7f8-11f1-a45c-4cf95d479851
89c7d506-d7f8-11f1-a45c-4cf95d479851
89c7d56a-d7f8-11f1-a45c-4cf95d479851
89c7d5c4-d7f8-11f1-a45c-4cf95d479851
89c7d628-d7f8-11f1-a45c-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)

8ab1dc1c-9d00-8413-87ea-5ce32bd83b97
4cf9dd1c-9d00-8413-87ea-5ce32bd83b97
0173de1c-9d00-8413-87ea-5ce32bd83b97
ad07df1c-9d00-8413-87ea-5ce32bd83b97
ee8de01c-9d00-8413-87ea-5ce32bd83b97
d117e11c-9d00-8413-87ea-5ce32bd83b97
c295e21c-9d00-8413-87ea-5ce32bd83b97
1a4ee31c-9d00-8413-87ea-5ce32bd83b97
8802e41c-9d00-8413-87ea-5ce32bd83b97
b735e61c-9d00-8413-87ea-5ce32bd83b97
4312e71c-9d00-8413-87ea-5ce32bd83b97
279ce81c-9d00-8413-87ea-5ce32bd83b97
cda6e91c-9d00-8413-87ea-5ce32bd83b97
f148ea1c-9d00-8413-87ea-5ce32bd83b97
5d40eb1c-9d00-8413-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)

9188b3fa-3732-4374-bc4c-1b9892d81114
3b158e59-1a17-4b33-9956-c0e3152251bd
ed7a2a2a-2fcd-443a-ba95-fba2e453703e
fde0ffa4-33b4-4ac4-a11f-26336f9f0bbf
49bdbc5c-f702-4c82-b85c-0259583b6415
6dca696e-9feb-49eb-ac7b-439ab5040ff4
7f5c5fda-a9c4-485b-919d-131ddd16430c
e128e6b5-fdba-4475-ad37-6507bc9d9d58
fa4934b3-abea-496c-89d6-39f1c2d0eac2
b2fb00bd-2d7a-4cea-a8ac-53e9646dd235
4a1b1e48-da17-4913-918e-93b31c47a32d
97958e84-756e-4a88-b831-aa084102a157
1f5f3b0e-2996-4e39-9ab8-c66177e03a0b
2a748170-e6f5-4e18-a49d-18a4b9815736
22f675a5-d445-4b61-ab83-6dd3193089fb

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: