SHA-1 Hash Generator

Generate SHA-1 hash values for data integrity verification.

Make the SHA-1 hash of text: a 40-character hex fingerprint. SHA-1 is still used for Git object IDs, some legacy checksums and older APIs, but it's been broken for security since a practical collision was published in 2017, so use SHA-256 for anything new. The hash is calculated in your browser as you type, and you can compare it with an expected value.

Text is encoded as UTF-8 before hashing. The values shown are the hashes of an empty string. Line breaks and trailing spaces change the result.

MD5 and SHA-1 are fine for checksums but are broken for security. Use SHA-256 or better for signatures, and bcrypt or scrypt for passwords.

Common use cases

  • Match a legacy system that uses SHA-1
  • Check a SHA-1 value from older documentation
  • Learn how hashes change with tiny input changes

How to use

  1. Type or paste the text.
  2. Copy the SHA-1 hash.
  3. Optionally compare it with an expected hash.

FAQ

Why is SHA-1 considered broken?

Researchers made two different PDF files with the same SHA-1 hash in 2017. That makes it unsafe for signatures and certificates.

Is Git's hash the same as this?

Not quite: Git hashes a header ('blob' and the size) plus the content, so hashing the text alone gives a different value.