UUID & Hash Generator
Generate UUID v4 identifiers and compute SHA hashes from text. Fast, private, runs entirely in your browser.
Related Tools
Convert numbers between decimal, binary, hexadecimal, and octal.
Generate QR codes for URLs, WiFi, email, phone, SMS, and vCards. Download as PNG or SVG.
Generate realistic fake data in JSON, CSV, SQL INSERT, or TypeScript. Custom schemas and presets.
From the makers of JSON Knife
Get the JSON & API Cheat Sheet
Formatting tricks, jq commands, and common patterns — one page, zero fluff.
How to Generate UUIDs and Hash Strings Online
UUIDs and cryptographic hashes are everyday tools in software development. This tool generates UUIDs (v4 random) and computes SHA-256, SHA-1, and MD5 hashes of any input string — all in your browser using the Web Crypto API, with no server requests.
You'll need UUIDs for database primary keys, correlation IDs in distributed systems, idempotency keys for payment APIs, and unique identifiers in tests. SHA-256 hashes are used for content addressing, file integrity checks, webhook signature verification, and cache busting. MD5 and SHA-1 are legacy but still used for checksums and Gravatar URLs.
The UUID generator creates v4 (random) UUIDs using crypto.randomUUID(), which is cryptographically random. The hash functions use the browser's SubtleCrypto API, which is fast and secure. Since everything is client-side, you can safely hash sensitive values without exposing them.
Tips
- UUID v4 is random and suitable for most use cases. Use v7 (time-sortable) if your database performance depends on sequential inserts.
- SHA-256 is the standard choice for new projects. MD5 and SHA-1 are broken for security purposes but fine for checksums.
- For webhook verification, hash the payload with the secret using HMAC-SHA256 — a plain hash won't do.
- UUIDs are 128 bits. The probability of a collision with v4 is astronomically low — you'd need to generate 2.7 quintillion to have a 50% chance.