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)

019bf5e3-6d76-780d-a7f1-c30ca45ed85a
019bf5e3-6d76-79e0-a211-0660077ed7ab
019bf5e3-6d76-7b50-b1d6-de990df2cbba
019bf5e3-6d76-7cad-8320-62b106519737
019bf5e3-6d76-7df4-b87c-74d87d10a25f
019bf5e3-6d76-7f40-827a-7990e274c887
019bf5e3-6d77-707f-b8a3-b41898c28f18
019bf5e3-6d77-71c3-aea8-1cc4a90a4fd1
019bf5e3-6d77-730b-919e-b69a22a2a37a
019bf5e3-6d77-7457-966b-4e1e5fa4a871
019bf5e3-6d77-759a-8906-b984f768e119
019bf5e3-6d77-76e6-9289-e630301894ab
019bf5e3-6d77-7829-b19a-9f0b37bdabcf
019bf5e3-6d77-7969-8300-713c6b9138f1
019bf5e3-6d77-7aa8-8252-808d3d434722

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)

1f0fa071-7655-66f2-883c-4cf95d479851
1f0fa071-7655-690e-883c-4cf95d479851
1f0fa071-7655-6a6c-883c-4cf95d479851
1f0fa071-7655-6bb6-883c-4cf95d479851
1f0fa071-7655-6cf6-883c-4cf95d479851
1f0fa071-7655-6e22-883c-4cf95d479851
1f0fa071-7655-6f62-883c-4cf95d479851
1f0fa071-7656-6098-883c-4cf95d479851
1f0fa071-7656-61e2-883c-4cf95d479851
1f0fa071-7656-6318-883c-4cf95d479851
1f0fa071-7656-64da-883c-4cf95d479851
1f0fa071-7656-661a-883c-4cf95d479851
1f0fa071-7656-6750-883c-4cf95d479851
1f0fa071-7656-6886-883c-4cf95d479851
1f0fa071-7656-69bc-883c-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)

d3658dbd-c577-4d55-bdc4-91738ea05e09
c3285d50-a0fd-4c67-aa24-72dd12c42f10
20f69ace-3773-4ed4-bb93-f3f6453f2d3a
dbba5374-92e8-42cf-be45-71723439b0bf
d5852226-e89a-42c4-8942-5a27cce19646
79c49517-2bac-49fc-aee9-975828ddbc84
1c32056c-ff41-4eee-baa8-885ec24a34e5
64d15ce5-1767-4bc4-8643-00e7ff2f4a88
a9252c73-fa89-4d15-8af8-9e66da9fccd5
dd621cd2-f2c6-4316-b720-96bcb9484759
73619cce-e679-45ce-96ce-e772993d00c4
f02297eb-571e-4710-83b2-0d6b21331a42
c00f44aa-7158-4f6e-ac63-f34c80d5b979
03235d08-29a8-48bf-aa1f-0fa60ce24fb8
1300c9ee-e108-4168-ab36-a9d613935aaa

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)

1765707e-fa07-11f0-883c-4cf95d479851
17657114-fa07-11f0-883c-4cf95d479851
17657196-fa07-11f0-883c-4cf95d479851
17657222-fa07-11f0-883c-4cf95d479851
176572a4-fa07-11f0-883c-4cf95d479851
17657326-fa07-11f0-883c-4cf95d479851
176573b2-fa07-11f0-883c-4cf95d479851
17657452-fa07-11f0-883c-4cf95d479851
176574d4-fa07-11f0-883c-4cf95d479851
17657560-fa07-11f0-883c-4cf95d479851
176575ec-fa07-11f0-883c-4cf95d479851
1765766e-fa07-11f0-883c-4cf95d479851
176576fa-fa07-11f0-883c-4cf95d479851
17657786-fa07-11f0-883c-4cf95d479851
17657808-fa07-11f0-883c-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)

c16f4515-c203-8901-87ea-5ce32bd83b97
33274615-c203-8901-87ea-5ce32bd83b97
2d5b4715-c203-8901-87ea-5ce32bd83b97
2b824915-c203-8901-87ea-5ce32bd83b97
62f54a15-c203-8901-87ea-5ce32bd83b97
058d4b15-c203-8901-87ea-5ce32bd83b97
0f584c15-c203-8901-87ea-5ce32bd83b97
7c864d15-c203-8901-87ea-5ce32bd83b97
d74e4e15-c203-8901-87ea-5ce32bd83b97
f0b74f15-c203-8901-87ea-5ce32bd83b97
0ab35015-c203-8901-87ea-5ce32bd83b97
f45c5115-c203-8901-87ea-5ce32bd83b97
23b65215-c203-8901-87ea-5ce32bd83b97
210b5315-c203-8901-87ea-5ce32bd83b97
82875415-c203-8901-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: