String Hash Generator

Generate multiple hash values for any string: MD5-style, DJB2, FNV-1a, and SHA-256. Fast client-side hashing.

AlgorithmHash ValueCopy
DJB2 (32-bit)
FNV-1a (32-bit)
SDBM
SHA-256

About this calculator

See several hashes of one string side by side: an MD5-style hash, DJB2, FNV-1a and SHA-256. The simple non-cryptographic hashes are fast and used in hash tables, while SHA-256 is the secure option.

Each result has its own Copy button.

How to use it

  1. Type the string.
  2. Read each algorithm's hash.
  3. Press Copy beside the one you need.

Hash families

DJB2 and FNV-1a are fast non-cryptographic hashes for hash tables and quick fingerprints. They are easy to collide on purpose. SHA-256 is cryptographic: collisions are infeasible. Do not use DJB2 or FNV for security.

Worked example

Hash of 'hello'

MD55d41402abc4b2a76b9719d911017c592
SHA-1aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
SHA-2562cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Runs entirely in your browser. Nothing you paste is uploaded.

Tips and common mistakes

  • Use SHA-256 or better for integrity checks.
  • Never store passwords with a plain hash. Use bcrypt, scrypt or Argon2 with a salt.
  • MD5 and SHA-1 are fine for checksums against accidents but not against attackers.
  • Compare hashes to verify a download matches the publisher's checksum.
  • Whitespace and line endings change the hash. A trailing newline makes a different result.

Frequently asked questions

What is a hash?

A fixed-length fingerprint of data produced by a one-way function.

Is MD5 secure?

No. Collisions can be created, so do not use it for security.

Can a hash be reversed?

Not directly, but weak inputs can be guessed with lookup tables.

What is SHA-256?

A secure hash producing a 256-bit (64 hex character) value.

How do I verify a file's integrity?

Compute its hash and compare with the published value.

Should I hash passwords with SHA-256?

No. Use a slow, salted algorithm such as bcrypt or Argon2.

Related tools