# Hash Generator

Generate an MD5, SHA-1, SHA-256, SHA-384 or SHA-512 hash of text or a file, and check a download against its published checksum. Nothing is uploaded.

Canonical page: https://filetity.com/hash-generator

## Capabilities

- Free: Yes, with no watermark and no page limit.
- Account required: No. There is no account system.
- Processed on device: Yes. The file is read by your browser and never uploaded. There is no server to send it to.
- Formats: Text, or any file at all. Five hashes at once, in lowercase or uppercase hex.
- Limits: A file has to fit in the memory your browser will give the tab, which on a desktop is comfortably into the gigabytes.
- Mobile: Yes, on any modern mobile browser. Large files are limited by the memory the phone gives the browser.
- Offline: Yes, once the page has loaded. The tool keeps working with no network connection.

## Questions

### Which hash should I use?

SHA-256 unless something else is asking for a specific one. MD5 and SHA-1 both have practical collision attacks, which means someone can build two different files with the same hash, so neither proves a file was not swapped deliberately. Both are still perfectly good at spotting a download that got corrupted on the way, which is what most people are doing.

### How do I check a download against its checksum?

Drop the downloaded file in, then paste the checksum from the page you got it from. The matching row lights up and says which algorithm matched. If nothing matches, the file is not the one that checksum describes: download it again rather than running it.

### Can a hash be turned back into the original?

No, not by reversing it, because a hash of any input is the same fixed length and the information is gone. What can be done is guessing: an attacker hashes billions of likely inputs and looks for a match, which is exactly how leaked password hashes get cracked. A hash is not encryption and a hashed password is not a safe password.

### Why do I get a different hash than another tool?

Almost always the input, not the algorithm. A trailing newline changes the hash completely, and a text box that adds one gives a different answer than a file that does not. Hashing the file itself rather than its pasted contents removes the question, which is the reason the file option exists.

## Related tools

- [Base64 decode and encode](https://filetity.com/base64-decode): Decode base64 to text, or encode text to base64, without leaving the page.
- [UUID Generator](https://filetity.com/uuid-generator): Generate v4 or time ordered v7 UUIDs, and read the version out of one you have.
