Hash Generator

Computes MD5, SHA-1, SHA-256, SHA-512 and Keccak-256 digests of your text side by side as lowercase hex, each listed separately in Hash Results. Hashing never leaves the browser tab.

Last updated:

Enter text to hash...
Loading editor...

Hash Generator — Compute MD5, SHA-1, SHA-256 & SHA-512 Hashes Online

Understanding the Basics

A cryptographic hash function takes an input of arbitrary length and produces a fixed-length output (the "hash" or "digest") with three essential properties: determinism (the same input always produces the same hash), avalanche effect (a single bit change in input completely changes the output), and pre-image resistance (it is computationally infeasible to recover the input from the hash alone). MD5 produces 128-bit (32-character hex) digests and was once the standard for file integrity verification, but has been cryptographically broken — MD5 collisions can be generated in seconds, meaning two different inputs can produce the same MD5 hash. SHA-1 produces 160-bit digests and has also been broken (Google's SHAttered attack in 2017 demonstrated a SHA-1 collision). SHA-256 (part of the SHA-2 family) produces 256-bit digests and remains cryptographically secure, while SHA-512 provides 512-bit digests for even higher security margins. Common use cases include: verifying downloaded file integrity by comparing a published SHA-256 hash, creating content-addressable storage (Git stores objects by their SHA-1 hash of content), generating ETag headers for HTTP caching, and creating HMAC message authentication codes. This tool computes hashes from text in your browser, including Keccak-256.

How to Use the Tool

  1. Type or paste the text you want to hash into the input field.
  2. Choose a hash algorithm or show all available digests.
  3. The hash digest appears instantly below as a lowercase hexadecimal string.
  4. To verify a downloaded file byte for byte, use a file checksum utility such as sha256sum or shasum -a 256.
  5. Copy individual hash values with the copy icon beside each result.

Key Features & Specifications

  • Computes MD5, SHA-1, SHA-256, SHA-512, and Keccak-256 locally
  • Accepts typed or pasted text
  • Outputs lowercase hexadecimal
  • Hashing happens locally in the browser

Frequently Asked Questions (FAQ)

Q:Why is MD5 considered insecure for security purposes?
MD5 is vulnerable to collision attacks — an attacker can craft two different inputs that produce the same MD5 hash, enabling document forgery and signature bypass. For security-critical applications (code signing, TLS certificates, password hashing), use SHA-256 or SHA-512. MD5 is still acceptable for non-security checksum uses like detecting accidental file corruption.
Q:Can I use these hashes to store passwords securely?
No. MD5, SHA-1, and SHA-256 are fast by design, making them unsuitable for password hashing. An attacker with a GPU can compute billions of SHA-256 hashes per second. For password storage, use slow adaptive algorithms specifically designed for it: bcrypt, Argon2id, or scrypt.
Q:How can I verify a downloaded file using SHA-256?
Run sha256sum on Linux or shasum -a 256 on macOS and compare the result with the SHA-256 checksum from the vendor. Pasting file text into this tool is not equivalent to hashing the original file bytes.