SHA-1 Checker
Generate SHA-1 hashes for text and files, and verify any SHA-1 checksum - all in your browser
100% free. Runs entirely in your browser - your files and data never leave your device and nothing is uploaded to any server.
SHA-1 is broken for security. Use it to match existing SHA-1 checksums and legacy systems. For anything new, use SHA-256 or SHA-512.
With a key the result is HMAC-SHA-1 - a keyed signature used by APIs and webhooks. The key never leaves this page.
Your 40-character hexadecimal hash will appear here.
SHA-1 is a one-way hash, not encryption. It proves data is unchanged; it does not hide or protect it.
Hash history
Only hashes and file names are kept, in this browser. Your text and files are never stored.
Hashes you generate, copy or download appear here.
SHA-1 commands
The same hash from the command line or code - useful for scripts, CI and API testing.
sha1sum "file.iso"
sha1sum * > SHA1SUMS
sha1sum -c SHA1SUMS
echo -n 'hello world' | sha1sum
SHA-1 vs SHA-256 vs SHA-512
| Algorithm | Output | Hex length | Today |
|---|---|---|---|
| MD5Collisions in seconds - only for non-security checks | 128-bit | 32 | Broken |
| SHA-1Practical collisions since 2017 - legacy only | 160-bit | 40 | Broken |
| SHA-256Default for checksums, TLS, code signing and Bitcoin | 256-bit | 64 | Secure |
| SHA-512Longer output, often faster on 64-bit CPUs | 512-bit | 128 | Secure |
Never store passwords as a plain SHA-1 hash - use bcrypt, scrypt or Argon2, which are slow on purpose.
SHA-1 examples
Known inputs and their hashes - handy for testing your own code. Click one to try it.
SHA-1 hash generator and checksum verifier for legacy files
Generate a SHA-1 hash from text or any file and check it against a published SHA-1 checksum - without a terminal. Type text and the 40-character hash updates as you type; drop one file or a whole batch and each is hashed with its own progress bar, ready to copy or export as a SHA1SUMS list. The Verify tab compares two hashes and shows a clear match or mismatch. SHA-1 is no longer safe against deliberate tampering, so use this tool to match older checksums, legacy systems and Git-era tooling - and use SHA-256 for anything new. Everything runs in your browser and nothing is uploaded.
How to use this tool
- Choose Text Hash, File Hash or Verify HashText Hash works on typed or pasted text, File Hash takes one file or many, and Verify Hash compares a SHA-1 value with the one you expect.
- Add your text or filesPaste text exactly as it was hashed originally - spaces and line breaks count. Drag files onto the box or click to browse.
- Read the 40-character SHA-1 hashText is hashed as you type; files are hashed one by one with progress. Switch between lowercase and UPPERCASE to match the other tool.
- Compare with the expected checksumPaste the published SHA-1 in Verify Hash, or paste a SHA1SUMS list on the File Hash tab, to see a match or mismatch for each file.
What is SHA-1?
SHA-1 is a hash function published by NIST in 1995. It turns any input into a 160-bit value, written as 40 hexadecimal characters. For years it secured TLS certificates, software downloads and Git commits.
In 2017 researchers published the first practical SHA-1 collision - two different PDF files with the same hash - and later attacks made collisions cheaper still. SHA-1 still detects accidental corruption reliably, but it can no longer be trusted where someone might tamper with a file on purpose.
When SHA-1 is still useful
You will still meet SHA-1 in older download pages, archives, backup tools, legacy APIs and OAuth 1.0 signatures, and in Git's original object identifiers. In those cases you need SHA-1 simply to match the value that already exists.
For anything you publish or design today - checksums, signatures, certificates - use SHA-256 or SHA-512 instead. Both are available as separate checkers with the same features.
How to check a SHA-1 checksum
Open Verify Hash, choose File, drop the file and paste the published SHA-1. A green Match means the file is byte-for-byte identical. On the command line the same check is:
- Windows (Command Prompt): certutil -hashfile file.zip SHA1
- Windows (PowerShell): Get-FileHash file.zip -Algorithm SHA1
- macOS: shasum -a 1 file.zip
- Linux: sha1sum file.zip, or sha1sum -c SHA1SUMS for a list
SHA-1 examples
Standard test values for checking your own code:
- Empty string: da39a3ee5e6b4b0d3255bfef95601890afd80709
- abc: a9993e364706816aba3e25717850c26c9cd0d89d
- hello world: 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed
Key features
- Matches SHA-1 checksums from older download pages, archives and legacy systems without command-line tools.
- Batch hashing with a SHA1SUMS, BSD or CSV export for audits and migrations.
- Files are hashed locally in chunks - large files work and nothing is uploaded.
- Clear warning about SHA-1 limits, with SHA-256 and SHA-512 one click away.
- HMAC-SHA-1 with a secret key for older APIs and OAuth 1.0 signatures.
Common uses
- Verifying an older software release or archive that only publishes SHA-1 checksums.
- Comparing file inventories during a migration from SHA-1 to SHA-256.
- Debugging legacy integrations, OAuth 1.0 or older webhooks that still sign with HMAC-SHA-1.
- Learning how Git-style SHA-1 identifiers and checksums are produced.
Tips for better results
- Use SHA-1 only to match a value someone else already published - choose SHA-256 for new checksums.
- If both SHA-1 and SHA-256 are published, check the SHA-256 one.
- Remember echo adds a trailing newline - turn on Add trailing newline to match it.
- Keep a CSV export of old SHA-1 values next to new SHA-256 values while you migrate.
Mistakes to avoid
- Relying on SHA-1 to detect deliberate tampering - practical collisions have existed since 2017.
- Using SHA-1 for new signatures, certificates or password storage.
- Comparing a SHA-1 hash with a SHA-256 checksum - they have different lengths and never match.
- Treating a matching checksum as proof that the publisher is trustworthy.
Frequently asked questions
Not for security. Practical collision attacks exist, so SHA-1 should not be used for signatures, certificates or anything an attacker could tamper with. It is still fine for matching existing legacy checksums and spotting accidental corruption.
160 bits, written as 40 hexadecimal characters - shorter than SHA-256's 64 and SHA-512's 128.
No. Files are read and hashed in your browser by a background worker on your device. Nothing is sent to a server, and only the hashes you keep in your local history are stored.
Yes. Drop as many files as you like; each gets its own progress bar and hash. You can copy all hashes or download a SHA1SUMS or CSV file.
Usually the input bytes differ: a trailing newline from echo, Windows CRLF line endings or extra spaces. Use the Options to add a trailing newline or CRLF line endings and compare again.
SHA-256 for checksums and most signatures, or SHA-512 if you want a longer output. For passwords use bcrypt, scrypt or Argon2.
Git originally identified objects with SHA-1 and added collision detection after 2017. Newer Git versions also support SHA-256 repositories.