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)

019b5527-6a21-7684-a735-2bfc137ab22c
019b5527-6a21-781d-bd44-f042d73e0dc5
019b5527-6a21-7965-9a8c-7863c4f89b03
019b5527-6a21-7a88-87ee-0d2a8973d8ca
019b5527-6a21-7ba2-b027-81bb6ba6046c
019b5527-6a21-7cb9-928e-1c721af2d1a0
019b5527-6a21-7dd3-adb9-4416b5570ae9
019b5527-6a21-7eea-bed9-ee136bbdf1db
019b5527-6a21-7005-9d8c-e9fa2de2afc1
019b5527-6a22-711f-a214-e23d22311e48
019b5527-6a22-723a-b7b1-75c72b0d593c
019b5527-6a22-7354-b61e-2230f815b571
019b5527-6a22-746b-97d6-ba480bc461f4
019b5527-6a22-7586-9e5c-632c9b58c1ba
019b5527-6a22-76a0-b823-06eeb2032e12

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)

1f0e1806-7232-6416-a451-4cf95d479851
1f0e1806-7232-65b0-a451-4cf95d479851
1f0e1806-7232-6696-a451-4cf95d479851
1f0e1806-7232-675e-a451-4cf95d479851
1f0e1806-7232-681c-a451-4cf95d479851
1f0e1806-7232-68da-a451-4cf95d479851
1f0e1806-7232-6998-a451-4cf95d479851
1f0e1806-7232-6a4c-a451-4cf95d479851
1f0e1806-7232-6b0a-a451-4cf95d479851
1f0e1806-7232-6bbe-a451-4cf95d479851
1f0e1806-7232-6cf4-a451-4cf95d479851
1f0e1806-7232-6db2-a451-4cf95d479851
1f0e1806-7232-6e70-a451-4cf95d479851
1f0e1806-7232-6f24-a451-4cf95d479851
1f0e1806-7232-6fe2-a451-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)

f3cc3cf5-219b-424e-899e-3d4b30385721
63acef39-b5cd-4917-a4e2-e17362d3ca09
45068a61-d7cf-4b1c-b2a0-ddcd6b3d53d1
1406d8d0-d1d5-46c1-994a-203536fb9512
a5a9b974-5223-4124-ab86-eb2e7c89a7ba
d95a30a5-f355-429b-8113-3c82a152d611
d2707733-92c7-484f-9edb-eb7b3edd81cb
7e2e710d-66b5-4534-b14e-be03acb694fc
21470d80-7f18-49c5-b5f0-40304de48ddd
877659b1-69eb-4caf-a1b8-3eb0a39098ff
29096a78-5bd1-48e3-abb3-c4c0adbce9db
32252537-9594-4fb6-b180-7690e132de26
fd1afad3-6233-46f7-a16d-dbdab79e1241
f1ef5808-2c2c-4ccd-a000-09d229f434bd
306f9cc5-e6da-431d-9d5c-5fbde59e96e9

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)

67233500-e180-11f0-a451-4cf95d479851
6723355a-e180-11f0-a451-4cf95d479851
672335b4-e180-11f0-a451-4cf95d479851
6723360e-e180-11f0-a451-4cf95d479851
67233672-e180-11f0-a451-4cf95d479851
672336e0-e180-11f0-a451-4cf95d479851
67233744-e180-11f0-a451-4cf95d479851
672337a8-e180-11f0-a451-4cf95d479851
6723380c-e180-11f0-a451-4cf95d479851
67233870-e180-11f0-a451-4cf95d479851
672338ca-e180-11f0-a451-4cf95d479851
6723392e-e180-11f0-a451-4cf95d479851
67233992-e180-11f0-a451-4cf95d479851
672339ec-e180-11f0-a451-4cf95d479851
67233a50-e180-11f0-a451-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)

bfc3172d-9102-8716-87e9-5ce32bd83b97
4f1d182d-9102-8716-87e9-5ce32bd83b97
89c3192d-9102-8716-87e9-5ce32bd83b97
90161a2d-9102-8716-87e9-5ce32bd83b97
a23b1b2d-9102-8716-87e9-5ce32bd83b97
6ac31c2d-9102-8716-87e9-5ce32bd83b97
a6601d2d-9102-8716-87e9-5ce32bd83b97
52411e2d-9102-8716-87e9-5ce32bd83b97
7b9f1f2d-9102-8716-87e9-5ce32bd83b97
f989212d-9102-8716-87e9-5ce32bd83b97
99cb222d-9102-8716-87e9-5ce32bd83b97
c098232d-9102-8716-87e9-5ce32bd83b97
8a5c242d-9102-8716-87e9-5ce32bd83b97
37a5252d-9102-8716-87e9-5ce32bd83b97
3750262d-9102-8716-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

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: