Developer Tools

Hash Generator — MD5, SHA-1, SHA-256, SHA-384 & SHA-512

Generate cryptographic hashes from text or files instantly. Verify downloads, compare payload fingerprints, and compute checksums — all in your browser with zero uploads.

MD5 & SHA FamilyText + File InputChecksum ComparisonCopy Any DigestTXT ExportUppercase ToggleWeb Crypto API100% Client-Side
MD5128-bit

Legacy checksum — fast but not collision-resistant for security.

—
SHA-1160-bit

Legacy digest — still seen in Git, but avoid for security decisions.

—
SHA-256256-bit

Industry standard for integrity checks, APIs, and blockchain.

—
SHA-384384-bit

SHA-2 variant for protocols or policies requiring a 384-bit digest.

—
SHA-512512-bit

SHA-2 variant for protocols or policies requiring a 512-bit digest.

—

Private by design. Hashing uses your browser's Web Crypto API and local processing. Text and files are never uploaded to any server.

What Is a Cryptographic Hash?

A cryptographic hash function converts any sequence of bytes into a fixed-length message digest. The same bytes and algorithm produce the same digest, while even a small input change normally produces a very different result. Hashes are useful for integrity checks, content fingerprints, cache keys, deduplication, and as building blocks inside larger cryptographic protocols.

Text entered here is converted to UTF-8 bytes before hashing. Files are hashed as their exact binary bytes, so filename changes do not affect the digest but any byte-level content change does.

Common Use Cases

📦

Download Verification

Compare SHA-256 checksums against vendor-published hashes to confirm file integrity.

🔐

Payload Fingerprints

Compare an unkeyed payload digest while debugging integrations. HMAC verification requires a secret key and is a separate operation.

🗄️

Cache Keys & ETags

Create stable fingerprints for content caching, deduplication, and CDN invalidation.

🧪

Dev & QA Workflows

Quickly hash test strings, config values, or fixtures during local development.

Which Hash Algorithm Should You Use?

AlgorithmOutputBest For
MD5128 bits / 32 hexLegacy compatibility, cache keys, non-adversarial checks only
SHA-1160 bits / 40 hexGit and legacy compatibility; avoid for security decisions
SHA-256256 bits / 64 hexGeneral file integrity and modern interoperability
SHA-384384 bits / 96 hexSHA-2 protocols or policies that specifically require it
SHA-512512 bits / 128 hexSHA-2 protocols requiring a 512-bit digest

Best Practices

  • Use SHA-256 as a broadly interoperable default for file integrity; follow the target protocol when it requires SHA-384 or SHA-512.
  • Never use MD5 or SHA-1 for password storage or digital signatures.
  • Compare checksums case-insensitively — hex casing does not change the digest.
  • Obtain the expected checksum from a trusted HTTPS page or independently authenticated source.
  • A matching checksum confirms identical bytes to that digest; it does not establish who published the file.

Hashes, HMACs, and Password Storage Are Different

Plain hash

An unkeyed digest such as SHA-256. Useful for detecting byte changes when the expected digest comes from a trusted source.

HMAC

A keyed message authentication code. It requires a secret key and authenticates data between parties that share that key; this tool does not generate HMACs.

Password hash

A salted, deliberately expensive password-hashing function such as Argon2id, scrypt, bcrypt, or PBKDF2. Fast MD5 and SHA digests alone are unsuitable.

Continue Your Developer Workflow

Convert hexadecimal digests into binary, decimal, or another numeric base with the Number Base Converter, convert binary data to a transport-friendly representation with the Base64 Encoder & Decoder, inspect signed token claims with the JWT Decoder & Debugger, encode a digest for a URL component using the URL Encoder & Decoder, or generate identifiers that are independent of content with the UUID v4 / GUID Generator.

Hash Standards and Security References

SHA-1 and the SHA-2 family are specified by NIST FIPS 180-4. Browser digest behavior and supported SHA algorithms are documented by MDN's SubtleCrypto.digest reference. For authentication systems, review the OWASP Password Storage guidance. External references open in a new tab.

Frequently Asked Questions