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)

0197d341-9a34-709c-a6b3-9784b9c91f6e
0197d341-9a34-7236-acc4-6e9342efd859
0197d341-9a34-7375-8952-30f204daec2a
0197d341-9a34-7494-a6de-536bb3ccbb12
0197d341-9a34-75af-89bc-f58f81f45cf7
0197d341-9a34-76c9-8e7c-f4431cd289d7
0197d341-9a34-77e0-9ce1-8ef7f2913bc2
0197d341-9a34-78fe-87e7-f3bde2eb35b3
0197d341-9a34-7a19-89d9-b2688e23a5ab
0197d341-9a34-7a9c-9276-0c6a43daf3ad
0197d341-9a34-7bbf-b954-3125b9274379
0197d341-9a34-7cd5-8cce-08b67e2e26df
0197d341-9a34-7df0-8f88-14de95c41476
0197d341-9a34-7f07-ab53-33c84a711a5f
0197d341-9a35-7021-8b09-e3c47aaedb8c

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)

1f0587e4-618f-6a74-be72-4cf95d479851
1f0587e4-618f-6c04-be72-4cf95d479851
1f0587e4-618f-6cea-be72-4cf95d479851
1f0587e4-618f-6db2-be72-4cf95d479851
1f0587e4-618f-6e70-be72-4cf95d479851
1f0587e4-618f-6f2e-be72-4cf95d479851
1f0587e4-618f-6fec-be72-4cf95d479851
1f0587e4-6190-60aa-be72-4cf95d479851
1f0587e4-6190-6168-be72-4cf95d479851
1f0587e4-6190-6226-be72-4cf95d479851
1f0587e4-6190-6352-be72-4cf95d479851
1f0587e4-6190-6424-be72-4cf95d479851
1f0587e4-6190-64d8-be72-4cf95d479851
1f0587e4-6190-658c-be72-4cf95d479851
1f0587e4-6190-664a-be72-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)

4dae219b-23a9-4eff-ba8d-2441b1d3ca38
dbac9ff8-d01d-43d7-ac2e-7830e23480cb
f677702f-ca39-4655-8e4f-2fc98f373f77
5b043613-929a-4775-840a-9c8d4cd309fa
91cbf7f5-b272-4af9-bec4-a87aad9dde38
dc6cd47b-7eba-4f6c-becd-92b857b2e014
39ad10e3-f99d-454c-95da-e849b5bdedaf
af30da1e-bff7-46f5-a402-75e637fc25d4
d5ee0a00-2387-44d8-b6c4-fe80af360bea
b2d2e41d-a0a7-4c87-9d5a-25bf577dd7a1
d281e714-c297-4ee9-a4a9-00aae61b6052
dc8111a1-cd9d-4a12-a88b-2bcd8b9f3466
79ff0405-9d3e-472c-93c4-1b2f64b0f6d3
81ab9d10-fd83-44ae-a983-a4331e359b22
8c57a1a2-12ba-457a-964d-7b66c995fce0

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)

46190b54-587e-11f0-be72-4cf95d479851
46190bb8-587e-11f0-be72-4cf95d479851
46190c1c-587e-11f0-be72-4cf95d479851
46190c76-587e-11f0-be72-4cf95d479851
46190cda-587e-11f0-be72-4cf95d479851
46190d34-587e-11f0-be72-4cf95d479851
46190d8e-587e-11f0-be72-4cf95d479851
46190de8-587e-11f0-be72-4cf95d479851
46190e4c-587e-11f0-be72-4cf95d479851
46190eb0-587e-11f0-be72-4cf95d479851
46190f14-587e-11f0-be72-4cf95d479851
46190f6e-587e-11f0-be72-4cf95d479851
46190fc8-587e-11f0-be72-4cf95d479851
46191022-587e-11f0-be72-4cf95d479851
46191086-587e-11f0-be72-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)

bae75d15-9300-890b-87e9-5ce32bd83b97
5b6d5e15-9300-890b-87e9-5ce32bd83b97
72675f15-9300-890b-87e9-5ce32bd83b97
e12b6015-9300-890b-87e9-5ce32bd83b97
f86e6215-9300-890b-87e9-5ce32bd83b97
7d046315-9300-890b-87e9-5ce32bd83b97
85946415-9300-890b-87e9-5ce32bd83b97
acf66515-9300-890b-87e9-5ce32bd83b97
2e136615-9300-890b-87e9-5ce32bd83b97
ef206715-9300-890b-87e9-5ce32bd83b97
1b106815-9300-890b-87e9-5ce32bd83b97
14906915-9300-890b-87e9-5ce32bd83b97
294d6a15-9300-890b-87e9-5ce32bd83b97
77576b15-9300-890b-87e9-5ce32bd83b97
11856c15-9300-890b-87e9-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

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: