🔐

File SHA-256 Hash

Calculate a secure SHA-256 checksum locally

—
No file selected.

File SHA-256 Hash — what it does

Drop in a file and get its SHA-256 checksum, computed locally with the browser's built-in cryptography and ready to copy. A checksum is a file's fingerprint: if two copies hash the same, they are the same, which makes this the standard way to verify downloads and prove a file has not changed.

Worked example

Three files from the fixtures folder hashed one after another; each value matched shasum -a 256 run on the same file.

FileSizeSHA-256
contacts-5.csv329 bytesff6371726e1060bca5aef006eb11edc654ca08a0585b133035de7bdc79d7124e
orders-8.csv349 bytes1751c699dceb88e2215c006f9e27c147c9275df00101cad932a55580fa27225e
report-3p.pdf1,164 bytes697483b3269a9da7180d9b40dba1e7db868cb87bf42dd60809005edf8968fd93

The hash is 64 lowercase hexadecimal characters and is computed as soon as the file is chosen; there is no Run button.

When this tool helps

  • Verifying a downloaded installer against the checksum published on the vendor's site.
  • Recording a fingerprint before archiving a file, so later integrity checks are possible.
  • Confirming that a file survived transfer between machines without corruption.

How to use it

  1. Choose the file.
  2. Wait for the hash to compute.
  3. Copy the checksum.
  4. Compare it against the published or recorded value.

Accuracy, limits, and good practice

  • Compare the full hash, not just the first characters — partial matches prove nothing about the rest.
  • Any single-byte change produces a completely different hash; there is no such thing as a "close" checksum.
  • Hashing verifies integrity, not safety: a malicious file hashes just as consistently as a clean one.
  • A published checksum is only as trustworthy as the page it came from — a hash listed beside the download it verifies proves very little if both were replaced.

Frequently asked questions

Why SHA-256 rather than MD5?

MD5 collisions can be manufactured, so it no longer proves integrity against tampering. SHA-256 remains collision-free in practice.

Do two identical files always hash the same?

Yes, byte-identical content yields an identical hash — which is exactly what makes checksums useful.

How long does hashing take?

Roughly proportional to file size. A few hundred megabytes is quick; a multi-gigabyte image takes noticeably longer.

The published checksum is in uppercase — is mine wrong?

No. The tool prints lowercase hex; PowerShell's Get-FileHash prints the same value in uppercase. Compare the characters case-insensitively, or paste both into a text editor and lowercase them. The length is always 64 characters regardless of file size.

Can I hash several files at once?

One at a time. Choosing another file replaces the checksum on the page, so copy the first result before loading the next. For a folder of files, hash them in turn and keep your own list.

Related tools on this site

Everything above runs inside this page. File SHA-256 Hash needs no account, no upload, and no server round trip — close the tab and nothing is left behind.

檔案 SHA-256 雜湊能做什麼

拖入檔案即取得其 SHA-256 校驗值,由瀏覽器內建的加密功能在本機計算、隨時可複製。校驗值就是檔案的指紋:兩份副本雜湊相同即內容相同,這也是驗證下載與證明檔案未被更動的標準方法。

實際範例

三個範例檔依序雜湊;每個值都與對同一個檔案執行 shasum -a 256 的結果一致。

檔案大小SHA-256
contacts-5.csv329 位元組ff6371726e1060bca5aef006eb11edc654ca08a0585b133035de7bdc79d7124e
orders-8.csv349 位元組1751c699dceb88e2215c006f9e27c147c9275df00101cad932a55580fa27225e
report-3p.pdf1,164 位元組697483b3269a9da7180d9b40dba1e7db868cb87bf42dd60809005edf8968fd93

雜湊值是 64 個小寫十六進位字元,選好檔案就立刻計算,沒有執行按鈕。

什麼時候用得上

  • 以官方網站公布的校驗值驗證下載回來的安裝檔。
  • 封存前記下指紋,日後才能做完整性檢查。
  • 確認檔案在機器之間傳輸後沒有損壞。

使用步驟

  1. 選擇檔案。
  2. 等待雜湊計算完成。
  3. 複製校驗值。
  4. 與公布或記錄的值比對。

精確度、限制與實務建議

  • 請比對完整雜湊,不要只看前幾碼——前段相同證明不了其餘部分。
  • 任何一個位元組的改變都會產生完全不同的雜湊;不存在「差不多」的校驗值。
  • 雜湊驗證的是完整性、不是安全性:惡意檔案的雜湊一樣穩定。
  • 公布的校驗值可信度取決於它所在的頁面——若校驗值就列在下載連結旁,兩者被同時替換時它證明不了什麼。

常見問題

為什麼用 SHA-256 而不是 MD5?

MD5 的碰撞可以被人為製造,已無法對抗竄改。SHA-256 實務上仍無碰撞。

兩個相同檔案的雜湊一定相同嗎?

是,位元組相同的內容必得相同雜湊——這正是校驗值有用的原因。

計算要多久?

大致與檔案大小成正比。幾百 MB 很快,好幾 GB 的映像檔則會明顯較久。

對方公布的校驗碼是大寫,我的是錯的嗎?

不是。工具用小寫十六進位顯示;PowerShell 的 Get-FileHash 印的是同一個值的大寫版本。比對時忽略大小寫,或把兩者貼到文字編輯器後統一轉成小寫。不論檔案多大,長度都固定是 64 個字元。

可以一次雜湊多個檔案嗎?

一次一個。再選另一個檔案時,頁面上的校驗碼會被換掉,所以先把前一個複製下來再載入下一個。一整個資料夾的檔案請逐一計算並自行記錄清單。

本站相關工具

以上步驟全部在這個頁面內完成,檔案 SHA-256 雜湊 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。