UUID Validator

This UUI Validator validate the UUI for version 3,4,5 and All. Input the UUID in the input field.

UUID Validator

Output:

Understanding UUID output

The regular expression for “All versions” matches any UUID, regardless of the version.
The regular expression for “Version 3” matches only version 3 UUIDs.
The regular expression for “Version 4” matches only version 4 UUIDs.
The regular expression for “Version 5” matches only version 5 UUIDs.

Each version of UUID has a different format, which is why there are different regular expressions for each version. If you want to learn more about the different versions of UUID and how they are formatted, you can read the UUID specification.

uuid-validator

What is a UUID?

A UUID is a 16-octet (128-bit) number. In its canonical form, a UUID is represented by 32 lowercase hexadecimal digits, displayed in five groups separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 alphanumeric characters and four hyphens).

For example: 123e4567-e89b-12d3-a456-426614174000

UUIDs are used in many types of software development, from assigning session IDs in web applications to providing unique keys in a database, and even in the creation of distributed systems.

Different Versions of UUID

There are five types of UUIDs, known as versions. Each version has a specific use case and method of generation.

  • Version 1 UUIDs are generated from a time and a node ID (usually the MAC address);
  • Version 2 is similar to version 1, with additional fields to hold POSIX “UID” and “GID” values;
  • Version 3 UUIDs use a scheme deriving a UUID via MD5 from a URL, a fully qualified domain name, an object identifier, or an X.500 distinguished name;
  • Version 4 UUIDs use a scheme relying only on random numbers. This is the most commonly used version;
  • Version 5 UUIDs use a scheme with SHA-1 hashing.

You can learn more about each version from the UUID specification.

UUID Validator Tool

Validating UUIDs is an important task when working with these identifiers. A UUID validator checks whether a given string is a valid UUID. It can also check whether the UUID is of a specific version.

We’ve developed a UUID Validator tool that allows you to validate UUIDs right in your browser. You can enter a UUID and select the version you want to validate against. The tool will tell you whether the UUID is valid for the selected version.

You can try our UUID Validator tool to validate your UUIDs.

UUIDs are a powerful tool for developers, allowing the creation of unique identifiers that can be used across distributed systems, databases, and more. Understanding the different versions and how to validate UUIDs is crucial for anyone working with these identifiers.

Remember, when in doubt, you can always use our UUID Validator tool to ensure your UUIDs are valid. Happy coding!


What is UUID

A UUID is a 16-octet (128-bit) number. In its canonical form, a UUID is represented by 32 lowercase hexadecimal digits, displayed in five groups separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 alphanumeric characters and four hyphens).

How to check if the UUID is valid or not?

You can check if a UUID is valid or not by using our free UUID Validator tool. This tool allows you to enter a UUID and select the version you want to validate against. After you submit the form, the tool will tell you whether the UUID is valid for the selected version. It’s a quick and easy way to validate UUIDs without needing to write any code yourself. You can access our UUID Validator tool here.

What are different versions in UUID?

There are five types of UUIDs, known as versions. Each version has a specific use case and method of generation.
Version 1 UUIDs are generated from a time and a node ID (usually the MAC address);
Version 2 is similar to version 1, with additional fields to hold POSIX “UID” and “GID” values;
Version 3 UUIDs use a scheme deriving a UUID via MD5 from a URL, a fully qualified domain name, an object identifier, or an X.500 distinguished name;
Version 4 UUIDs use a scheme relying only on random numbers. This is the most commonly used version;
Version 5 UUIDs use a scheme with SHA-1 hashing.

Each version of UUID has its own specific use case and method of generation, making them suitable for different types of applications.

Spread the love
Scroll to Top