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)

019c5933-ed44-7284-92d8-43a6475440d7
019c5933-ed44-7429-8d2b-3540f0a2ee7a
019c5933-ed44-7569-b1a3-4d352a093e29
019c5933-ed44-7684-8ab9-5abde51733be
019c5933-ed44-7796-ad7e-efe1d2cca1a3
019c5933-ed44-78ad-a8f2-e41e58721c98
019c5933-ed44-79c3-bfe4-cbd5b256f5e3
019c5933-ed44-7ada-a6ac-404e2211bf0e
019c5933-ed44-7bec-8a19-7d7632d5e651
019c5933-ed44-7d03-ae36-443bb40a7063
019c5933-ed44-7e15-9a5f-ef6bae211cb1
019c5933-ed44-7f2c-8b0a-f40f504261b4
019c5933-ed45-704a-9ce5-bfdf8422aa82
019c5933-ed45-7161-a749-c3f39118a33c
019c5933-ed45-7277-bbfc-a736bddb6cda

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)

1f1092e8-fe5a-6204-b520-4cf95d479851
1f1092e8-fe5a-63b2-b520-4cf95d479851
1f1092e8-fe5a-648e-b520-4cf95d479851
1f1092e8-fe5a-6560-b520-4cf95d479851
1f1092e8-fe5a-661e-b520-4cf95d479851
1f1092e8-fe5a-66dc-b520-4cf95d479851
1f1092e8-fe5a-679a-b520-4cf95d479851
1f1092e8-fe5a-684e-b520-4cf95d479851
1f1092e8-fe5a-690c-b520-4cf95d479851
1f1092e8-fe5a-69c0-b520-4cf95d479851
1f1092e8-fe5a-6b32-b520-4cf95d479851
1f1092e8-fe5a-6bfa-b520-4cf95d479851
1f1092e8-fe5a-6cb8-b520-4cf95d479851
1f1092e8-fe5a-6d6c-b520-4cf95d479851
1f1092e8-fe5a-6e20-b520-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)

dc95c29e-f3ab-4d7f-b16a-390c1366ab6a
34a35f16-ad6a-4647-bc4a-82413fa8a0a4
53913608-40ec-43b7-9a42-126eaaaa98bb
43b5bdc7-d6b5-4999-99e1-a22a937c73fa
3be8ad28-ab64-4a97-9cbb-d730ede6c442
92a68dc1-e9ca-4b6a-bea4-0ce6a7833523
27a03c50-c54e-48cb-b549-34ab1f102027
cd2eddbc-ca1c-44e9-a5ba-f83561af1120
529b7baa-ae2a-4ae3-b2c4-108cf2f3ab6f
f6c62d27-d9b3-4e51-900f-66aaabf6a481
0d92b145-ac0f-4881-bbe5-8460229b8f6c
c40feab6-d810-4bec-8089-43618dc05a44
2178fb61-0b31-441e-9162-838659c92506
1125b6e7-48b7-4ced-af09-1d2e2c9b8341
b6b9d97e-1e23-4118-84eb-8993cb007445

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)

8fe5b334-092e-11f1-b520-4cf95d479851
8fe5b38e-092e-11f1-b520-4cf95d479851
8fe5b3f2-092e-11f1-b520-4cf95d479851
8fe5b456-092e-11f1-b520-4cf95d479851
8fe5b4b0-092e-11f1-b520-4cf95d479851
8fe5b50a-092e-11f1-b520-4cf95d479851
8fe5b56e-092e-11f1-b520-4cf95d479851
8fe5b5c8-092e-11f1-b520-4cf95d479851
8fe5b62c-092e-11f1-b520-4cf95d479851
8fe5b690-092e-11f1-b520-4cf95d479851
8fe5b6f4-092e-11f1-b520-4cf95d479851
8fe5b74e-092e-11f1-b520-4cf95d479851
8fe5b7a8-092e-11f1-b520-4cf95d479851
8fe5b802-092e-11f1-b520-4cf95d479851
8fe5b866-092e-11f1-b520-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)

c9da4129-5c05-8c02-87ea-5ce32bd83b97
c9554229-5c05-8c02-87ea-5ce32bd83b97
ba044329-5c05-8c02-87ea-5ce32bd83b97
f0da4429-5c05-8c02-87ea-5ce32bd83b97
2a6a4529-5c05-8c02-87ea-5ce32bd83b97
7e0a4629-5c05-8c02-87ea-5ce32bd83b97
45d94729-5c05-8c02-87ea-5ce32bd83b97
a3114829-5c05-8c02-87ea-5ce32bd83b97
ac994929-5c05-8c02-87ea-5ce32bd83b97
53e64a29-5c05-8c02-87ea-5ce32bd83b97
05d64b29-5c05-8c02-87ea-5ce32bd83b97
4a054c29-5c05-8c02-87ea-5ce32bd83b97
7ecc4d29-5c05-8c02-87ea-5ce32bd83b97
74f94e29-5c05-8c02-87ea-5ce32bd83b97
ae2c4f29-5c05-8c02-87ea-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: