About the SHA1
This SHA1 generator produces the SHA-1 digest of text or a file, alongside MD5, SHA-256, SHA-384 and SHA-512 so you can compare or switch algorithms without leaving the page. Paste an expected checksum to verify a download.
How it works
SHA-1 pads the message to a multiple of 512 bits, appends its length, and processes each 512-bit block through 80 rounds of bitwise operations, additions and rotations on five 32-bit words. The final five words form a 160-bit digest.
On this page your text is encoded as UTF-8 and handed to the browser's crypto.subtle.digest function with SHA-1, SHA-256 and SHA-512. Each result is converted to lowercase hexadecimal. The SHA-1 card is labeled SHA-1; click any card to highlight it.
How to use
- 1
Type or paste text, or switch to File and drop a file.
- 2
Read the SHA-1 card at the top of the results.
- 3
Click Copy, or paste an expected value into Verify.
Worked examples
SHA-1 of a short word
Creating a reference value for a test.
40 hex characters, representing 160 bits. The SHA-256 of the same input appears in the next card.
Frequently asked questions
Is SHA-1 safe to use today?+
Not for security. Practical collision attacks exist, so SHA-1 should not be used for signatures, certificates or integrity checks against attackers. It is still found in legacy systems and non-security identifiers.
How long is a SHA-1 hash?+
SHA-1 always produces 160 bits, shown as 40 hexadecimal characters.
Why does this page also show SHA-256 and SHA-512?+
All three are computed at once so you can compare them or pick a stronger algorithm without switching tools. The SHA-1 value is in its own labeled card.
Is SHA-1 the same as SHA1?+
Yes. Both spellings refer to the same algorithm, Secure Hash Algorithm 1, published by NIST in 1995.