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.
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
| Use | OK with SHA-1? |
|---|---|
| Checking a download for accidental corruption | Yes |
| Detecting changed or duplicate files | Yes |
| Matching a legacy system that stores SHA-1 values | Yes |
| Signatures, certificates, anything facing an attacker | No, use SHA-256 |
| Storing passwords | No, use a slow algorithm such as bcrypt |
SHA-1 on the command line
| System | Command |
|---|---|
| Linux | sha1sum file.zip |
| macOS | shasum -a 1 file.zip |
| Windows PowerShell | Get-FileHash file.zip -Algorithm SHA1 |
| Windows cmd | certutil -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.