Stateless APIs
v4 is ideal when microservices or clients generate identifiers independently and you only care about uniqueness, not sort order.
Generate secure version 4 UUIDs with the Web Crypto API. Nothing leaves your browser.
UUID v4 contains 122 bits of randomness. Collisions are practically impossible.
Universally Unique Identifiers (UUIDs) are 128-bit values rendered as 32 hexadecimal characters separated into an 8-4-4-4-12 pattern. Different versions dictate how those bits are filled, which influences ordering, source data, and collision guarantees.
| Version | Source | Sort order | Typical usage | Notes |
|---|---|---|---|---|
| UUID v1 | Timestamp + MAC address | Chronological | Legacy systems needing time ordering | Leakes host metadata. Avoid in privacy sensitive contexts. |
| UUID v4 | 122 bits of randomness | Unordered | Default choice for distributed IDs | Collisions are astronomically unlikely when generated with CSPRNG. |
| UUID v7 | Unix timestamp + randomness | Roughly sortable | Event stores, databases that benefit from time ordering | Draft standard gaining adoption. Great compromise between randomness and sorting. |
Pick the UUID version that suits your application's scaling, privacy, and ordering requirements. These scenarios outline when to stick with v4 and when to consider alternatives.
v4 is ideal when microservices or clients generate identifiers independently and you only care about uniqueness, not sort order.
For workloads that benefit from chronological clustering, UUID v7 or ULIDs maintain time ordering while preserving compatibility with UUID tooling.
UUIDs are predictable enough to enumerate once discovered. For secrets, issue cryptographically random bytes and deliver them over TLS, or use JWTs with proper claims.
A few simple habits keep UUIDs reliable across environments and databases.
Generate an identifier and check its shape, version and variant. Random identifiers should differ between runs.
const id = crypto.randomUUID();
console.log(id);
console.log(id[14] === '4'); // version 4
console.log(/[89ab]/i.test(id[19])); // RFC variantimport uuid
value = uuid.uuid4()
print(value)
print(value.version) # 4UUID v4 has 122 random bits. Collision probability grows with the number generated; enforce database uniqueness and handle a conflict. A UUID is an identifier, not proof that the requester is authorized.
Universally Unique Identifiers (UUIDs) are 128-bit numbers used to identify information in computer systems. The standard defines several versions, each suitable for different use cases.
This tool generates UUID v4 using the browser's cryptographically secure random number generator (CSPRNG), ensuring high quality randomness.
A UUID is a 128-bit identifier rendered as 8-4-4-4-12 hexadecimal characters. Versions such as v4 or v7 control how the bits are derived—randomness for v4, timestamp plus randomness for v7.
UUID v4 leaves 122 bits of randomness, making collisions astronomically unlikely. You can generate billions before a statistically significant collision chance appears.
Choose v4 for maximum randomness and ease of generation. Select v7 when you need roughly sortable identifiers that still work with UUID-aware databases.
UUIDs provide uniqueness, not confidentiality. They make great identifiers, but use randomly generated tokens or encrypted payloads for anything sensitive.
No. HashyTools uses the Web Crypto API directly in your browser so generated UUIDs never leave your device.
Protect text with AES-GCM and PBKDF2 tokens that stay on-device.
Generate MD5, SHA-1, and SHA-256 digests locally with Web Workers.
Convert any text to or from Base64 without leaving your browser.
Decode claims and verify HMAC signatures without network calls.
Validate, format, and diff JSON without network calls.
Format, minify and convert XML to JSON locally.
Experiment with regular expressions and capture groups locally.
Encode components and inspect query parameters locally.
Build strong passwords with custom length, charset, and entropy.
Convert Unix timestamps into local, UTC and ISO dates.
Convert case, slugify, and clean strings on-device.
Switch between HEX, RGB, HSL, and Tailwind palettes instantly.
Design QR codes for text, Wi-Fi, contacts, email, or SMS locally.
Generate EAN and Code 128 barcodes and download crisp PNG output.
Look up your public IP using disclosed external services.
Produce paragraphs, lists, and markdown filler text fast.
Compress JPG, PNG, WebP and AVIF images to a target size in your browser. Preview results, process batches and download images individually or as a ZIP.
Convert WebP and AVIF images to JPG or PNG locally. Batch convert supported images, control quality and transparency, preview results and download a ZIP.
Convert JSON and NDJSON to CSV for Excel, or CSV to JSON, locally. Flatten nested objects, choose columns and delimiters, and download UTF-8 results.
Decode Base64 or data URIs to an image preview and download, or encode an image file to Base64. Inspect dimensions and size without uploading your image.
Convert HEIC and HEIF photos to JPG or PNG in your browser. Choose quality, preview converted images and download individual photos or a batch ZIP.
Decode Base64 to PDF locally, preview pages with zoom and navigation, and download the decoded PDF. Supports raw Base64 and application/pdf data URIs.
Run the AES interoperability guide or read how these tools are checked.