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)

01a042fc-6f42-752c-a315-b03f0bbc4a7a
01a042fc-6f42-76cd-b005-3ce6489fca8c
01a042fc-6f42-7809-a92b-77f20f3d5143
01a042fc-6f42-7923-9fd4-54426876c392
01a042fc-6f42-7a46-8e3e-9718c4823b01
01a042fc-6f42-7b59-9402-fe1bcbe4f917
01a042fc-6f42-7c6b-b552-cc597eda3dbb
01a042fc-6f42-7d7d-8fda-36d3abc66d23
01a042fc-6f42-7e90-8479-0a8842a2be39
01a042fc-6f42-7fa2-b230-733b70523ad9
01a042fc-6f43-70b5-a82c-aa8d7798df3e
01a042fc-6f43-71c7-8a81-60dbbac6468a
01a042fc-6f43-72da-8c2b-e022e1423787
01a042fc-6f43-73ec-a5ba-11fc740f2bdb
01a042fc-6f43-74fa-b416-0b0e5ab58e9d

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)

1f1a20ab-83b7-6ace-8b4d-4cf95d479851
1f1a20ab-83b7-6c72-8b4d-4cf95d479851
1f1a20ab-83b7-6d62-8b4d-4cf95d479851
1f1a20ab-83b7-6e34-8b4d-4cf95d479851
1f1a20ab-83b7-6efc-8b4d-4cf95d479851
1f1a20ab-83b7-6fce-8b4d-4cf95d479851
1f1a20ab-83b8-6096-8b4d-4cf95d479851
1f1a20ab-83b8-6154-8b4d-4cf95d479851
1f1a20ab-83b8-621c-8b4d-4cf95d479851
1f1a20ab-83b8-62da-8b4d-4cf95d479851
1f1a20ab-83b8-644c-8b4d-4cf95d479851
1f1a20ab-83b8-651e-8b4d-4cf95d479851
1f1a20ab-83b8-65f0-8b4d-4cf95d479851
1f1a20ab-83b8-66b8-8b4d-4cf95d479851
1f1a20ab-83b8-678a-8b4d-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)

b83b8866-a20a-11f1-8b4d-4cf95d479851
b83b88ca-a20a-11f1-8b4d-4cf95d479851
b83b8924-a20a-11f1-8b4d-4cf95d479851
b83b8988-a20a-11f1-8b4d-4cf95d479851
b83b89e2-a20a-11f1-8b4d-4cf95d479851
b83b8a46-a20a-11f1-8b4d-4cf95d479851
b83b8aa0-a20a-11f1-8b4d-4cf95d479851
b83b8b04-a20a-11f1-8b4d-4cf95d479851
b83b8b5e-a20a-11f1-8b4d-4cf95d479851
b83b8bc2-a20a-11f1-8b4d-4cf95d479851
b83b8c26-a20a-11f1-8b4d-4cf95d479851
b83b8c8a-a20a-11f1-8b4d-4cf95d479851
b83b8cf8-a20a-11f1-8b4d-4cf95d479851
b83b8d52-a20a-11f1-8b4d-4cf95d479851
b83b8dc0-a20a-11f1-8b4d-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)

79d5f222-b302-8f0e-87ea-5ce32bd83b97
caa4f322-b302-8f0e-87ea-5ce32bd83b97
10c3f422-b302-8f0e-87ea-5ce32bd83b97
238df522-b302-8f0e-87ea-5ce32bd83b97
688ef622-b302-8f0e-87ea-5ce32bd83b97
54b7f722-b302-8f0e-87ea-5ce32bd83b97
fc49f822-b302-8f0e-87ea-5ce32bd83b97
4ee3f922-b302-8f0e-87ea-5ce32bd83b97
42aafa22-b302-8f0e-87ea-5ce32bd83b97
f5dffb22-b302-8f0e-87ea-5ce32bd83b97
0e20fc22-b302-8f0e-87ea-5ce32bd83b97
189efd22-b302-8f0e-87ea-5ce32bd83b97
8183fe22-b302-8f0e-87ea-5ce32bd83b97
d72a0023-b302-8f0e-87ea-5ce32bd83b97
56360123-b302-8f0e-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)

ed523cd9-a091-436d-bfb0-1e56abf8a2e0
1d52a5d2-db25-410b-b3b5-656b74f34034
bf85e70a-b50a-4c57-82bf-36280d707983
ade11c68-d276-4932-824b-182786e64181
fe5b1723-fb84-45f6-9bda-72e625f0a8d2
48cca511-23b6-47fc-b073-dcddaec02e0f
5c268308-605e-4ad4-b7d3-41fb9a37bbf4
1d10ca05-0743-4cbd-9535-a409307e1afc
453846dd-5469-419e-b814-1ef154cc5f8c
a5d193be-a2e0-4f1b-915d-fe3a03340299
57be9d77-f04a-4f84-a4f1-c0a2f809d08d
4631b0f1-5a5f-4988-ac68-2a7420d3179c
2090e834-abd0-47e0-adf9-7b2a590ee9a1
834b0c5d-14e0-4e57-ba7f-c753b6698818
376327fc-7735-431d-a913-851f223faf80

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: