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)

019ff9aa-fd2c-7171-8ad2-35029163f68c
019ff9aa-fd2d-738a-b24f-7d615c222ce2
019ff9aa-fd2d-74de-978d-bc884de47a89
019ff9aa-fd2d-7605-8b30-79e108960f51
019ff9aa-fd2d-7723-bf1a-dfcab9aef08d
019ff9aa-fd2d-7842-8228-215e6e46a899
019ff9aa-fd2d-7961-be47-680d207ed85e
019ff9aa-fd2d-7a7f-9621-0ec1b6682063
019ff9aa-fd2d-7ba2-a7f3-308701d0a2d0
019ff9aa-fd2d-7cbd-8989-1a5e2e67e0e4
019ff9aa-fd2d-7ddc-ac14-a842d6c10afc
019ff9aa-fd2d-7efa-bbe9-bbd3d1f0cd22
019ff9aa-fd2e-7019-bacb-124e4a11e4d4
019ff9aa-fd2e-7138-8215-40310c014f5f
019ff9aa-fd2e-7257-9739-a02192ff7935

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)

1f196dab-ac32-6084-98cc-4cf95d479851
1f196dab-ac32-6278-98cc-4cf95d479851
1f196dab-ac32-6354-98cc-4cf95d479851
1f196dab-ac32-641c-98cc-4cf95d479851
1f196dab-ac32-64e4-98cc-4cf95d479851
1f196dab-ac32-65a2-98cc-4cf95d479851
1f196dab-ac32-666a-98cc-4cf95d479851
1f196dab-ac32-6728-98cc-4cf95d479851
1f196dab-ac32-6868-98cc-4cf95d479851
1f196dab-ac32-6958-98cc-4cf95d479851
1f196dab-ac32-6ac0-98cc-4cf95d479851
1f196dab-ac32-6b92-98cc-4cf95d479851
1f196dab-ac32-6c50-98cc-4cf95d479851
1f196dab-ac32-6d0e-98cc-4cf95d479851
1f196dab-ac32-6dcc-98cc-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)

bac32ebc-96da-11f1-98cc-4cf95d479851
bac32f20-96da-11f1-98cc-4cf95d479851
bac32f8e-96da-11f1-98cc-4cf95d479851
bac32ff2-96da-11f1-98cc-4cf95d479851
bac33060-96da-11f1-98cc-4cf95d479851
bac330c4-96da-11f1-98cc-4cf95d479851
bac33128-96da-11f1-98cc-4cf95d479851
bac3318c-96da-11f1-98cc-4cf95d479851
bac331f0-96da-11f1-98cc-4cf95d479851
bac33254-96da-11f1-98cc-4cf95d479851
bac332b8-96da-11f1-98cc-4cf95d479851
bac3331c-96da-11f1-98cc-4cf95d479851
bac33380-96da-11f1-98cc-4cf95d479851
bac333da-96da-11f1-98cc-4cf95d479851
bac3343e-96da-11f1-98cc-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)

262a8e14-5e01-810e-87ea-5ce32bd83b97
de909014-5e01-810e-87ea-5ce32bd83b97
61389114-5e01-810e-87ea-5ce32bd83b97
e6959214-5e01-810e-87ea-5ce32bd83b97
70639314-5e01-810e-87ea-5ce32bd83b97
154f9414-5e01-810e-87ea-5ce32bd83b97
62879514-5e01-810e-87ea-5ce32bd83b97
409a9614-5e01-810e-87ea-5ce32bd83b97
62309714-5e01-810e-87ea-5ce32bd83b97
9f769814-5e01-810e-87ea-5ce32bd83b97
cb279914-5e01-810e-87ea-5ce32bd83b97
22419a14-5e01-810e-87ea-5ce32bd83b97
fefc9b14-5e01-810e-87ea-5ce32bd83b97
a80a9c14-5e01-810e-87ea-5ce32bd83b97
1aa79d14-5e01-810e-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)

7b3432a7-9564-4a9b-8090-4d67b1caa774
b98e5f51-270c-4543-9403-51767d240438
9d4abbd4-734a-4c46-abed-a89787899578
c7f3a2fd-fdfd-42b5-afdf-3b881043b443
1b1764be-8544-40ea-adc4-b29254ba5097
3e699860-6e3c-4d77-ab8a-f45f2672c479
63c11e1a-de15-432b-939a-f40f9029d8f0
e4186fcc-7bc6-4515-9b7d-11512545742a
78c7f29c-a6c2-4948-8e57-8eedc48ebc34
3df1bcde-444e-4531-af4b-cb245763be1a
754d85c4-d82d-4a0e-ac34-36d50dc6d5af
91d9f53d-86b7-4e88-af4c-d615afa05075
2f734511-5ea2-45f0-a4c2-f89b27ce2a2a
b123cb43-8fe2-4597-bf27-9c9d20191e45
7a1235db-5e70-4c62-8304-4c998ffb3a37

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: