Input

Output

Formatted result will be displayed here

What is a SHA-1 hash?

SHA-1 is a 160-bit cryptographic hash function that outputs a 40-character hexadecimal digest. It is considered broken for security purposes but is still widely used for content addressing inside git, cache keys, and legacy integrity checks. This tool hashes your UTF-8 text locally in the browser, so the input never leaves your machine. Use it for checksums and file fingerprints, not for password storage or signatures.

Use Cases

Produce git blob identifiers

git addresses objects by their SHA-1. Compute one by hand to understand how a blob or commit hash is derived.

Create cache keys

Hashing a normalized request key into SHA-1 gives a compact identifier safe to use as a Redis or disk cache filename.

Compare file integrity

Verify a downloaded payload against a vendor-provided SHA-1 digest to confirm it matches what was published.

Audit legacy systems

Reproducing a legacy system hash helps confirm you have understood its input normalization before replacing it with something modern.

FAQ

Is SHA-1 safe to use?

It is not safe against deliberate collisions. For checksums over trusted data, it is acceptable; for any security property, migrate to SHA-256.

How long is the output?

40 lowercase hex characters representing the 160-bit digest. The length does not depend on input size.

Does whitespace matter?

Yes. Any byte change, including a trailing newline, produces a completely different hash. Normalize input explicitly if needed.

Is my input uploaded anywhere?

No. The hash is computed using the browser crypto API entirely client-side.