Hash Generator

Generate cryptographic hashes from text or files. Supports MD5, SHA-1, SHA-256, SHA-384, and SHA-512 algorithms.

Info

What Is a Cryptographic Hash?

A cryptographic hash function takes an input of any size and produces a fixed-size output string (the hash or digest). Even a tiny change to the input produces a completely different hash, making hashes ideal for verifying data integrity, storing passwords, and generating digital signatures.

Supported Algorithms

  • MD5 — 128-bit hash (32 hex chars). Fast but considered cryptographically broken. Still useful for checksums and non-security purposes.
  • SHA-1 — 160-bit hash (40 hex chars). Deprecated for security use but still seen in legacy systems.
  • SHA-256 — 256-bit hash (64 hex chars). Part of the SHA-2 family, widely used for security applications.
  • SHA-384 — 384-bit hash (96 hex chars). A truncated version of SHA-512 with independent initialization.
  • SHA-512 — 512-bit hash (128 hex chars). The strongest SHA-2 variant, recommended for high-security applications.

How It Works

SHA algorithms use the browser's native crypto.subtle.digest() API for fast, secure computation. MD5 is implemented in pure JavaScript. All hashing is done locally in your browser — no data is sent to any server.