Generators

Hash Generator

Hash any text with MD5, SHA-1, SHA-256, SHA-512 — instantly, client-side.

Results
MD5
SHA-1
SHA-256
SHA-512

About Hash Generator

Computes a hash of any input text using MD5, SHA-1, SHA-256, or SHA-512. Useful for verifying file or data integrity by comparing a computed hash against a published checksum. MD5 and SHA-1 are both cryptographically broken and unsuitable for anything security-sensitive like password storage, but remain fine for non-adversarial integrity checks. None of these algorithms — including SHA-256/512 — are appropriate for hashing passwords directly; that requires a purpose-built algorithm like bcrypt or Argon2 that's deliberately slow to resist brute-force attempts.

Any change to the input, even a single character, produces a completely different hash — there's no such thing as a "close" match, which is exactly why hashes work for integrity checks but not for finding near-duplicate content.

📖 Read more in our Knowledge Base →

Which algorithm to choose

AlgorithmOutputStatus
MD5128 bit, 32 hex charsBroken: collisions are easy. Fine only for non-security checks.
SHA-1160 bit, 40 hex charsBroken: practical collisions since 2017. Legacy only.
SHA-256256 bit, 64 hex charsCurrent standard for checksums and signatures.
SHA-512512 bit, 128 hex charsAlso current; often faster than SHA-256 on 64-bit CPUs.

Why your hash doesn't match

  • A trailing newline: echo "abc" | sha256sum hashes "abc\n". Use printf %s "abc" | sha256sum or echo -n.
  • Different encoding: text is hashed here as UTF-8. Windows tools that use UTF-16 give a different result for the same characters.
  • Windows line endings: CRLF vs LF changes every line.
  • Upper vs lower case hex: same value, but string comparison fails.

Checking a downloaded file

This tool hashes text. For files, use the system tool and compare with the published checksum:

  • Linux: sha256sum file.iso
  • macOS: shasum -a 256 file.iso
  • Windows: certutil -hashfile file.iso SHA256 or PowerShell Get-FileHash file.iso

Privacy

The hash is computed in your browser: SHA functions use the Web Crypto API, MD5 runs in local JavaScript. The text is not sent to our server.