Hash Generator

Hash Generator

Generate MD5, SHA-1, SHA-256 and SHA-512 hashes from any text. All processing happens in your browser.

About the Hash Generator

A cryptographic hash function turns any input into a fixed-length fingerprint. The same input always produces the same hash, a tiny change produces a completely different one, and you cannot work backwards from the hash to the input. That makes hashes ideal for checking file integrity, building cache keys, de-duplicating data and creating digital signatures.

This hash generator computes MD5, SHA-1, SHA-256 and SHA-512 digests of any text at once, entirely in your browser. Each result is shown as a lowercase hexadecimal string that you can copy with one click, and weaker algorithms are clearly labelled.

Common uses

  • Comparing a downloaded file's published checksum with a value you computed.
  • Creating deterministic cache keys or ETags from content.
  • Checking what hash a legacy system expects for a given input.
  • Learning how hash functions behave — try changing a single character and watch every output change.

How to use it

  1. Type or paste text into the Input Text box (or click Try Me).
  2. Press Generate Hashes.
  3. Copy the digest you need from the results.

Example

Hashes of the word hello (UTF-8, no trailing newline):

Input
hello
Output
MD5:     5d41402abc4b2a76b9719d911017c592
SHA-1:   aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
SHA-256: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Tips and common pitfalls

  • MD5 and SHA-1 are broken for security: attackers can create two different inputs with the same hash. Use them only for non-security checksums. Choose SHA-256 or SHA-512 otherwise.
  • Never store passwords with plain SHA-256 or MD5. Use a slow, salted password hash such as Argon2id, bcrypt, scrypt or PBKDF2.
  • A trailing newline changes the hash. echo hello | sha256sum hashes hello\n; use echo -n to match this tool.
  • To authenticate a message with a secret key, use HMAC (for example HMAC-SHA256), not a hash of the key concatenated with the message.

Frequently asked questions

Can a hash be decrypted?

No. Hashing is one-way. So-called "MD5 decrypters" simply look up common inputs in huge precomputed tables, which is why short or common values are not protected by hashing alone.

Is my text sent to a server?

No. Hashes are computed in your browser, and the text never leaves your device.

Which algorithm should I use?

Use SHA-256 for most integrity and fingerprinting needs. SHA-512 is equally safe and can be faster on 64-bit machines. Use MD5 or SHA-1 only when an existing system requires them.

Why do I get a different hash than another tool?

Usually because of different input bytes — a trailing newline, Windows line endings (\r\n), extra spaces, or a different text encoding than UTF-8.

Related