Hash Generator (MD5, SHA-1, SHA-256, SHA-512)
Cmd/Ctrl+Enter saves this input to history.
Advertisement
Compute an MD5, SHA-1, SHA-256, or SHA-512 hash of any text. SHA-1/256/512 run through the browser's native Web Crypto API; MD5 is hand-implemented because Web Crypto deliberately doesn't expose it — it's considered cryptographically broken and is offered here for legacy checksum/interop use only, never for anything security-sensitive.
Frequently asked questions
- Why offer MD5 at all if it's broken?
- MD5 is exposed here for legacy checksum and interop use only — verifying a file against a vendor-published MD5, matching an old system's hash column — never for security. It's cryptographically broken for anything security-sensitive (password hashing, signatures); use SHA-256 or SHA-512 for that.
- Which hash should I use for password storage?
- None of these, directly. Plain SHA-256/SHA-512 are fast general-purpose hashes, not designed for passwords — a real password hash needs a slow, salted algorithm like bcrypt, scrypt, or Argon2. See the guide below for the full comparison.
- Why is MD5 computed differently from the others?
- The browser's native Web Crypto API (crypto.subtle.digest) deliberately excludes MD5 since it's cryptographically broken — there's no built-in browser primitive to call. MD5 here is a hand-rolled implementation of RFC 1321; SHA-1/256/512 use the native, browser-optimized implementation.
- Is my text uploaded anywhere?
- No. Hashing happens locally in your browser tab — nothing is sent to a server.
Read the full guide for this tool →
Related tools & guides
Part of Encoding & Decoding Tools
Tools
Guides
- Base64 Encoding Explained (and Where It Silently Breaks)
- Converting Between camelCase, snake_case, and kebab-case: Where Word-Splitting Goes Wrong
- HEX, RGB, and HSL: Converting Between Color Formats
- MD5 vs SHA-256: Which Hash Should You Actually Use
- encodeURIComponent vs encodeURI: Which Characters Get Percent-Encoded
- URL Parsing and Query String Encoding — What the Browser's URL API Does for You
- Base64 vs Base64URL
- URL Slugs: Diacritics, Unicode, and What Gets Stripped
- UUID v4 vs v7
Advertisement