DevLearningTools

TOOLS · HASH

Generate hashes, instantly.

Type or paste text to get its MD5, SHA-1, SHA-256, and SHA-512 hashes, computed entirely in your browser.

How This Tool Works

SHA-1, SHA-256, and SHA-512 are computed using the Web Crypto API, built directly into your browser. MD5 isn't supported by that API, so it's computed with a small JavaScript implementation instead — both run entirely on your device, and nothing you type is sent anywhere.

Hashing Is Not Encryption

A cryptographic hash is a one-way function: the same input always produces the same fixed-length output, but there's no way to reverse a hash back into the original text. Encryption, by contrast, is designed to be reversed with the right key. Don't use hashing where you actually need to recover the original data later.

Common Uses

  • Verifying a downloaded file matches its published checksum.
  • Comparing two files or strings for equality without comparing their full contents.
  • Detecting whether a file has been modified or corrupted.
  • Understanding how a specific cryptographic hash function behaves before using it in code.

Frequently Asked Questions

Is MD5 or SHA-1 safe to use for passwords?

No. Both MD5 and SHA-1 are considered cryptographically broken for security-sensitive uses like password storage — they're fast to compute, which makes them practical to brute-force, and MD5 in particular has known collision vulnerabilities. Password storage should use a purpose-built algorithm like bcrypt, scrypt, or Argon2, not a general-purpose hash function.

What are MD5 and SHA-1 still useful for?

Non-security tasks like checksums, detecting accidental file corruption, or de-duplicating data, where an attacker deliberately trying to forge a collision isn't a concern.

Is my input uploaded anywhere?

No — every hash is computed locally in your browser, using the Web Crypto API for SHA-* and a local JavaScript implementation for MD5. Nothing you type ever leaves your device.