Try the inputs from this article
Run the example or change the input to compare results. Tool functions and standard browser APIs calculate the results in your browser.
Run example
Changing the input clears the previous result.
Download result JSONThese are illustrative inputs. Result field names are code identifiers; see the article for units and conditions.
How to verify a file’s SHA-256 hash
- Change input method to file in hash calculator.
- Select the files you want to compare. This tool has a file limit of 50 MiB.
- Select the algorithm specified by the distributor. SHA-256 and SHA-512 are different results, so check the names first.
- Paste only the hashes from the official distribution page into the Compare field. File names or description sentences are excluded.
- Press Compute Hash and check for a match. Archive the results by copying the hash if necessary.
If you just renamed the file, the bytes inside the file may remain the same. Conversely, if you open the document and save it again, the internal metadata may change even if the content looks similar. The entire ZIP file and the individual unzipped files are different inputs.
Files can be up to 50 MiB (52,428,800 bytes); text can be up to 5 MiB (5,242,880 bytes) after UTF-8 encoding. The text limit counts bytes, not characters. The entire input is loaded into memory, so staying within the limit does not guarantee that every device has enough memory.
Text hash example: abc and line break
If you select SHA-256 without changing the default text abc, you will get the results below. The input field doesn't automatically remove leading and trailing spaces, so don't add line breaks when copying the example.
abc
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015adThe same visible text can have different bytes because of its encoding or line endings. File mode reads the original bytes; text mode encodes the browser’s input string as UTF-8. To check an original file, select it in file mode instead of copying its contents. Editing the input clears the old result. Run the calculation again after making changes.
What a matching hash means—and its limits
SHA-256, SHA-384 and SHA-512 produce 64, 96 and 128 hexadecimal digits, respectively. The comparison field trims surrounding whitespace and ignores letter case. It does not change the bytes being hashed. A reference with the wrong length produces a format error before comparison.
A hash is not encrypted content that you can decrypt. This calculator neither executes a file nor scans it for malware. If an attacker can replace both the file and its published hash, matching values alone do not establish trust. Get the file from the official publisher and follow its signature-verification procedure if one is provided.
Implementation notes: MDN SubtleCrypto.digest. It is not a streaming tool for large files as it reads the entire input with the browser's Web Crypto API for calculations.
The comparison value is optional. Leave it empty to calculate only the hash. For SHA-256, enter exactly 64 hexadecimal digits. Uppercase letters and surrounding whitespace are accepted, but a 0x prefix, internal spaces or colons, a filename, or a Base64 value causes a format error. In contrast, 64 zeros are valid hexadecimal input: comparing them with abc produces a mismatch rather than a format error.
W3C Web Cryptography API · NIST FIPS 180-4 · NIST SP 800-63B-4
Frequently Asked Questions
Does the download fail if the hashes are different?
Not necessarily so. You may also be comparing different versions, compression formats, and algorithms. Don't just look at the file name, check the version and distribution conditions and download it again.
Can I use it to save my password?
This tool is for general hash comparison of files and text. Password storage requires a dedicated password hashing design, so do not store these results as is in your authentication system.