Hash Generator

Generate MD5, SHA-1, SHA-256, and SHA-512 hashes or HMACs from text or files, entirely in your browser.

How to use the Hash Generator

  1. Choose the Text or File tab depending on what you want to hash.
  2. On the Text tab, type or paste text — MD5, SHA-1, SHA-256, and SHA-512 hashes appear automatically as you type.
  3. On the File tab, click to browse or drag a file in (up to 100 MB), then click "Compute hashes."
  4. To compute an HMAC instead of a plain digest, check "Use HMAC" and enter a secret key — this works for both tabs and all four algorithms, including MD5.
  5. To verify against a known checksum, paste it into the Expected hash field that appears once a result is shown — the matching row gets a Match or No match badge automatically.

How This Tool Works

SHA-1, SHA-256, and SHA-512 are computed with the browser's built-in Web Crypto API (SubtleCrypto.digest), the same cryptographically-reviewed implementation used by browsers for TLS and other security-sensitive work.

MD5 is not supported by Web Crypto, so it's computed with a small pure-JavaScript implementation of the RFC 1321 algorithm running locally in your browser.

Hashing happens entirely client-side — your text is never sent to a server, which makes this safe to use on sensitive strings like API keys or passwords you're checking against a known hash.

Once a result exists, an Expected hash field lets you paste a known checksum — either the bare hex value or a whole line from a checksum file (sha256sum-style or BSD/OpenSSL-style) — and the tool detects which algorithm it belongs to purely from its length (32/40/64/128 hex characters), showing a Match or No match badge on that specific row so you can confirm a download or transfer wasn't corrupted or tampered with.

Frequently Asked Questions

Advertisement

Related tools

Advertisement