How to generate and compare hashes
Hashes are used to check that a file has not changed and to fingerprint data. Type text or choose a file and see every common hash at once.
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.
Tips for better results
- Use the compare box to check a download against the hash published by its author.
- MD5 and SHA-1 are broken for security use; prefer SHA-256 or SHA-512.
- Add a secret key to compute an HMAC instead of a plain hash.
Limits to know
- Formats: Any text or file
- Size: Files up to 300 MB
- Notes: Hashing a large file reads it into memory, so very large files may be slow.
At a glance
| Tool | Hash Generator |
|---|---|
| Category | Developer Tools |
| Works with | Any text or file |
| Size limit | Files up to 300 MB |
| Where it runs | In your browser tab; your input is not uploaded |
| Cost | Free, no sign-up |
Frequently asked questions
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.
If something does not work
- The result says a value is invalid. Check that every field has a number in the allowed range; the message names the field.
- The numbers look different from another calculator. Rounding, rate and date conventions differ between calculators. Compare the assumptions shown with the result.
- The page does not update. Reload it and try again; if it still fails, report it.
- Is the answer advice? No. Results are estimates for general information.
Still stuck? Use Report a Problem and tell us the tool, your browser and what happened, or read the Help Center.
Related tools and guides
- JSON Formatter: Format, indent, sort and minify JSON. Invalid JSON is reported with the line and column of the problem. Read the guide
- JSON Validator: Check whether your JSON is valid. If it is not, see the exact line and column and a plain-English reason. Read the guide
- HTML Formatter: Indent and tidy HTML. Inline tags stay on the line, and embedded CSS and JavaScript are formatted too. Read the guide
More tools like this are in Developer Tools, or browse all tools.