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)

01a0e70d-f136-72a8-b0f0-bd4b103d73f2
01a0e70d-f136-744e-bab3-2b579f8a3e2c
01a0e70d-f136-7592-a7f8-caf6cd8c47cf
01a0e70d-f136-76ad-a2f9-89c7a8770ab6
01a0e70d-f136-77c3-8bd3-9781efa2cbe8
01a0e70d-f136-78da-af89-e36f913fe123
01a0e70d-f136-79f0-9486-dbea05072919
01a0e70d-f136-7b07-94d9-71b6b4d463fb
01a0e70d-f136-7c1d-9efd-640754ec4271
01a0e70d-f136-7d34-b5fb-d88b3ed361ba
01a0e70d-f136-7e46-bea0-f4089147e6d0
01a0e70d-f136-7f5d-9797-571e50a14de7
01a0e70d-f137-706f-a423-a8d88fc9e76e
01a0e70d-f137-7186-9fb5-ed2388875c67
01a0e70d-f137-7298-b3e6-c2ece003b89a

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)

1f1bb13a-41fc-60b4-9216-4cf95d479851
1f1bb13a-41fc-628a-9216-4cf95d479851
1f1bb13a-41fc-637a-9216-4cf95d479851
1f1bb13a-41fc-644c-9216-4cf95d479851
1f1bb13a-41fc-6514-9216-4cf95d479851
1f1bb13a-41fc-65f0-9216-4cf95d479851
1f1bb13a-41fc-66b8-9216-4cf95d479851
1f1bb13a-41fc-6776-9216-4cf95d479851
1f1bb13a-41fc-683e-9216-4cf95d479851
1f1bb13a-41fc-6906-9216-4cf95d479851
1f1bb13a-41fc-6a50-9216-4cf95d479851
1f1bb13a-41fc-6b2c-9216-4cf95d479851
1f1bb13a-41fc-6bf4-9216-4cf95d479851
1f1bb13a-41fc-6cbc-9216-4cf95d479851
1f1bb13a-41fc-6d84-9216-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)

a41fce56-bb13-11f1-9216-4cf95d479851
a41fcec4-bb13-11f1-9216-4cf95d479851
a41fcf28-bb13-11f1-9216-4cf95d479851
a41fcf8c-bb13-11f1-9216-4cf95d479851
a41fcff0-bb13-11f1-9216-4cf95d479851
a41fd04a-bb13-11f1-9216-4cf95d479851
a41fd0a4-bb13-11f1-9216-4cf95d479851
a41fd112-bb13-11f1-9216-4cf95d479851
a41fd16c-bb13-11f1-9216-4cf95d479851
a41fd1d0-bb13-11f1-9216-4cf95d479851
a41fd234-bb13-11f1-9216-4cf95d479851
a41fd298-bb13-11f1-9216-4cf95d479851
a41fd2f2-bb13-11f1-9216-4cf95d479851
a41fd360-bb13-11f1-9216-4cf95d479851
a41fd3c4-bb13-11f1-9216-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)

f7eec019-e801-8f10-87ea-5ce32bd83b97
5980c119-e801-8f10-87ea-5ce32bd83b97
91eac219-e801-8f10-87ea-5ce32bd83b97
f60ac319-e801-8f10-87ea-5ce32bd83b97
a50cc419-e801-8f10-87ea-5ce32bd83b97
4b53c519-e801-8f10-87ea-5ce32bd83b97
363ec619-e801-8f10-87ea-5ce32bd83b97
282ac719-e801-8f10-87ea-5ce32bd83b97
b8dfc819-e801-8f10-87ea-5ce32bd83b97
4e7fc919-e801-8f10-87ea-5ce32bd83b97
6beaca19-e801-8f10-87ea-5ce32bd83b97
3a9fcb19-e801-8f10-87ea-5ce32bd83b97
f657cc19-e801-8f10-87ea-5ce32bd83b97
957dcd19-e801-8f10-87ea-5ce32bd83b97
2f2ece19-e801-8f10-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)

553dbf47-c4fb-4f2a-b776-3fe649ce89f4
6a0c0dc2-498b-4e20-9a20-772a25754f57
46ce6838-9f8d-4622-9987-014162536f33
e088490f-874f-40c5-901c-707d0b124896
3d48c771-03ce-446e-9088-41114bd996a2
20775a6e-97f2-4a23-a266-8c79fdfc1ea1
e8a4c136-6a3e-41ed-ab0c-f622dc34a3c9
437cc8fa-5432-4c7e-9545-28ac511132f2
4388ba85-a48a-4d71-915d-30ab4f13f7d6
88d349a1-b522-41a5-bb61-f492e15aefb1
b19f3ff2-1f1a-47b1-95c6-66b5e59d4e8b
333502ae-4af5-43fa-97a0-1c2a8b01c8f2
3e6ddc10-c0d0-4b1f-844e-10b1ef2658a5
090324b1-6d4f-410f-849b-72133528756d
2bb24229-bd09-4b78-9deb-63efe53ef175

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: