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)

01a0ba72-a3fb-72bd-b84f-3d54a4ffaa19
01a0ba72-a3fb-744e-ae19-4fc24e010e77
01a0ba72-a3fb-758a-8f0a-88ef3efdba2c
01a0ba72-a3fb-76a8-b731-827effd92dff
01a0ba72-a3fb-77bb-bcb3-13be5c2b5079
01a0ba72-a3fb-78d1-9cdc-98aaa551772e
01a0ba72-a3fb-79e4-a207-ddbcdc2210df
01a0ba72-a3fb-7afa-b570-aa029e88bc96
01a0ba72-a3fb-7c0d-97a4-547f4ead53d5
01a0ba72-a3fb-7d1f-8b3f-b5e25a257c1f
01a0ba72-a3fb-7e32-a102-46f334e1df6f
01a0ba72-a3fb-7f44-8c8e-bc101b92b27e
01a0ba72-a3fc-705b-95b8-71e9fa92dd2d
01a0ba72-a3fc-7171-ad4b-cd3a52f9b3f8
01a0ba72-a3fc-7288-98ea-93cf03bda962

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)

1f1b4453-1a6e-6ed8-9da0-4cf95d479851
1f1b4453-1a6f-60d6-9da0-4cf95d479851
1f1b4453-1a6f-61c6-9da0-4cf95d479851
1f1b4453-1a6f-6298-9da0-4cf95d479851
1f1b4453-1a6f-6360-9da0-4cf95d479851
1f1b4453-1a6f-6428-9da0-4cf95d479851
1f1b4453-1a6f-64fa-9da0-4cf95d479851
1f1b4453-1a6f-65b8-9da0-4cf95d479851
1f1b4453-1a6f-6680-9da0-4cf95d479851
1f1b4453-1a6f-6748-9da0-4cf95d479851
1f1b4453-1a6f-68a6-9da0-4cf95d479851
1f1b4453-1a6f-6978-9da0-4cf95d479851
1f1b4453-1a6f-6a36-9da0-4cf95d479851
1f1b4453-1a6f-6afe-9da0-4cf95d479851
1f1b4453-1a6f-6bc6-9da0-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)

31a6fcac-b445-11f1-9da0-4cf95d479851
31a6fd24-b445-11f1-9da0-4cf95d479851
31a6fd92-b445-11f1-9da0-4cf95d479851
31a6fe0a-b445-11f1-9da0-4cf95d479851
31a6fe6e-b445-11f1-9da0-4cf95d479851
31a6fedc-b445-11f1-9da0-4cf95d479851
31a6ff40-b445-11f1-9da0-4cf95d479851
31a6ffa4-b445-11f1-9da0-4cf95d479851
31a70008-b445-11f1-9da0-4cf95d479851
31a7006c-b445-11f1-9da0-4cf95d479851
31a700da-b445-11f1-9da0-4cf95d479851
31a7013e-b445-11f1-9da0-4cf95d479851
31a701a2-b445-11f1-9da0-4cf95d479851
31a7021a-b445-11f1-9da0-4cf95d479851
31a7027e-b445-11f1-9da0-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)

f296651e-cf03-8610-87ea-5ce32bd83b97
34eb661e-cf03-8610-87ea-5ce32bd83b97
d932671e-cf03-8610-87ea-5ce32bd83b97
189e681e-cf03-8610-87ea-5ce32bd83b97
dfcb691e-cf03-8610-87ea-5ce32bd83b97
95ff6a1e-cf03-8610-87ea-5ce32bd83b97
ea386b1e-cf03-8610-87ea-5ce32bd83b97
0c766c1e-cf03-8610-87ea-5ce32bd83b97
3c786e1e-cf03-8610-87ea-5ce32bd83b97
606a6f1e-cf03-8610-87ea-5ce32bd83b97
6558701e-cf03-8610-87ea-5ce32bd83b97
59b0711e-cf03-8610-87ea-5ce32bd83b97
79ef721e-cf03-8610-87ea-5ce32bd83b97
ef7e731e-cf03-8610-87ea-5ce32bd83b97
ee23741e-cf03-8610-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)

f98ac91c-bc6e-47d8-9474-00d24554658b
58191051-20e0-46ba-b20b-2feca13cc745
31c77268-346f-4bab-9b0d-7cca1649dbb3
6b5a2c85-84ca-4c71-aeb5-4d8b1772b7ef
b0fe9e54-acfe-4977-a145-10baeabeb651
6bc6a997-f02e-42c9-a3d5-3f242d4285db
d8dfc4a7-bcbe-40db-b184-f5c6123519c0
6f7a9806-af5c-4ffa-8199-ec9635253ab5
5dc20b60-231a-498c-8c06-9cb04b237e89
e5154808-7008-481c-98be-f6934bea477a
027854b5-49a9-4812-9b3c-9c2e95b366cf
a4883b29-7ea5-4bea-a43e-9e1b15b6595a
fabcac99-a426-4ffc-aba9-5bedacb79aae
67f91e1b-d24e-48f8-ad74-19183e12cab1
0717b17a-b4e6-470b-85ec-0554b85fe83e

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: