SHA-1 File Checksum Calculator
Calculate a SHA-1 checksum from the original file bytes or pasted text.
How to use
The checksum depends on the file bytes. Renaming the file keeps the checksum the same. Changing an LF line ending to CRLF changes the bytes.
FAQ
Does hashing change or transmit the file?
The tool reads the selected file to compute SHA-1. It leaves the original file untouched and keeps the bytes in the browser.
What is supported?
Choose a file up to 8 MiB, or paste UTF-8, Hex or Base64. The file takes priority over the text and produces a 40-character Hex digest.
Other Languages
References
How we make sure
We check this tool with the automated test suites linked below. Example checks are shown in their original language.
- Verification method
- Pass a binary buffer containing zero, high-bit and non-UTF8 bytes through the actual file hash operation and compare Node SHA-1.
- Comparison reference
- Node.js 24.22.1 crypto (OpenSSL 3.5.9).
- Verification scope
- Covers a binary byte sample with zero and high-bit bytes.
Test source and cases (select a file to read it)
-
completion-tools.test.js
- sha1-file: binary file bytes match Node crypto
These checks cover the listed examples and boundaries, not every possible input. Round trips and checks using the same library are not independent verification.