文件哈希校验工具:MD5、SHA-1、SHA-256 和 SHA-512 校验和
计算任意文件的 MD5、SHA-1、SHA-256 或 SHA-512 校验和,并与下载网站公布的值进行比对,确保文件完整且未被篡改。
输入
提示:按 Ctrl + Enter 运行
已保存的设置
下方的详细帮助目前仅提供英文版。
关于此工具
Download pages for operating systems, firmware and open-source software often publish a checksum so you can confirm the file arrived complete and unaltered. This checker calculates MD5, SHA-1, SHA-256 or SHA-512 (or all four) for one or more files and compares them with the checksum you paste, telling you clearly whether they match.
Hashing happens on your device, so large private files are never uploaded.
使用方法
- Choose the file or files to check (up to 100 MB each).
- Pick the algorithm the download page uses, usually SHA-256, or choose all.
- Optionally paste the expected checksum from the download page.
- Run the check and look for a match; if it does not match, download the file again.
计算原理
SHA-1, SHA-256 and SHA-512 use the browser’s Web Crypto digest; MD5 is computed with an RFC 1321 implementation. The expected value is compared case-insensitively, ignoring a leading "sha256:" style prefix.
SHA via Web Crypto (crypto.subtle.digest) · MD5 per RFC 1321计算示例
You download a Linux installer and the project lists its SHA-256 checksum. Choosing the .iso file, SHA-256 and pasting the published value shows "match" when the file is intact. A single changed byte in a corrupted download produces a completely different checksum and a clear mismatch.
示例输入和结果
选择文件并点击“运行”。转换后的文件会直接从浏览器下载。
局限性
- Up to 20 files, 100 MB each.
- Does not verify PGP or other digital signatures.
- Very large files take longer on slower devices.
最后更新:
常见问题
Which algorithm should I use?
The one the download page publishes. Prefer SHA-256 when there is a choice; MD5 and SHA-1 detect accidental corruption but are not safe against deliberate tampering.
Does a matching checksum prove the file is safe?
It proves the file matches what the page published. If the page itself was compromised, both could be wrong; signed checksums give stronger assurance.
Is the file uploaded?
No. It is read and hashed in your browser.
故障排除
The checksum does not match.
Download the file again, ideally from the official mirror, and check you chose the same algorithm as the published value.
The file is larger than 100 MB.
Use your operating system’s command, such as certutil -hashfile on Windows or shasum -a 256 on macOS and Linux.
The text hash differs from a file hash.
For text you typed, use the SHA-256 hash generator; files include exact bytes such as line endings.
隐私 & 免费使用
我的输入会被保存吗?
你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。
这个工具免费吗?
是的。无需注册或付费。