Hash Generator

All tools

Paste text, choose an algorithm, and get the hash instantly. Everything runs locally in your browser.

What is a hash?

A hash is a fixed-length fingerprint of input data. Even a tiny change in input produces a very different output.

Hashes are useful for checksums, integrity checks, caching keys, and quick comparisons. This tool generates hashes locally in your browser.

How to use the Hash Generator

  1. Paste text into the Input field.
  2. Choose MD5, SHA-1, or SHA-256.
  3. Click Generate (or just type — it can update automatically).
  4. Copy the result if needed.

Tips

  • Hashes are one-way; you can’t “decode” them back to the original text.
  • MD5 and SHA-1 are not recommended for security-sensitive uses.
  • For passwords, use dedicated password hashing (bcrypt/argon2), not plain hashes.

Hash checks before comparing files or stored values

A digest can detect changed input, but the algorithm and comparison method determine whether it is suitable for integrity or security work.

Exact input

Whitespace, line endings, character encoding, and trailing newlines change the digest, so normalize only when the workflow requires it.

Algorithm choice

Prefer SHA-256 or stronger for integrity checks. Avoid MD5 and SHA-1 where collision resistance is a security requirement.

Trusted reference

Compare downloads against a checksum obtained from an authenticated source; a digest delivered beside a modified file proves little.

Passwords need KDFs

Do not store passwords with a fast general-purpose hash. Use a password hashing function such as Argon2, scrypt, bcrypt, or PBKDF2.

A practical example, an edge case, and a maintainer note

Practical example

Hash the downloaded file and compare the entire SHA-256 digest with the value published by the distributor.

Edge case

A different newline, Unicode normalization form, or text encoding produces a completely different digest for visually identical text.

Maintainer note

I use hashes for integrity checks, never plain SHA-256 for password storage; passwords need a slow salted KDF such as Argon2 or bcrypt.

Related tools

You may also find these tools useful.

Hash Generator FAQ

Is hashing the same as encryption?
No. Hashing is one-way; encryption is reversible with a key.
Why do different tools show different results?
Usually due to different text encodings, hidden whitespace, or line endings.
Is my input sent to the server?
No. Hashes are computed in your browser with the Web Crypto API, so the text you fingerprint is never transmitted.