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)

01a05333-8a36-7dcb-afb3-420b0d84ff84
01a05333-8a36-7f75-be56-29eacd4da2e1
01a05333-8a37-70b1-a0c4-7a447f01964f
01a05333-8a37-71c7-aa21-c30fbb22556b
01a05333-8a37-72de-b179-3ecde644b057
01a05333-8a37-73f8-86e1-c5fc36cbb202
01a05333-8a37-7523-9908-9a1067101923
01a05333-8a37-7636-8639-e94371dd46ac
01a05333-8a37-7748-9fb7-84d2d745261d
01a05333-8a37-785b-ab3f-80d0f4eea9c1
01a05333-8a37-796d-80b5-4e9a4c926947
01a05333-8a37-7a84-b971-4082fc4e2c7a
01a05333-8a37-7b9a-9f0f-b7600bbd9693
01a05333-8a37-7cad-a99e-fe75cc260e9a
01a05333-8a37-7dbf-95a6-4e78368989b9

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)

1f1a4842-0c86-6c02-ba95-4cf95d479851
1f1a4842-0c86-6dc4-ba95-4cf95d479851
1f1a4842-0c86-6eaa-ba95-4cf95d479851
1f1a4842-0c86-6f72-ba95-4cf95d479851
1f1a4842-0c87-603a-ba95-4cf95d479851
1f1a4842-0c87-6102-ba95-4cf95d479851
1f1a4842-0c87-61ca-ba95-4cf95d479851
1f1a4842-0c87-6288-ba95-4cf95d479851
1f1a4842-0c87-633c-ba95-4cf95d479851
1f1a4842-0c87-63fa-ba95-4cf95d479851
1f1a4842-0c87-6544-ba95-4cf95d479851
1f1a4842-0c87-6616-ba95-4cf95d479851
1f1a4842-0c87-66ca-ba95-4cf95d479851
1f1a4842-0c87-6792-ba95-4cf95d479851
1f1a4842-0c87-688c-ba95-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)

20c879e0-a484-11f1-ba95-4cf95d479851
20c87a6c-a484-11f1-ba95-4cf95d479851
20c87ada-a484-11f1-ba95-4cf95d479851
20c87b48-a484-11f1-ba95-4cf95d479851
20c87bb6-a484-11f1-ba95-4cf95d479851
20c87c24-a484-11f1-ba95-4cf95d479851
20c87c92-a484-11f1-ba95-4cf95d479851
20c87cf6-a484-11f1-ba95-4cf95d479851
20c87d6e-a484-11f1-ba95-4cf95d479851
20c87dd2-a484-11f1-ba95-4cf95d479851
20c87e40-a484-11f1-ba95-4cf95d479851
20c87ea4-a484-11f1-ba95-4cf95d479851
20c87f08-a484-11f1-ba95-4cf95d479851
20c87f6c-a484-11f1-ba95-4cf95d479851
20c87fd0-a484-11f1-ba95-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)

76f1c829-8903-820f-87ea-5ce32bd83b97
c5b8c929-8903-820f-87ea-5ce32bd83b97
5687ca29-8903-820f-87ea-5ce32bd83b97
ac71cb29-8903-820f-87ea-5ce32bd83b97
6c0dcc29-8903-820f-87ea-5ce32bd83b97
7a6ccd29-8903-820f-87ea-5ce32bd83b97
1b9ecf29-8903-820f-87ea-5ce32bd83b97
c494d029-8903-820f-87ea-5ce32bd83b97
fe4bd129-8903-820f-87ea-5ce32bd83b97
ada1d229-8903-820f-87ea-5ce32bd83b97
7176d329-8903-820f-87ea-5ce32bd83b97
e3bed429-8903-820f-87ea-5ce32bd83b97
0f02d529-8903-820f-87ea-5ce32bd83b97
c781d629-8903-820f-87ea-5ce32bd83b97
d9d5d729-8903-820f-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)

125c50fa-dfc1-4c3a-b27e-1fdfad2fd609
5d7e5116-0c61-49ec-b19a-e6555b257eba
5c602604-3473-472b-8034-506cd0b4bc6f
6c646c8f-d839-47e1-8b4a-ef943c42259b
bf6d9122-8249-4900-b505-3f0ac6bda19e
42c5ca2a-525f-4848-ad6b-0533f64e10a1
f73dabea-eb7d-4586-a2f3-c0ce2960e2f1
d0c98b0d-2efd-4f54-9fad-c47c334adbf8
c85ac66e-d134-46e3-8d25-14658004e569
46b37c60-087b-4a54-888f-24328cd378a0
20b884cd-b3bc-4c8f-85b6-da310d232f53
368b8937-79ed-43e2-bdc4-1aedc2785c80
e7ea5afa-29c7-44be-95bc-6c5f047e9585
2f65bcd4-213c-439e-be6c-1d80d53c5671
d1a1df26-b276-4ecd-a503-822c1edaeaee

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: