Hash Generator
Generate SHA-1, SHA-256, SHA-384, SHA-512 and MD5 hashes of text or a file in your browser, in lowercase or uppercase hex.
About Hash Generator
The Hash Generator calculates SHA-1, SHA-256, SHA-384, SHA-512 and MD5 hashes of text or a file. The most common use: checking that a download matches the checksum the vendor published.
Private
Text and files are hashed in your browser. Nothing is uploaded.
Check a download
Hash the file, then compare the result with the checksum on the vendor's site. If even one character differs, the file is not the same.
Which algorithm?
SHA-256 is the best general choice. SHA-384 and SHA-512 are longer members of the same family. MD5 and SHA-1 are broken for security and fine only for matching old checksums.
Same text, different hash?
Hashes depend on the exact bytes. A trailing space, a different line ending or encoding gives a completely different hash.
Output
Lowercase or uppercase hex.
Not included
Keyed hashes (HMAC) and password hashing such as bcrypt.
What is a hash?
A hash function turns any input into a fixed-length fingerprint. The same input always gives the same hash, and a tiny change gives a completely different one.
Hash vs encryption
A hash cannot be turned back into the original text. Encrypted data can be decrypted again with the right key.
How to use Hash Generator
- Type or paste the text, or choose a file.
- Choose Uppercase hex if you want capital letters.
- Read the SHA-1, SHA-256, SHA-384, SHA-512 and MD5 values, and the input size in bytes.
- Press Copy next to the hash you need and compare it with the published value.
Help & FAQ
Which hashes does it produce?
SHA-1, SHA-256, SHA-384, SHA-512 and MD5.
Is MD5 secure?
No. The page labels it legacy and not secure. Use it only to detect accidental changes.
Is our text or file uploaded?
The page says hashing runs in your browser. In our text test only routine analytics requests were sent. We did not test file hashing.
Why does our hash not match another tool?
A hash depends on the exact bytes. Line endings, a trailing newline or a different encoding change it. This tool uses UTF-8 and adds nothing.
What does Uppercase hex do?
It shows the hex digits in capitals. The value is the same.
Why does é show 2 bytes?
In UTF-8 the character é takes two bytes, and the hash is calculated on those bytes.
Why is there no output for empty text?
The tool shows hashes only when there is input.
How do we verify a download?
Hash the file and compare the result with the checksum published by the vendor.
Can we use it to store passwords?
No. A plain hash is not suitable for passwords. Use a slow, salted method.
Can it reverse a hash?
No. Hashes are one-way.
Does it create HMAC?
No. It creates plain hashes only.