Developer 🔒 Runs in your browser — no data sent to servers

SHA-1 Hash Generator

Get the 40-character SHA-1 hash of text or a file, computed locally with your browser's own crypto engine.

Input Text

Generate SHA-1 Hashes Online

SHA-1 turns any input into a 160-bit fingerprint, shown as 40 hex characters. It was the standard hash of the 2000s, and you still meet it in download pages, Git, older APIs and databases. This page opens the Hash Generator with the SHA-1 result highlighted, next to MD5, SHA-256, SHA-384 and SHA-512 for the same input.

The hash is computed by your browser's built-in Web Crypto engine, so text and files stay on your device.

Where SHA-1 is still fine, and where it is not

UseOK with SHA-1?
Checking a download for accidental corruptionYes
Detecting changed or duplicate filesYes
Matching a legacy system that stores SHA-1 valuesYes
Signatures, certificates, anything facing an attackerNo, use SHA-256
Storing passwordsNo, use a slow algorithm such as bcrypt

SHA-1 on the command line

SystemCommand
Linuxsha1sum file.zip
macOSshasum -a 1 file.zip
Windows PowerShellGet-FileHash file.zip -Algorithm SHA1
Windows cmdcertutil -hashfile file.zip SHA1

For a string, echo "text" | sha1sum hashes a trailing newline as well; use echo -n to get the same value this page shows for the same text.

Moving on from SHA-1

If you control both ends, switch to SHA-256: it is just as easy to compute, supported everywhere, and has no known practical collisions. To check a file against whatever algorithm a project publishes, File Checksum Checker recognises the match automatically.

Guides