Calculate the MD5, SHA-1, SHA-256 and SHA-512 hash of text or a file. Compare it with the hash of a file you downloaded.
No sign-up, no fees.
Hash generator: MD5, SHA-1, SHA-256 and SHA-512 together.
Text or a file (up to 256 MB).
Compare the hash of a downloaded file with the one on the site.
Differences in case are ignored.
Your text and file are processed, but never shared with anyone.
How to use the Hash Generator
Need to verify that a downloaded file isn't corrupted? There are three ways:
For text
Type or paste into the Text box.
The hashes update as you type.
For a file
Drag or pick the file in the Or choose a file to hash area.
Only the file's content is hashed; the file name isn't included. To go back to text, press Back to text.
To verify
Paste the hash the site gives into the Compare box.
It says "Match!" or "No match"; spaces and case differences are ignored.
With the Copy next to each hash you can take the value; with the UPPERCASE box you can pick the uppercase form, the value is the same.
What is a hash?
A hash is a fixed-length "fingerprint" produced from any data (text, a file). The same data always gives the same hash; if even one letter of the data changes, the hash changes completely. You can't rebuild the original data from a hash. What people search for as calculate MD5, calculate SHA256 and file hash check is taking this fingerprint and comparing it.
Algorithm
Length
Status
MD5
32 characters
No longer used for security; still common for quickly checking file integrity
SHA-1
40 characters
Considered broken for security; you meet it in older systems
SHA-256
64 characters
Current and widespread, the first choice for file verification
SHA-512
128 characters
Longer than SHA-256, from the same family
What's it used for?
Verifying a downloaded file: software sites publish the file's hash. If the hash of the file you downloaded is the same, the file hasn't been corrupted.
Telling that two files are the same: if their hashes are the same, their contents are the same.
Developers: to check whether a piece of data has changed.
Tips for file hash checking
Pick the right algorithm: if the site gives SHA-256, paste it into the compare box; the tool says by itself which algorithm it matched.
Watch for spaces: when copying a hash, extra spaces can be left at the start or end; the tool ignores them.
Line endings: an extra line at the end of text, or the different line-ending marks of Windows and Linux, change the hash completely.
What you need to know
A hash is not encryption. Data can't be got back from a hash, but the hash of short and predictable text can be found from precomputed tables. Don't store passwords with plain MD5 or SHA; use special, slow methods for that.
Accented characters are encoded as UTF-8: é is two bytes. This gives the same result as most common tools.
File size limit: since the file is read into memory in one piece, files up to 256 MB are supported.
This tool produces a hash; it doesn't decode text from a hash. That's not possible.
No. The hash is calculated in your browser. Your text and file are processed, but never shared with anyone.
The hash of the file I downloaded doesn't match the one on the site. What should I do?
Don't run the file. It may have been corrupted or altered during the download. Download it again; if it's still different, don't trust the source.
Is MD5 still secure?
Not for security purposes (storing passwords, signatures). It's still used in simple integrity checks, like finding out a file wasn't corrupted during download. If you need security, use SHA-256.
Can I decode text from a hash?
No. A hash is one-way. This tool only produces hashes.
Why did the same text give a different hash in another tool?
Most likely there's an invisible space or line ending at the end of the text, or the other tool uses a different character encoding.
How is SHA-256 calculated?
Type the text or pick the file; the SHA-256 value shows right away in the list.
Can I use it on my phone?
Yes. Pick the file or type the text; the hashes come out right away.
When are SHA-1 and SHA-512 needed?
SHA-1 turns up in old systems and old version-control checks; don't use it in new work. SHA-512 is useful when a very long digest is needed or in the form some software asks for. For most file verification jobs, SHA-256 is enough.
Why are hashes always the same length?
However short or long the input is, the algorithm always produces output of a fixed length; that's the basis of a hash working like a fingerprint.