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
- Choose the Text or File tab depending on what you want to hash.
- On the Text tab, type or paste text — MD5, SHA-1, SHA-256, and SHA-512 hashes appear automatically as you type.
- On the File tab, click to browse or drag a file in (up to 100 MB), then click "Compute hashes."
- 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.
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.