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)

01a18a40-05eb-746b-8171-6befedfd9e6c
01a18a40-05eb-7657-8257-52c6582a2015
01a18a40-05eb-779a-acd1-9b62bedf9043
01a18a40-05eb-78b9-9071-0929d89c4660
01a18a40-05eb-79cf-b301-4bb189ee6978
01a18a40-05eb-7ae6-9bf5-b466dbdde96c
01a18a40-05eb-7bfc-bf66-09c079fb77eb
01a18a40-05eb-7d0f-8856-e4d445502c5f
01a18a40-05eb-7e25-9e43-78cf9ad0973e
01a18a40-05eb-7f3c-9248-238eec28a2e9
01a18a40-05ec-7052-a458-5841a9c25206
01a18a40-05ec-7169-a947-3cc937512e38
01a18a40-05ec-727f-8d77-c6ebf823e013
01a18a40-05ec-7396-8481-9ae773781914
01a18a40-05ec-74a8-bf95-28477150749a

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)

1f1d3fa7-868a-6436-8720-4cf95d479851
1f1d3fa7-868a-663e-8720-4cf95d479851
1f1d3fa7-868a-6738-8720-4cf95d479851
1f1d3fa7-868a-680a-8720-4cf95d479851
1f1d3fa7-868a-68dc-8720-4cf95d479851
1f1d3fa7-868a-69c2-8720-4cf95d479851
1f1d3fa7-868a-6a8a-8720-4cf95d479851
1f1d3fa7-868a-6b5c-8720-4cf95d479851
1f1d3fa7-868a-6c2e-8720-4cf95d479851
1f1d3fa7-868a-6d00-8720-4cf95d479851
1f1d3fa7-868a-6e68-8720-4cf95d479851
1f1d3fa7-868a-6f4e-8720-4cf95d479851
1f1d3fa7-868b-6020-8720-4cf95d479851
1f1d3fa7-868b-60e8-8720-4cf95d479851
1f1d3fa7-868b-61b0-8720-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)

7868b28c-d3fa-11f1-8720-4cf95d479851
7868b2fa-d3fa-11f1-8720-4cf95d479851
7868b35e-d3fa-11f1-8720-4cf95d479851
7868b3b8-d3fa-11f1-8720-4cf95d479851
7868b41c-d3fa-11f1-8720-4cf95d479851
7868b480-d3fa-11f1-8720-4cf95d479851
7868b4da-d3fa-11f1-8720-4cf95d479851
7868b53e-d3fa-11f1-8720-4cf95d479851
7868b5a2-d3fa-11f1-8720-4cf95d479851
7868b5fc-d3fa-11f1-8720-4cf95d479851
7868b660-d3fa-11f1-8720-4cf95d479851
7868b6ba-d3fa-11f1-8720-4cf95d479851
7868b714-d3fa-11f1-8720-4cf95d479851
7868b76e-d3fa-11f1-8720-4cf95d479851
7868b7d2-d3fa-11f1-8720-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)

629c100e-2900-8f12-87ea-5ce32bd83b97
458b110e-2900-8f12-87ea-5ce32bd83b97
164e120e-2900-8f12-87ea-5ce32bd83b97
83c0130e-2900-8f12-87ea-5ce32bd83b97
b408140e-2900-8f12-87ea-5ce32bd83b97
29b3150e-2900-8f12-87ea-5ce32bd83b97
a49e160e-2900-8f12-87ea-5ce32bd83b97
d303170e-2900-8f12-87ea-5ce32bd83b97
d4b9180e-2900-8f12-87ea-5ce32bd83b97
0ebc190e-2900-8f12-87ea-5ce32bd83b97
d9ab1a0e-2900-8f12-87ea-5ce32bd83b97
3ad01b0e-2900-8f12-87ea-5ce32bd83b97
60511c0e-2900-8f12-87ea-5ce32bd83b97
f3051d0e-2900-8f12-87ea-5ce32bd83b97
76de1e0e-2900-8f12-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)

2d8e20b4-d2a0-46f3-95a6-325a212d85f4
b8fd64e2-8f22-4842-b7e3-8f0553f57a0d
059f4f9f-5285-4af9-84cf-aff2c0f93fc3
20bd65ea-1a9b-4525-b842-1327a91d6630
fdc5eaf6-5432-4aca-930a-f8f9245ffb5d
96aad968-5ca2-4761-9fc3-261444ec720e
db707603-4085-46ef-b110-0e65d707d562
0053bd68-e97c-4f69-99e4-864c969adaf6
a083c61b-b724-43a5-88d2-8c8c2588d7c2
c339d05c-5c02-4e97-9b91-973da590344b
7e219eb3-b317-4f2f-9e11-e28e59a05714
0315b0fe-0c45-42f6-9bad-ee7f6ec5da2d
58195302-86b6-495b-b864-709cd258bc4a
52c1bb18-f74b-4e26-adb6-58d48adf5cfd
e2ab8a43-f68c-47fe-8f32-b5babf54d997

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: