SHA-1 Hash Generator
Free online SHA-1 hash generator. Compute SHA-1 digests for text and files in your browser. Private, instant, and accurate with UTF-8 and binary file support.
Text mode — hashes your input as UTF-8 characters
Best for strings, passwords, JSON, and code. Need to verify a download against a published checksum? Switch to and drop the file in — text mode cannot reproduce a file checksum.
Enter text above to generate SHA-1 hash
Text encoded as UTF-8 · All processing is local
Related Hash Generators
Need all algorithms at once? Open the full Hash Generator for every supported algorithm.
What is SHA-1?
SHA-1 (Secure Hash Algorithm 1) is part of the SHA family published by NIST. It produces a 160-bit (40 hex character) digest. SHA-1 was widely used in Git commit IDs, TLS certificates, and digital signatures for years. Google demonstrated a practical SHA-1 collision in 2017 (SHAttered), so it is no longer considered secure for signatures — but it remains common in legacy systems and version control.
Common use cases:
- Computing Git-style object hashes for debugging
- Legacy API integrations that still require SHA-1
- Verifying old download checksums published as SHA-1
- Comparing digests in historical security audits
Examples
| Input | SHA-1 Hash |
|---|---|
| Eazytools4u | 84aa1306f1e9000bf09953d3b2f4bae8f3997df8 |
| abc | a9993e364706816aba3e25717850c26c9cd0d89d |
| hello | aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d |
Programming Examples
const crypto = require("crypto");
const hash = crypto.createHash("sha1")
.update("hello", "utf8")
.digest("hex");
console.log(hash); // SHA-1 hex digestimport hashlib
digest = hashlib.sha1(b"hello").hexdigest()
print(digest) # SHA-1 hex digestecho -n "hello" | openssl dgst -sha1 -hexFrequently Asked Questions
Is SHA-1 still secure?
No, not for digital signatures or certificate authorities. Practical collision attacks exist. It is acceptable for non-adversarial checksums in legacy contexts, but SHA-256 is recommended for new projects.
Why does Git still use SHA-1?
Git historically used SHA-1 for object IDs. Git has added collision detection and is migrating toward SHA-256. For new security-sensitive hashing, use SHA-256 or SHA-3 instead.
Text vs File mode — which should I use?
Use Text mode for strings (UTF-8 encoded). Use File mode to hash raw binary file bytes for download verification. They produce different digests for the same visible content.
Is computation done on a server?
No. SHA-1 is computed entirely in your browser using the audited @noble/hashes library.