SHA-1 Hash Generator

Calculate the SHA-1 hash of any text.

Result

SHA-1 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed
SHA-1 (160 bits)
2aae6c35c94fcfb415dbe95f408b9ce91ee846ed
  • 11 bytes hashed. SHA-1 is broken for signatures (collisions have been demonstrated). Fine for checksums and Git-style IDs, not for new security uses.
  • A hash is one-way: the same input always gives the same output, and the input cannot be recovered from it.

What is a SHA-1 hash?

SHA-1 is a hash function that turns any input into a 160-bit fingerprint, shown as 40 hex characters. The SHA-1 of "hello world" is 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed. It was once a standard for signatures and certificates.

SHA-1 is now considered broken for signatures, because researchers have shown real collisions, two different inputs with the same hash. New systems should use SHA-256 or SHA-512. SHA-1 is still seen in old software and in version-control IDs, and it is fine as a checksum where nobody is trying to forge data. A hash is not encryption.

How to use the SHA-1 Hash Generator

  1. Type or paste your text.
  2. Choose text or hex bytes.
  3. Pick hex or Base64 output.
  4. Copy the SHA-1 result.

Real situations

When people use the SHA-1 Hash Generator

  • 1

    Reproduce an older system's hash

    Some legacy APIs, file formats and webhooks still use SHA-1. Generate a value to compare against them.

  • 2

    Check a checksum

    Compare the SHA-1 of your text to a published value to see whether the content is identical.

  • 3

    Explore how content hashing works

    See how changing even one character produces a totally different 40-character result that looks unrelated to the first.

  • 4

    Compare with newer algorithms

    Use it next to SHA-256 to see the difference in length when migrating a system.

FAQ

SHA-1 Hash Generator: questions answered

Is SHA-1 safe to use?

Not for security. Practical collisions were demonstrated in 2017, so SHA-1 should not be used for digital signatures or certificates. It is still acceptable as a plain checksum or identifier where no one is attacking the data.

How long is a SHA-1 hash?

160 bits, which is 40 hex characters or 28 characters in Base64 with padding. The SHA-1 of empty text is da39a3ee5e6b4b0d3255bfef95601890afd80709.

What should replace SHA-1?

SHA-256 or SHA-512 for general hashing and signatures. For passwords, use bcrypt, scrypt or Argon2 rather than any plain hash.

Can SHA-1 be reversed?

No. It is a one-way function and not encryption. Weak inputs can be guessed by trying many candidates, but the hash itself cannot be decoded.

Does it hash text as UTF-8?

Yes. Your text is turned into UTF-8 bytes and then hashed. If your other tool produces a different value, check for a trailing newline, line-ending differences or a different encoding.

Can I hash raw bytes instead of text?

Yes. Choose "Hex bytes" and paste an even number of hex digits. The tool hashes those bytes directly, which is useful for binary data.

Is this SHA-1 Hash Generator free and private?

Yes. It is free with no sign-in, and every calculation runs inside your browser. Nothing you type is sent to a server or stored, and the page keeps working offline once it has loaded.

Private by design. No accounts, no cookies, no tracking. Everything you type stays on your device.

How we keep it that way