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)

018efb99-d042-7ea8-92ab-c519bac86023
018efb99-d043-703e-bd0d-857623ee26cd
018efb99-d043-7182-99ef-b5ef8dca5af0
018efb99-d043-72a4-89ec-7cceadfbe8ab
018efb99-d043-73bf-ae44-15d498406c87
018efb99-d043-74da-ad06-92aef063f3d0
018efb99-d043-75f8-a746-fa071af2e090
018efb99-d043-7713-87fd-32766f5053c1
018efb99-d043-782e-9cc9-a250f88cfba2
018efb99-d043-7948-ac7e-4e00d42e3757
018efb99-d043-7a63-9e65-4cc0d94eb2f9
018efb99-d043-7b7d-8730-d1916ee7d3ab
018efb99-d043-7c98-959e-49bdee507ba6
018efb99-d043-7db3-b922-10a54abf2600
018efb99-d043-7ecd-b436-a7870c26ede9

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)

1eeff163-bd8a-6158-b07a-4cf95d479851
1eeff163-bd8a-62fc-b07a-4cf95d479851
1eeff163-bd8a-63e2-b07a-4cf95d479851
1eeff163-bd8a-64aa-b07a-4cf95d479851
1eeff163-bd8a-6568-b07a-4cf95d479851
1eeff163-bd8a-6630-b07a-4cf95d479851
1eeff163-bd8a-66ee-b07a-4cf95d479851
1eeff163-bd8a-67ac-b07a-4cf95d479851
1eeff163-bd8a-686a-b07a-4cf95d479851
1eeff163-bd8a-6928-b07a-4cf95d479851
1eeff163-bd8a-6a5e-b07a-4cf95d479851
1eeff163-bd8a-6b26-b07a-4cf95d479851
1eeff163-bd8a-6bee-b07a-4cf95d479851
1eeff163-bd8a-6cac-b07a-4cf95d479851
1eeff163-bd8a-6d6a-b07a-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)

ce3d341a-57b5-4ce4-a6d5-0c302320089a
158c6185-04f4-4927-ab0b-b06e87191bb3
8b8e16f5-8314-4dd6-88d7-69cfc8a866b1
1295af46-6628-4979-accb-fbe0f48e00e4
753a1121-b98d-4efb-9c1b-34ac4d942d99
583e65ee-98c4-4f93-8d5c-39fa068ee2f1
9bb85757-eeb2-4171-acc5-d388a24c406a
f6cb0777-e951-4be0-9830-07e59de253f6
7ea6974e-9b93-4fdc-8c34-f4f9d7533bcb
8e3b26af-d1af-4cb0-923b-6f3aea16ebdc
8d77585c-194e-46f3-a292-000ed494baa8
ba814dc5-b2f8-42b5-8abb-9685bbe36bbd
4a6af720-6562-407f-8c8f-58cf152eebbb
9a8e70ad-b255-4129-9c70-adac96b8150b
3d2847dc-fedf-41a8-af79-52ee5f2e85a9

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)

3bd8b29c-ff16-11ee-b07a-4cf95d479851
3bd8b2f6-ff16-11ee-b07a-4cf95d479851
3bd8b35a-ff16-11ee-b07a-4cf95d479851
3bd8b3be-ff16-11ee-b07a-4cf95d479851
3bd8b418-ff16-11ee-b07a-4cf95d479851
3bd8b472-ff16-11ee-b07a-4cf95d479851
3bd8b4d6-ff16-11ee-b07a-4cf95d479851
3bd8b544-ff16-11ee-b07a-4cf95d479851
3bd8b5a8-ff16-11ee-b07a-4cf95d479851
3bd8b60c-ff16-11ee-b07a-4cf95d479851
3bd8b666-ff16-11ee-b07a-4cf95d479851
3bd8b6c0-ff16-11ee-b07a-4cf95d479851
3bd8b724-ff16-11ee-b07a-4cf95d479851
3bd8b77e-ff16-11ee-b07a-4cf95d479851
3bd8b7e2-ff16-11ee-b07a-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)

07bc5919-030f-806f-87e8-5ce32bd83b96
067d5a19-030f-806f-87e8-5ce32bd83b96
50c95b19-030f-806f-87e8-5ce32bd83b96
68065c19-030f-806f-87e8-5ce32bd83b96
9b4d5d19-030f-806f-87e8-5ce32bd83b96
3c715e19-030f-806f-87e8-5ce32bd83b96
c7d65f19-030f-806f-87e8-5ce32bd83b96
6d7b6019-030f-806f-87e8-5ce32bd83b96
f3096119-030f-806f-87e8-5ce32bd83b96
370a6219-030f-806f-87e8-5ce32bd83b96
d4b16319-030f-806f-87e8-5ce32bd83b96
c39a6419-030f-806f-87e8-5ce32bd83b96
4b926519-030f-806f-87e8-5ce32bd83b96
760f6619-030f-806f-87e8-5ce32bd83b96
76606719-030f-806f-87e8-5ce32bd83b96

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

An 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

An UUIDv3 is made out of a MD5 hash and an 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: