Tool Details
Hash Generator
LiveSecurity & CryptographyGenerate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text or files. Compare hashes, generate HMAC, and verify checksums -all in your browser.
About This Tool
You just downloaded a Linux ISO and the mirror page shows a SHA-256 checksum. You need to verify the file wasn't corrupted or tampered with during download. Drop the file here and compare the generated hash against the published checksum -if they match, the file is intact. Or you're implementing webhook verification and need to generate an HMAC-SHA256 signature from a request body and secret key to compare against what the webhook provider sent. All five hash algorithms and HMAC run in your browser using the Web Crypto API -your files and secrets never leave your device.
Examples
SHA-256 hash of a string
Input
hello world
Output
b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9
MD5 checksum for quick comparison
Input
test@example.com
Output
973dfe463ec85785f5f95af5ba3906ee (commonly used for Gravatar URLs)
HMAC-SHA256 for webhook verification
Input
Body: {"event":"payment"}
Secret: whsec_abc123Output
HMAC-SHA256: 4a2f1e3b8c9d0e7f6a5b4c3d2e1f0a9b8c7d6e5f4a3b2c1d0e9f8a7b6c5d4e3f
File checksum verification
Input
ubuntu-24.04-desktop-amd64.iso (drag and drop)
Output
SHA-256: (computed hash to compare with the published checksum on the download page)
Common Errors & Fixes
Hash doesn't match -file seems corrupted
Ensure you're comparing the same algorithm (SHA-256 vs SHA-1). Also check if the published hash is for a different file version. Case doesn't matter (uppercase = lowercase).
MD5 hash for password storage -is this secure?
No. MD5 is broken for security purposes. Use bcrypt, scrypt, or Argon2 for password hashing. MD5 is only suitable for non-security checksums and cache keys.
HMAC output doesn't match webhook provider's signature
Check if the provider uses hex encoding or base64. Also verify you're hashing the raw request body (not parsed JSON) and using the correct secret (some providers prefix it).
Key Features
FAQs
What does the Hash Generator do?
It takes text or a file and generates cryptographic hash values using MD5, SHA-1, SHA-256, SHA-384, and SHA-512 algorithms. It also supports HMAC generation with a secret key and hash comparison for integrity verification.
Is MD5 still safe to use?
MD5 is no longer considered secure for cryptographic purposes like password hashing or digital signatures due to known collision vulnerabilities. However, it is still widely used for non-security checksums, cache keys, and quick data fingerprinting. For security, use SHA-256 or SHA-512.
Is my data safe when using this tool?
Yes. All hashing happens 100% in your browser using the Web Crypto API (for SHA) and a local JavaScript implementation (for MD5). No text, files, or hash values are ever sent to a server or stored.
What is HMAC and when do I need it?
HMAC (Hash-based Message Authentication Code) combines a hash function with a secret key to produce a signature. It is used for API authentication (like AWS Signature V4, Stripe webhooks), message integrity verification, and token signing.
Can I hash files with this tool?
Yes. Drag and drop a file or use the file picker to compute its hash. The tool reads the file entirely in your browser and generates checksums for all supported algorithms so you can verify downloads and deployments.
Related Tools
Markdown Live Preview
Write Markdown and see a live preview with GFM support, copy/export options, and responsive layout.
JSON Formatter / Beautifier
Format, beautify, minify, and validate JSON instantly in your browser. No data leaves your device.
JWT Decoder
Decode, inspect, and debug JWT tokens instantly. See header, payload, expiry status, and claim details -all in your browser.
Need help building something?
We build web apps, APIs, and mobile apps with Laravel, Next.js, and Flutter.
Get a Free Quote