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)

019df15d-9b38-775d-a119-72afab5ef8b5
019df15d-9b38-7940-8951-e2d167b52f60
019df15d-9b38-7b0b-8634-5c3a4b490ea2
019df15d-9b38-7ca4-8136-6db87c3107be
019df15d-9b38-7e15-8685-077cc8d573b7
019df15d-9b38-7f79-af80-94095120b928
019df15d-9b39-70de-b715-1ece106106c7
019df15d-9b39-7242-bd0c-d7c4ebdcca77
019df15d-9b39-73a6-b81e-b612049d2514
019df15d-9b39-750b-8ef3-0a4863b5f686
019df15d-9b39-7663-a728-7414af765d73
019df15d-9b39-77c3-b016-f786951bf926
019df15d-9b39-794c-ab27-9c9dde037e00
019df15d-9b39-7ab5-8e35-af6a0d8a364b
019df15d-9b39-7c19-8ebb-53f8a606e906

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)

1f147766-c00c-650e-a551-4cf95d479851
1f147766-c00c-678e-a551-4cf95d479851
1f147766-c00c-69a0-a551-4cf95d479851
1f147766-c00c-6b3a-a551-4cf95d479851
1f147766-c00c-6cc0-a551-4cf95d479851
1f147766-c00c-6e46-a551-4cf95d479851
1f147766-c00c-6fc2-a551-4cf95d479851
1f147766-c00d-6134-a551-4cf95d479851
1f147766-c00d-62ba-a551-4cf95d479851
1f147766-c00d-6436-a551-4cf95d479851
1f147766-c00d-6670-a551-4cf95d479851
1f147766-c00d-67e2-a551-4cf95d479851
1f147766-c00d-6940-a551-4cf95d479851
1f147766-c00d-6ac6-a551-4cf95d479851
1f147766-c00d-6c56-a551-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)

45c46e09-4641-4ce9-8f27-5fb893131cb0
8756b8ce-aa4a-42d6-a075-f4cfa69df1df
e0cf9dda-c911-4792-bb5d-4485376357d5
402babf1-d7b6-43d9-95bc-459325e90b58
ee53a91f-40a1-49be-842c-24b863fd1336
51f40868-0644-4020-86ae-c60aebfbc813
69158ffb-aeaf-4878-853b-b90709754b83
b5878132-029d-4770-8652-3a2a92870548
b77005f4-8d0e-4fff-be68-b7ef7430da02
7457ebd8-d2aa-45fe-895e-4141da09bdc0
c7d6051f-22be-4046-a4a1-e7f23339f255
2b297799-f1aa-41cd-8e3f-98acf5032daa
a62dacf1-e3e9-4e2f-b33c-c0dce93ee65a
977556db-d81e-4e04-a197-9c98b48aea6e
76187a23-9401-483f-8cce-bef97a9a45d5

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)

6c00e3a4-4776-11f1-a551-4cf95d479851
6c00e444-4776-11f1-a551-4cf95d479851
6c00e4da-4776-11f1-a551-4cf95d479851
6c00e57a-4776-11f1-a551-4cf95d479851
6c00e606-4776-11f1-a551-4cf95d479851
6c00e69c-4776-11f1-a551-4cf95d479851
6c00e73c-4776-11f1-a551-4cf95d479851
6c00e7dc-4776-11f1-a551-4cf95d479851
6c00e872-4776-11f1-a551-4cf95d479851
6c00e91c-4776-11f1-a551-4cf95d479851
6c00e9bc-4776-11f1-a551-4cf95d479851
6c00ea66-4776-11f1-a551-4cf95d479851
6c00eb06-4776-11f1-a551-4cf95d479851
6c00eba6-4776-11f1-a551-4cf95d479851
6c00ec46-4776-11f1-a551-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)

6678e310-2f01-8c07-87ea-5ce32bd83b97
bc43e410-2f01-8c07-87ea-5ce32bd83b97
d787e510-2f01-8c07-87ea-5ce32bd83b97
08dae610-2f01-8c07-87ea-5ce32bd83b97
d827e810-2f01-8c07-87ea-5ce32bd83b97
db56e910-2f01-8c07-87ea-5ce32bd83b97
b74dea10-2f01-8c07-87ea-5ce32bd83b97
d943eb10-2f01-8c07-87ea-5ce32bd83b97
4c62ec10-2f01-8c07-87ea-5ce32bd83b97
1576ed10-2f01-8c07-87ea-5ce32bd83b97
79eaee10-2f01-8c07-87ea-5ce32bd83b97
b420ef10-2f01-8c07-87ea-5ce32bd83b97
8a2df010-2f01-8c07-87ea-5ce32bd83b97
96f1f110-2f01-8c07-87ea-5ce32bd83b97
2227f210-2f01-8c07-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: