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)

01a1b1a9-4cc7-7b92-bd4e-de57bbfd4fe0
01a1b1a9-4cc7-7d27-b26a-55a6840ae27a
01a1b1a9-4cc7-7e63-9664-b54dc9f2f676
01a1b1a9-4cc7-7f82-bc0f-c1f0d05f4d26
01a1b1a9-4cc8-7098-ab30-5adbe126977f
01a1b1a9-4cc8-71af-ad77-5be3592f5868
01a1b1a9-4cc8-72cd-8fbe-0117b431c9de
01a1b1a9-4cc8-73e8-9350-70e5759bc5e9
01a1b1a9-4cc8-74fa-97e6-4e62b860e3e5
01a1b1a9-4cc8-7611-81a2-4d40a8c5f22d
01a1b1a9-4cc8-7723-800e-263780bb21a7
01a1b1a9-4cc8-783a-9991-170576b1da66
01a1b1a9-4cc8-794c-90bb-54a885bbc14c
01a1b1a9-4cc8-7a5f-b2e6-f6c07b5359a6
01a1b1a9-4cc8-7b75-8899-623077a16515

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)

1f1d9fdf-8c8a-6488-877d-4cf95d479851
1f1d9fdf-8c8a-664a-877d-4cf95d479851
1f1d9fdf-8c8a-6730-877d-4cf95d479851
1f1d9fdf-8c8a-6802-877d-4cf95d479851
1f1d9fdf-8c8a-68ca-877d-4cf95d479851
1f1d9fdf-8c8a-6988-877d-4cf95d479851
1f1d9fdf-8c8a-6a50-877d-4cf95d479851
1f1d9fdf-8c8a-6b18-877d-4cf95d479851
1f1d9fdf-8c8a-6be0-877d-4cf95d479851
1f1d9fdf-8c8a-6c9e-877d-4cf95d479851
1f1d9fdf-8c8a-6e1a-877d-4cf95d479851
1f1d9fdf-8c8a-6eec-877d-4cf95d479851
1f1d9fdf-8c8a-6fb4-877d-4cf95d479851
1f1d9fdf-8c8b-607c-877d-4cf95d479851
1f1d9fdf-8c8b-6144-877d-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)

f8c8b216-d9fd-11f1-877d-4cf95d479851
f8c8b27a-d9fd-11f1-877d-4cf95d479851
f8c8b2e8-d9fd-11f1-877d-4cf95d479851
f8c8b34c-d9fd-11f1-877d-4cf95d479851
f8c8b3b0-d9fd-11f1-877d-4cf95d479851
f8c8b41e-d9fd-11f1-877d-4cf95d479851
f8c8b4e6-d9fd-11f1-877d-4cf95d479851
f8c8b554-d9fd-11f1-877d-4cf95d479851
f8c8b5c2-d9fd-11f1-877d-4cf95d479851
f8c8b626-d9fd-11f1-877d-4cf95d479851
f8c8b68a-d9fd-11f1-877d-4cf95d479851
f8c8b6ee-d9fd-11f1-877d-4cf95d479851
f8c8b752-d9fd-11f1-877d-4cf95d479851
f8c8b7b6-d9fd-11f1-877d-4cf95d479851
f8c8b81a-d9fd-11f1-877d-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)

30e4e718-d503-8613-87ea-5ce32bd83b97
cd7be818-d503-8613-87ea-5ce32bd83b97
b6f1e918-d503-8613-87ea-5ce32bd83b97
5e43ea18-d503-8613-87ea-5ce32bd83b97
c24beb18-d503-8613-87ea-5ce32bd83b97
86fcec18-d503-8613-87ea-5ce32bd83b97
a900ed18-d503-8613-87ea-5ce32bd83b97
b17fee18-d503-8613-87ea-5ce32bd83b97
767aef18-d503-8613-87ea-5ce32bd83b97
e83bf018-d503-8613-87ea-5ce32bd83b97
ee53f118-d503-8613-87ea-5ce32bd83b97
969af218-d503-8613-87ea-5ce32bd83b97
046af418-d503-8613-87ea-5ce32bd83b97
3356f518-d503-8613-87ea-5ce32bd83b97
944cf618-d503-8613-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)

15b0595e-436d-4a18-a26e-5f1182ebf87a
4c6c4513-10ca-46e2-b088-bbe790bbd01f
30ff6eae-4e2c-45a6-b817-3a0fe2940fc4
d17ca5c9-fcd5-41c4-af2b-09363646596a
d28c7b50-e4a8-4bcc-9290-eb5ac6234566
53518a98-2b75-4796-87c2-6c1046665b32
1e76f327-6695-4f8c-a456-e5f9b2713c45
00334f57-d72b-4ec6-9c9e-78432e4719de
0947d888-4f53-40e5-8157-31456d91fd63
0c3fbbb1-570c-4671-9d36-bc60cf0792cc
3e945cef-7fb5-44ac-9fbb-f6f72c0c3162
02ed8ba6-8c96-4760-836d-9de03cef5800
9fe0cce0-46bf-4442-a195-33600d238e48
27ce587a-9a5e-4e9e-a8c9-b0fe37c4c368
5e2cd5de-79e8-4084-ba9d-2a5eb553ac8b

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: