SHA-1 Hash Generator
Generate the SHA-1 hash of any text in your browser. 160-bit digest, 40 hex characters, fully private.
Independently verified for accuracy
Calculator by Toolsloft ↗Paste any text and this tool returns its SHA-1 hash, a 160-bit value shown as 40 hexadecimal characters. SHA-1 is still common for Git object IDs, file fingerprints, and legacy checksums. The calculation happens locally in your browser, so your input stays with you.
How this is calculated
The hash implements SHA-1 exactly as specified in FIPS 180-4: the UTF-8 bytes of your text are padded and run through 80 rounds over each 512-bit block. We verify the JavaScript against Python's hashlib on every build so the result agrees with any standard SHA-1 tool.
How to use
- Paste or type your text into the input box.
- The SHA-1 hash appears instantly in the output box.
- Click Copy to grab the 40-character result.
Examples
- Text:
abc → a9993e364706816aba3e25717850c26c9cd0d89d
FAQ
- Should I use SHA-1 for security?
- Not for new work. SHA-1 is broken against collision attacks and has been retired from digital signatures. It is fine for non-security uses like Git commit hashes and integrity checks against accidental corruption.
- How long is a SHA-1 hash?
- Always 40 hexadecimal characters, because SHA-1 produces a fixed 160-bit digest regardless of input size.
- Why does my hash differ from another tool?
- Almost always a text-encoding difference. This tool hashes the UTF-8 bytes of your input. If another tool uses a different encoding or adds a trailing newline, the hashes will not match.