Hash Generator

Enter text and get MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes instantly.

Instant result Runs in browser

About Hash Functions

MD5    → 128 bit
SHA-1   → 160 bit
SHA-256 → 256 bit
SHA-384 → 384 bit
SHA-512 → 512 bit

A cryptographic hash function maps any input to a fixed-length digest. The same input always produces the same hash; even a one-character change produces a completely different output. All computation runs locally in your browser.

How to use?

  1. 1
    Enter your textType or paste any text into the input field. Hashes update automatically as you type.
  2. 2
    Read the hash valuesMD5, SHA-1, SHA-256, SHA-384 and SHA-512 digests are displayed simultaneously below the input.
  3. 3
    Copy any hashClick the copy button next to any hash to copy it to your clipboard.

FAQ

What is the difference between MD5, SHA-1 and SHA-256?
MD5 produces a 128-bit (32-character hex) digest and is fast but cryptographically broken — do not use it for security purposes. SHA-1 produces 160 bits and is also deprecated for security use. SHA-256 (part of SHA-2) produces 256 bits and is currently the standard for security-sensitive applications. SHA-512 offers 512 bits for the highest collision resistance.
Can I reverse a hash to get the original text?
No. Hash functions are one-way by design — it is computationally infeasible to recover the input from the output. You can only verify by hashing the same input again and comparing the result.
Is my input text safe?
Yes. Everything is computed entirely inside your browser using the native Web Crypto API (SHA) and a local MD5 implementation. Your text is never transmitted to any server.

What Is a Hash Generator?

A hash generator applies a cryptographic hash function to your input and returns a fixed-length hexadecimal string called a digest. This tool supports five algorithms: MD5 (128-bit), SHA-1 (160-bit), SHA-256 (256-bit), SHA-384 (384-bit) and SHA-512 (512-bit).

Common Use Cases

  • File integrity: Verify that a downloaded file has not been tampered with by comparing its SHA-256 hash to the publisher's value.
  • Password storage: Databases store hashed passwords so that even if leaked, the originals are not exposed (use bcrypt or Argon2 in production — raw SHA is insufficient alone).
  • API authentication: HMAC signatures (e.g. HMAC-SHA256) verify that API requests come from an authorised source.
  • Data deduplication: Hash identical content to a single key in a database or cache.
  • Checksums: MD5 remains widely used for non-security checksums and legacy system compatibility.

Algorithm Comparison

AlgorithmBitsHex lengthSecurity
MD512832Broken — checksums only
SHA-116040Deprecated
SHA-25625664Current standard
SHA-38438496Strong
SHA-512512128Highest

Privacy

SHA variants are computed using the browser's built-in crypto.subtle API. MD5 is implemented in pure JavaScript locally. No input ever leaves your device.

Comments