Hash Generator (MD5, SHA-1, SHA-256, SHA-512)
Create MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or files, with optional HMAC and a compare box.
| Algorithm | Hash | |
|---|---|---|
| MD5 | — | |
| SHA-1 | — | |
| SHA-256 | — | |
| SHA-384 | — | |
| SHA-512 | — |
How to use Hash Generator
Step by step
Enter text or choose a file
Type text or pick a file from your device.
Read the hashes
All five hashes appear at once.
Compare or copy
Paste a known hash to compare, or copy any result.
Features and benefits
What you get
Live hashes
Hashes update as you type.
Files and text
Hash a typed string or a file from your device.
HMAC support
Add a secret key to get an HMAC.
Private
Nothing is uploaded; hashing happens in your browser.
Supported formats and limitations
What to expect
Supported formats
Any text or file
Size limits
Files up to 300 MB
Limitations
Hashing a large file reads it into memory, so very large files may be slow.
Frequently asked questions
Quick answers
Is hashing the same as encryption?
No. A hash is a one-way fingerprint. You cannot turn it back into the original data.
Is my data uploaded?
No. Text and files are hashed in your browser.
Which algorithm should I use?
Use SHA-256 or stronger for security. MD5 and SHA-1 are only suitable for checksums and compatibility.
Related tools
More from Developer Tools
JSON Formatter
Format, indent, sort and minify JSON. Invalid JSON is reported with the line and column of the problem.
JSON Validator
Check whether your JSON is valid. If it is not, see the exact line and column and a plain-English reason.
HTML Formatter
Indent and tidy HTML. Inline tags stay on the line, and embedded CSS and JavaScript are formatted too.
Related guides
Read more about this tool