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)

019e150f-7846-7c6b-8481-efe338101d12
019e150f-7846-7e19-bd59-fe41db20786f
019e150f-7846-7f50-b73e-7372c4179120
019e150f-7847-706f-88df-fa09846d381c
019e150f-7847-718a-b62c-ed45365d192c
019e150f-7847-72a0-b218-6c2c9a861f8e
019e150f-7847-73b3-a2f6-d6b4007756f4
019e150f-7847-74c9-be88-18caa03e0d99
019e150f-7847-75dc-9c49-ae026a5b3af3
019e150f-7847-76ee-ba25-be487a74674f
019e150f-7847-7805-9213-6b511b5bfbef
019e150f-7847-791b-9dc2-0bb6800bd80c
019e150f-7847-7a36-8a69-1149cb093b94
019e150f-7847-7b50-96b0-862b2598d9d1
019e150f-7847-7c63-839d-6779f6524638

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)

1f14ce8b-fcbb-6942-8abc-4cf95d479851
1f14ce8b-fcbb-6adc-8abc-4cf95d479851
1f14ce8b-fcbb-6bc2-8abc-4cf95d479851
1f14ce8b-fcbb-6c8a-8abc-4cf95d479851
1f14ce8b-fcbb-6d52-8abc-4cf95d479851
1f14ce8b-fcbb-6e10-8abc-4cf95d479851
1f14ce8b-fcbb-6ece-8abc-4cf95d479851
1f14ce8b-fcbb-6f8c-8abc-4cf95d479851
1f14ce8b-fcbc-604a-8abc-4cf95d479851
1f14ce8b-fcbc-60fe-8abc-4cf95d479851
1f14ce8b-fcbc-622a-8abc-4cf95d479851
1f14ce8b-fcbc-62fc-8abc-4cf95d479851
1f14ce8b-fcbc-63c4-8abc-4cf95d479851
1f14ce8b-fcbc-6482-8abc-4cf95d479851
1f14ce8b-fcbc-6540-8abc-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)

c587be0d-0556-4804-a64b-61c2532419f6
4242e795-4e82-4e5e-8a51-739a060b01a7
d9d797a4-15d0-4f4d-8e53-cf9926305e2e
7341f114-22ca-4121-aaa8-3ac521efc83c
54e5971a-995c-4390-b552-7601b2b960a9
c34be8fe-b1ef-4c21-a6c6-81e0061a05ba
86abc661-c2d0-4a66-8eca-4da21d48395c
1550f245-88b9-4e98-9017-cebb711abcc0
aed630b6-a05d-4b68-8513-aa66d9154985
52baff16-9d1b-436a-9525-4aaef66904c9
558504f6-b9ec-4f5d-b634-ce1e03c96e15
044b8c39-5924-43a7-9ef3-2dfee3fda03e
5fb24943-f3e1-435c-af49-504809d9b5f6
aeac04f6-6abd-4433-93fd-2f7967770cc7
cafd7369-1ec1-4d5d-b743-907bbf62fdd5

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)

bfcbca5e-4ce8-11f1-8abc-4cf95d479851
bfcbcacc-4ce8-11f1-8abc-4cf95d479851
bfcbcb26-4ce8-11f1-8abc-4cf95d479851
bfcbcb8a-4ce8-11f1-8abc-4cf95d479851
bfcbcbee-4ce8-11f1-8abc-4cf95d479851
bfcbcc48-4ce8-11f1-8abc-4cf95d479851
bfcbcca2-4ce8-11f1-8abc-4cf95d479851
bfcbcd06-4ce8-11f1-8abc-4cf95d479851
bfcbcd6a-4ce8-11f1-8abc-4cf95d479851
bfcbcdce-4ce8-11f1-8abc-4cf95d479851
bfcbce28-4ce8-11f1-8abc-4cf95d479851
bfcbce8c-4ce8-11f1-8abc-4cf95d479851
bfcbcef0-4ce8-11f1-8abc-4cf95d479851
bfcbcf54-4ce8-11f1-8abc-4cf95d479851
bfcbcfc2-4ce8-11f1-8abc-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)

9e30e90f-cc00-8308-87ea-5ce32bd83b97
c8a1ea0f-cc00-8308-87ea-5ce32bd83b97
3c79eb0f-cc00-8308-87ea-5ce32bd83b97
2fe2ec0f-cc00-8308-87ea-5ce32bd83b97
f049ed0f-cc00-8308-87ea-5ce32bd83b97
7ad2ee0f-cc00-8308-87ea-5ce32bd83b97
587eef0f-cc00-8308-87ea-5ce32bd83b97
850bf00f-cc00-8308-87ea-5ce32bd83b97
c0f9f10f-cc00-8308-87ea-5ce32bd83b97
1d1df20f-cc00-8308-87ea-5ce32bd83b97
4779f30f-cc00-8308-87ea-5ce32bd83b97
2946f40f-cc00-8308-87ea-5ce32bd83b97
ae7af50f-cc00-8308-87ea-5ce32bd83b97
a390f60f-cc00-8308-87ea-5ce32bd83b97
323ff70f-cc00-8308-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: