← All tools
Free tool · runs in your browser

SHA-1 hash generator

Paste anything below. The SHA-1 digest updates as you type. The text never leaves this page — the hash is computed locally with window.crypto.subtle.digest.

2aae6c35c94fcfb415dbe95f408b9ce91ee846ed

About SHA-1

SHA-1 produces a 160-bit hash. It is broken for security purposes (the SHAttered attack demonstrated a practical collision in 2017) but still useful for non-adversarial integrity work — Git uses it for commit identifiers, for example.

  • Produces a 160-bit (20-byte) digest, rendered as 40 hex characters.
  • NEVER use SHA-1 for passwords, certificates, or any adversarial setting.
  • Still fine for Git-style content addressing or de-duplication where attackers cannot choose inputs.

Common use cases

  • Generate Git-style content identifiers.
  • De-duplicate non-adversarial blobs.
  • Reproduce historic checksums for legacy systems.

Same hash via API

If you need to compute SHA-1 from a server or in another language, hit the Oxide Hash & Encryption Toolkit — same algorithm, sub-5 ms at the edge, free tier available.

curl -X POST https://hash-toolkit1.p.rapidapi.com/v1/hash \
  -H "Content-Type: application/json" \
  -H "X-RapidAPI-Key: YOUR_KEY" \
  -H "X-RapidAPI-Host: hash-toolkit1.p.rapidapi.com" \
  -d '{"algorithm":"sha1","input":"hello world"}'

FAQ

What is SHA-1?

SHA-1 produces a 160-bit hash. It is broken for security purposes (the SHAttered attack demonstrated a practical collision in 2017) but still useful for non-adversarial integrity work — Git uses it for commit identifiers, for example.

How many characters is a SHA-1 hash?

SHA-1 produces a 160-bit digest, which renders as exactly 40 hexadecimal characters or 27 base64 characters.

Is this SHA-1 tool secure?

Yes — the hash is computed entirely in your browser using the built-in Web Crypto API (window.crypto.subtle.digest). The text you paste never leaves your machine, and nothing is logged on our end.

Can I hash SHA-1 from an API?

Yes. The Oxide Hash & Encryption Toolkit exposes /v1/hash with algorithm:"sha1" so you can compute the same hash from a server with sub-5 ms latency at the network edge.