Hash Generator (MD5, SHA-256, SHA-512)

Free hash generator: MD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or files, optional HMAC key, hex or Base64, and checksum verification. Runs in your browser.

✓ Free🔒 Private⚡ No sign-up
…or drop a file here / click to choose (up to 500 MB)
Hashes

🔒 Runs entirely in your browser. Your files are never uploaded.

</> Add to your site

Embed this tool on your website for free: copy the code and paste it into your page's HTML. Everything runs in your visitors' browsers; files are not uploaded.

Preview ↗

How to generate a hash

  1. Type or paste text, or drop a file into the box. Text is hashed as UTF-8.
  2. All five hashes — MD5, SHA-1, SHA-256, SHA-384 and SHA-512 — appear at once and update as you type.
  3. Choose lowercase hex, uppercase hex or Base64 output, and copy any line with its button.
  4. To create an HMAC signature instead, enter a secret key in the HMAC key field.

Verifying a checksum

Software downloads often publish a SHA-256 checksum next to the file. Drop the downloaded file here and paste the published value into Expected hash. A green tick means the file is byte-for-byte identical; a mismatch means the file is damaged or not the one the publisher released. Spaces and letter case in the pasted value are ignored, and Base64 checksums work too.

Algorithms compared

| Algorithm | Output length | Hex characters | Status |

|---|---|---|---|

| MD5 | 128 bits | 32 | broken for security, OK for error checks |

| SHA-1 | 160 bits | 40 | broken (collisions shown in 2017), retired by NIST |

| SHA-256 | 256 bits | 64 | secure, most widely used |

| SHA-384 | 384 bits | 96 | secure |

| SHA-512 | 512 bits | 128 | secure, often faster on 64-bit CPUs |

Example

| Input | SHA-256 |

|---|---|

| abc | ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad |

| empty text | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 |

Changing a single character changes the whole hash — this "avalanche effect" is what makes hashes useful as fingerprints.

What is HMAC?

HMAC combines a hash with a secret key. Only someone who knows the key can produce the same value, so it is used to sign API requests and webhooks (for example HMAC-SHA256). Enter the same key and message as the sender to check a signature.

Privacy

SHA hashes are computed with your browser's Web Crypto API and MD5 with built-in code. Text, keys and files never leave your device.

Frequently asked questions

What is a hash?

A cryptographic hash function turns any input into a fixed-length fingerprint, for example 64 hexadecimal characters for SHA-256. The same input always gives the same hash, a tiny change gives a completely different one, and the original cannot be recovered from the hash.

How do I verify a downloaded file?

Drop the file into the tool and paste the checksum published by the download site into the expected-hash field. If one of the algorithms matches, a green tick appears and the file is identical to the original. The file is read in your browser and never uploaded.

Is MD5 or SHA-1 still safe?

Not for security. Collisions (two different inputs with the same hash) can be created for both, so NIST has retired SHA-1 and MD5 should not be used for signatures or certificates. They remain fine for detecting accidental corruption. Use SHA-256 or stronger for anything security-related.

Can I hash passwords with this?

Plain SHA-256 or MD5 is not suitable for storing passwords because it is fast to brute-force. Password storage needs a slow, salted algorithm such as Argon2, scrypt or bcrypt. This tool is meant for checksums, fingerprints and HMAC signatures.

Sources

Last updated: