Text to SHA-1

SHA-1 digest from text using the Web Crypto API in your browser.

Enter text and get a 160-bit SHA-1 hash as 40 hex characters. Useful for legacy checksums and learning, though SHA-1 is deprecated for security-sensitive uses.

Input
SHA-1

How it works

Your input is encoded as UTF-8 and hashed with SHA-1. The hex value updates as you type.

SHA-1 produces 160 bits, shown as 40 hexadecimal characters.

What is SHA-1?

SHA-1 is a hash function from the SHA family. It outputs a fixed-size digest for any input size. Collisions can be found with modern attacks, so do not use SHA-1 for signatures or certificates.

Security note

SHA-1 is no longer considered collision-resistant for new designs. Prefer SHA-256 or SHA-512 for HMAC, certificates, and general-purpose hashing.

Common questions

Is this free?
Yes. Everything runs locally in your browser.
Is my data uploaded?
No. Hashing happens on your device.
Why 40 hex characters?
SHA-1 outputs 160 bits, which is 40 hex digits.
Should I use SHA-1 for new systems?
No. Use SHA-256 or stronger for new applications.