Hash Generator (MD5 / SHA)
Generate cryptographic hashes — MD5, SHA-1, SHA-256, SHA-384, SHA-512. Runs in your browser via Web Crypto API.
What are cryptographic hashes and when do you need them?
A cryptographic hash function is a deterministic algorithm that turns any input (a few bytes, a multi-gigabyte file, the entire English Wikipedia) into a fixed-size output called a 'digest' or 'hash'. SHA-256 produces 256 bits (64 hex characters); SHA-512 produces 512 bits; MD5 produces 128 bits. Four properties define a 'cryptographic' hash, as opposed to a non-cryptographic one (like CRC32): determinism (same input → same hash, always), avalanche effect (changing one bit changes roughly half the output bits), preimage resistance (you can't reverse the hash to recover the input), and collision resistance (you can't find two inputs that produce the same hash). When hash functions are broken, it's usually the last two properties that fall — collision attacks against MD5 (2004) and SHA-1 (2017) made them unsuitable for security purposes, though they're still fine for non-adversarial integrity checks like file checksums. Use SHA-256 or SHA-512 for any new security work. This tool uses the browser's Web Crypto API (crypto.subtle.digest), which is hardware-accelerated on modern devices and produces output byte-identical to OpenSSL, Python's hashlib, and Node's crypto module.
Common use cases
Verify a downloaded file matches the publisher's listed SHA-256 (Linux ISOs, security tool releases).
Generate a content-addressable identifier for cache keys (hash of content → stable URL).
Create a deduplication key for storing files (hash matches = identical file).
Build webhook signature verification — HMAC-SHA256 of payload with shared secret.
Generate Git-style content hashes (SHA-1 for tree/blob identifiers).
Validate the integrity of a database row by hashing key columns and storing the hash.
Frequently asked questions
Why is MD5 deprecated for security?▼
Can hashes be reversed?▼
What's the difference between SHA-256 and HMAC-SHA256?▼
When should I use SHA-512 over SHA-256?▼
Why does my SHA hash differ from another tool's?▼
Is this safe to use with sensitive data?▼
Related tools
JWT Decoder
Decode JSON Web Tokens (JWT) instantly — inspect the header, payload, and signature claims. Runs entirely in your browser; tokens never leave your device. Safe for production secrets.
JSON Formatter & Validator
Format, validate, and minify JSON instantly. Catches syntax errors with line numbers, pretty-prints with adjustable indent, supports large payloads. Runs in your browser — no upload.
XML Formatter & Beautifier
Format and beautify XML documents — proper indentation, line breaks, namespace handling. Useful for SOAP responses, sitemaps, RSS feeds, and Android resource files.
Base64 Encoder & Decoder
Encode and decode Base64 strings.
URL Encoder & Decoder
Encode/decode URL-safe strings.
HTML Entity Encoder & Decoder
Convert special characters to/from HTML entities.