Compute digests for exact text bytes or a selected file. Text is encoded as UTF-8; file selection hashes the file bytes rather than its displayed filename. Choose the same algorithm and output representation as the trusted reference before comparing results.
lightbulb When to use this tool
- check_circle Compare a downloaded file with a checksum obtained from a trusted publisher.
- check_circle Check whether two copies have identical bytes, including whitespace and line endings.
Inputs and results
Input: Text or a file up to 50 MB; HEX/Base64 selection.
Output: MD5, SHA-1, SHA-256 and SHA-512 together.
How it works
Paste exact text or select a file within the displayed size limit.
Choose hexadecimal or Base64 output and locate the required algorithm.
Compare the entire digest with an independently trusted reference.
Treat a mismatch as a reason to investigate the source or byte differences, not as proof of a particular attack.
Examples
science Known SHA-256 test
The three UTF-8 characters abc, without a newline, produce ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad in hexadecimal SHA-256.
science Same appearance, different bytes
A file with Windows CRLF line endings can have a different digest from an otherwise identical file with LF endings. Hash the actual file if exact file integrity is the question.
Limitations
Web Crypto supplies SHA over HTTPS/localhost; bundled code supplies MD5. MD5/SHA-1 are unsuitable for collision-resistant security; general hashes are not password storage.
Frequently Asked Questions
Does a matching hash prove that a download is safe? expand_more
Can I store passwords with this output? expand_more
Processing & Privacy
Processing uses your browser rather than uploading the supplied input to a processing server. Fonts and tool libraries can make third-party network requests. Optional analytics loads after consent. See the Privacy Policy for site-wide details.