Skip to content
ToolZone

SHA1

Compute the SHA-1 hash of any text input, historically used for checksums and digital signatures though now considered weak for security.

Runs in your browser. Nothing you enter or upload leaves your device.

SHA-1 · not collision-resistant
—
MD5 · not collision-resistant
—
SHA-256
—
SHA-384
—
SHA-512
—

All hashes are computed in your browser. MD5 and SHA-1 are fine for checksums but should not be used for passwords or signatures.

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

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. 1

    Type or paste text, or switch to File and drop a file.

  2. 2

    Read the SHA-1 card at the top of the results.

  3. 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.

Input
hello
Result
aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d

40 hex characters, representing 160 bits. The SHA-256 of the same input appears in the next card.

Limitations
SHA-1 is not collision resistant and must not be used for signatures or security checks. Files over 200 MB aren't supported. Output is hexadecimal only.
Assumptions
Text is encoded as UTF-8 before hashing.
Privacy
All hashes are computed by your browser's Web Crypto API, and your text is not sent to a server or saved.

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.

Related tools