40 Character Hash – Is It SHA-1? Digest Length Guide

Local only

Recognize the common 40-character hexadecimal representation of SHA-1 without treating length as definitive proof.

5 chars · 1 line

Waiting for input

Loading hash algorithms…

Hash length identification

Is a 40-character hash SHA-1?

SHA-1 produces 160 bits, normally displayed as 40 hexadecimal characters. VetaTool outputs lowercase hexadecimal SHA-1 values for text input. This tool is free to use. No account or payment is required.

Last updated

What you can do here

  • MD5 text digests
  • SHA-1 text digests
  • SHA-256 text digests
  • SHA-512 text digests
  • Exact text byte sensitivity
  • Browser-local hashing

Steps

  1. Count the hexadecimal characters.
  2. Look for SHA-1 in the checksum specification or source system.
  3. Do not use SHA-1 for new collision-sensitive security designs.

SHA-1 has a fixed 160-bit digest

The input can be short or long while the SHA-1 output remains 20 bytes, represented here by 40 hexadecimal characters.

Digest length helps troubleshooting, but it cannot authenticate the algorithm or the source of a checksum.

Two 40-character SHA-1 digests

The text changes while the SHA-1 output length stays fixed.

Text inputs

hello
vetatool

SHA-1 digests

hello: aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
vetatool: dedaecba2083d463015722d33e2650485a056a07

Common questions

Frequently asked questions

Does a 40-character digest always mean SHA-1?

No. It is a common SHA-1 representation, but the surrounding protocol should identify the algorithm.

Why is SHA-1 40 hex characters?

SHA-1 produces 20 bytes. Each byte is represented by two hexadecimal characters.

Debugging a specific Hash issue? Browse Hash troubleshooting.