SHA-1 Hash Generator
About this tool
Compute the SHA-1 digest of any text locally. The result is a 160-bit value shown as 40 hex characters, in lowercase, uppercase, or Base64. Hashing is done with the browser's Web Crypto API, so the input never leaves your device.
How to use
- Type or paste your text into Input — the SHA-1 digest updates as you type.
- The digest is shown as 40 hex characters, or as Base64 if you switch the format.
- Copy puts the current digest on the clipboard.
Example
Input: hello SHA-1: aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
Why SHA-1?
SHA-1 is still common in legacy systems: Git object IDs, older TLS fingerprints, HOTP/TOTP tokens, and many checksum lists. That makes it useful when you need to reproduce or verify a value from an existing system. It is no longer collision-resistant (practical collisions were demonstrated in 2017), so for new designs prefer SHA-256.
FAQ
What is a SHA-1 hash?
SHA-1 is a 160-bit cryptographic hash. Any input is reduced to a fixed 40-character hex digest that is deterministic for the same bytes.
Is SHA-1 broken?
For collision resistance, yes — researchers have produced two different files with the same SHA-1 digest. Preimage resistance is still considered hard, so it survives in non-adversarial checksum roles, but new systems should use SHA-256.
What does a SHA-1 hash look like?
40 hexadecimal characters. For example, the SHA-1 of "hello" is aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d.
Does this tool upload my text?
No. The digest is computed in your browser with Web Crypto. Only the last input and output format may be stored in localStorage.
Why do I get an error instead of a hash?
Web Crypto requires a secure context. Open the page over HTTPS (or localhost) and the SHA-1 digest will compute normally.