Hash Generator

Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text or files. Compare hashes, generate HMACs, and verify checksums.

InputText is hashed as UTF-8 bytes
Hashes
Nothing to hash yetType or paste text on the left, or try the
Waiting for inputProcessed locally

How to use it

  1. Type or paste text, or switch to File and drop a file — every hash is computed in your browser.
  2. Pick an algorithm to put its digest first, and choose hex, upper-case hex or Base64 output.
  3. Copy one digest or all of them, or use HMAC, Compare and Verify to sign messages and check downloads.

Related tools

MD5 Hash GeneratorGenerateSHA-256 Hash GeneratorGeneratePassword GeneratorGenerate

What is a Hash Generator?

A hash generator computes cryptographic hash values from text or files. A hash function takes input of any size and produces a fixed-size output (digest) that uniquely represents the input. This tool supports MD5, SHA-1, SHA-256, SHA-384, SHA-512, and HMAC variants using the Web Crypto API for secure client-side computation.

Common use cases

  • Generating checksums to verify file integrity
  • Creating password hashes for security testing
  • Computing HMAC signatures for API authentication
  • Verifying downloaded files against published hashes
  • Hashing sensitive data for comparison without exposing originals

Frequently asked questions

What is the difference between MD5 and SHA-256?

MD5 produces a 128-bit hash and is fast but cryptographically broken — collisions can be generated easily. SHA-256 produces a 256-bit hash and is currently considered secure. Use SHA-256 or SHA-512 for any security-sensitive application.

What is HMAC?

HMAC (Hash-based Message Authentication Code) combines a hash function with a secret key to verify both data integrity and authenticity. Unlike a plain hash, HMAC proves the message was created by someone who knows the secret key.