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)

01a07417-6f7f-74de-b1e2-6ac87cb17780
01a07417-6f7f-765b-9785-78f61a41cff6
01a07417-6f7f-7796-97ba-08828c9ccfcc
01a07417-6f7f-78ad-809c-67c57e06cc1e
01a07417-6f7f-79c3-9778-1d9588482366
01a07417-6f7f-7ad5-be77-6dea5c19eb58
01a07417-6f7f-7bec-91ee-10fab9851ca1
01a07417-6f7f-7cfe-81ad-9aec829e838b
01a07417-6f7f-7e11-aba3-59610c77228d
01a07417-6f7f-7f23-a136-7a62cce0c543
01a07417-6f80-7036-930d-9238e44aa353
01a07417-6f80-7159-9a75-dd262248c327
01a07417-6f80-726b-bcd6-f4cd51393336
01a07417-6f80-737d-b0f1-70b6cf13c8c8
01a07417-6f80-7490-9923-3d00f5f6daad

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)

1f1a988e-6f4c-671e-add8-4cf95d479851
1f1a988e-6f4c-68b8-add8-4cf95d479851
1f1a988e-6f4c-699e-add8-4cf95d479851
1f1a988e-6f4c-6a70-add8-4cf95d479851
1f1a988e-6f4c-6b2e-add8-4cf95d479851
1f1a988e-6f4c-6bf6-add8-4cf95d479851
1f1a988e-6f4c-6cb4-add8-4cf95d479851
1f1a988e-6f4c-6d72-add8-4cf95d479851
1f1a988e-6f4c-6e30-add8-4cf95d479851
1f1a988e-6f4c-6eee-add8-4cf95d479851
1f1a988e-6f4d-602e-add8-4cf95d479851
1f1a988e-6f4d-60f6-add8-4cf95d479851
1f1a988e-6f4d-61aa-add8-4cf95d479851
1f1a988e-6f4d-6268-add8-4cf95d479851
1f1a988e-6f4d-6326-add8-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)

e6f4d3ee-a988-11f1-add8-4cf95d479851
e6f4d452-a988-11f1-add8-4cf95d479851
e6f4d4b6-a988-11f1-add8-4cf95d479851
e6f4d51a-a988-11f1-add8-4cf95d479851
e6f4d57e-a988-11f1-add8-4cf95d479851
e6f4d5e2-a988-11f1-add8-4cf95d479851
e6f4d646-a988-11f1-add8-4cf95d479851
e6f4d6aa-a988-11f1-add8-4cf95d479851
e6f4d718-a988-11f1-add8-4cf95d479851
e6f4d77c-a988-11f1-add8-4cf95d479851
e6f4d7ea-a988-11f1-add8-4cf95d479851
e6f4d84e-a988-11f1-add8-4cf95d479851
e6f4d8bc-a988-11f1-add8-4cf95d479851
e6f4d920-a988-11f1-add8-4cf95d479851
e6f4d984-a988-11f1-add8-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)

fd7f101c-1600-890f-87ea-5ce32bd83b97
208c121c-1600-890f-87ea-5ce32bd83b97
5a09131c-1600-890f-87ea-5ce32bd83b97
8aea141c-1600-890f-87ea-5ce32bd83b97
8213151c-1600-890f-87ea-5ce32bd83b97
cd14161c-1600-890f-87ea-5ce32bd83b97
6806171c-1600-890f-87ea-5ce32bd83b97
b18e181c-1600-890f-87ea-5ce32bd83b97
f245191c-1600-890f-87ea-5ce32bd83b97
f0ec1a1c-1600-890f-87ea-5ce32bd83b97
f3041b1c-1600-890f-87ea-5ce32bd83b97
e47c1c1c-1600-890f-87ea-5ce32bd83b97
9a361d1c-1600-890f-87ea-5ce32bd83b97
a2f21e1c-1600-890f-87ea-5ce32bd83b97
11331f1c-1600-890f-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)

509659f9-9c3a-40ee-b163-9148dbb261b0
543a5e52-d33a-4b1e-96fb-a1d00625f77c
d83b761a-2be1-43b5-ba7b-32a07e6e1538
b3ab49b1-c65d-41dc-8150-28b2fcb3655c
afb945c6-d80f-4a71-9119-76970de4fbb5
6b3b19b7-f5ea-43be-95a1-f49f5b873029
19c90602-1e66-4721-a9c8-bc6f935e08e3
0f079cef-b5af-4d1e-9bdc-885a1f0c111a
0c75ff8a-15aa-4981-9ab6-1b7983eba31b
aec2f3d9-3bbf-49b0-9c8a-577a95a41774
6f63389f-76ed-4a5b-a207-6ac7e243c9b0
c135df51-e0d9-46cf-9ff4-42cf9f0af79f
535a2594-715b-44b8-8a35-b836e31f82fc
7c8b6ccf-c462-4700-b6a2-1e555275c6cb
63301ab2-d9ea-4cde-abab-605364a89115

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: