Hash Generator
Generate SHA-1 / SHA-256 / SHA-384 / SHA-512 hashes from text instantly.
Shortcuts: Ctrl/Cmd+Enter (Sample), Ctrl/Cmd+Shift+C (Copy SHA-256), Ctrl/Cmd+S (Download)
SHA-1
Waiting for inputSHA-256
Waiting for inputSHA-384
Waiting for inputSHA-512
Waiting for inputFile Hash (Drag & Drop)
Drop a file here to calculate hash
SHA-1
Waiting for inputSHA-256
Waiting for inputSHA-384
Waiting for inputSHA-512
Waiting for inputHow to Use
- 1
Enter any text in the input box.
- 2
The tool calculates SHA-1 / SHA-256 / SHA-384 / SHA-512 instantly.
- 3
Click copy on any row to use the hash value.
Features
- ✓Multiple algorithms at once
- ✓Real-time calculation
- ✓One-click copy
- ✓Fully browser-based privacy
FAQ
Q. Is my input sent to your server?
A. No. Hashing is processed entirely inside your browser.
Q. Can I hash files with this tool?
A. This version focuses on text input. File hashing can be added in a future update.
Technical Notes
The tool uses the Web Crypto API via crypto.subtle.digest for secure hash computation.
Text is converted to UTF-8 bytes with TextEncoder before hashing.
Security & Privacy
Input text never leaves your device and is not transmitted over the network.
This design is suitable for private verification workflows.
Examples, Security Cautions, and Common Mistakes
Examples
- Compare a downloaded file's SHA-256 hash with the value published by the distributor.
- Check whether a string or configuration value changed by comparing hashes before and after.
- Create fixed-length identifiers for test data without displaying the original value directly.
Cautions
- Prefer SHA-256 or stronger for integrity checks; MD5 and SHA-1 are weak against collisions.
- Hashing is not encryption. Short inputs may still be guessed by brute force.
- For password storage, use a dedicated salted password hashing algorithm instead of a simple hash.
Common Mistakes
- Assuming an MD5 match proves security instead of only matching one weak digest.
- Ignoring case, line breaks, or trailing spaces that change the resulting hash.
- Storing passwords with a single unsalted SHA-256 hash.