Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes and HMACs of any text online. Hashing runs in your browser, so the input never leaves your device.
Runs in your browser · Nothing uploadedFree · No sign-up
Something not working, or missing a feature? Send feedback
About the Hash Generator
The Hash Generator calculates MD5, SHA-1, SHA-256, SHA-384 and SHA-512 digests and HMACs of any text in your browser, which is useful for checksums, signatures and debugging API authentication.
Everything is generated in your browser; nothing you enter is uploaded, and anything random comes from a cryptographically secure source.
How to use the Hash Generator
- Type or paste the text.
- Switch on HMAC and enter the secret key if you need a keyed hash.
- Copy the digest for the algorithm you need.
Example
Input
hello world
Result
MD5 5eb63bbbe01eeed093cb22bb8f5acdc3 SHA-1 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed SHA-256 b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9
With HMAC on and the key secret, HMAC-SHA256 gives 734cc62f32841568f45715aeb9f4d7891324e6d948e4c6c60c0621cdac48623a.
Common mistakes
- A trailing newline. hello world and hello world followed by a line break have completely different hashes. Command-line tools such as echo add a newline unless you use echo -n.
- Comparing hex with different case. Hex digests are case-insensitive, but string comparison is not. Compare in lowercase, or switch on uppercase to match the other side.
- Hashing passwords. Fast hashes let attackers try billions of guesses per second. Store passwords with Argon2, scrypt or bcrypt instead.
Works well with the Hash Generator
- Base64 Encode / Decode: convert a digest or signature to Base64.
- JWT Generator: create HMAC-signed tokens.
- Random String Generator: generate a random HMAC key.
Frequently asked questions
Should I store passwords as SHA-256?
No. Use a slow password hashing algorithm such as Argon2, scrypt or bcrypt. Fast hashes like SHA-256 are designed for integrity checks.
Are MD5 and SHA-1 still safe?
Not for security, because collisions can be created. They are fine for non-security checksums.
How do I verify a webhook signature?
Switch on HMAC, enter the webhook secret, paste the exact raw request body and compare the SHA-256 result with the signature header. Any change to the body, even whitespace, changes the result.
Can I hash a file?
This tool hashes text as UTF-8. For files, use sha256sum on Linux, shasum -a 256 on macOS or Get-FileHash in PowerShell.
Guides and tutorials
- Security & Encoding
MD5 vs SHA-1 vs SHA-256: Choosing the Right Hash Function
What hash functions do, why MD5 and SHA-1 are broken for security, when SHA-256 is right, why passwords need bcrypt or Argon2, and how HMAC signs messages.
· 6 min read
- Security & Encoding
How Strong Is Your Password? Entropy Explained with Examples
Calculate password strength in bits of entropy, see how long real passwords take to crack, compare passphrases with random strings, and generate them safely.
· 5 min read
Related tools
Invoice Generator
Create professional invoices free: GST (CGST, SGST, IGST), VAT, 40+ currencies, logo, signature and UPI QR code. Download a PDF, no sign-up, nothing uploaded.
Email Signature Generator
Create a professional email signature from ready-made templates, or paste your own HTML. Copy it into Gmail, Outlook or Apple Mail, or download the HTML.
Password Generator
Generate strong, random passwords online with your browser's cryptographically secure generator. Choose length and character sets; check the strength meter.
UUID Generator
Generate UUID v4 and time-ordered UUID v7 identifiers (GUIDs) in bulk, with uppercase, hyphen and brace options, using a cryptographically secure generator.
Large CSV Generator
Generate realistic fake test data (names, emails, phones, companies, addresses, IDs and dates) and download it as CSV or Excel (.xlsx). Free, in your browser.
QR Code Generator
Create free QR codes online for websites and text, with custom size, colours and error correction. Live preview, and download as PNG or SVG.