Online SHA-1 Hash Tool
Online SHA1 encoder: compute the SHA-1 hash digest of any text in your browser instantly. Suited for checksums and compatibility.
Tool input and output
About the SHA-1 hash
SHA-1 generates a fixed 40-character hexadecimal digest from text of any length. It was widely used for Git commit IDs, digital signatures and file checksums. The same text always produces the same result, regardless of input length.
This tool computes SHA-1 instantly in your browser, ideal for aligning results with Git, legacy systems or other SHA-1 tools. Note that SHA-1 has theoretical collisions, so new systems should prefer SHA-256.
Which standard defines SHA digests?
SHA-1, SHA-256 and SHA-512 are specified in NIST FIPS 180-4. A digest shows whether a message changed. It is not encryption. SHA-1 is no longer recommended for new security uses.
“This standard specifies hash algorithms that can be used to generate digests of messages. The digests are used to detect whether messages have been changed since the digests were generated.”
Frequently Asked Questions
What is the difference between SHA-1 and MD5?
SHA-1 outputs 40 hex characters (160 bits) while MD5 outputs 32 (128 bits). SHA-1 is longer and slightly more collision-resistant by design, but both are considered unsuitable where strong security is required.
Is a Git commit ID a SHA-1?
Yes. Git commit object hashes have traditionally used SHA-1 (some versions now support SHA-256), so the digest produced here matches Git's verification.
Can SHA-1 be used for password storage?
It is not recommended. Password storage should use salted slow hashes like bcrypt or argon2. SHA-1 is fast and has collision risk, making it unsuitable for storing credentials directly.