MD5 Hash Generator
Type or paste any string into the input box, then click Hash. Because browsers expose SHA-256 but not MD5 in Web Crypto, the result is labeled as a browser-safe SHA-256 digest so you know exactly which algorithm ran.
Updated 2026-08-03 · security
About this tool
This page keeps the familiar MD5-hash-generator name, yet the Hash button runs crypto.subtle.digest with SHA-256 on a UTF-8 encoding of your text. The output is a lowercase hex string prefixed with a short note that MD5 is unavailable in Web Crypto. Nothing is uploaded; hashing stays on your device.
How to use
- Open the hasher: Load this page so the Input textarea and Hash button appear.
- Enter text: Type or paste the string you want hashed (sample default is hello).
- Click Hash: Press Hash to run SHA-256 through the browser Web Crypto API.
- Copy the digest: Copy the hex digest from the result area and paste it where you need it.
Common use cases
- Create a quick hex fingerprint of a string while coding or debugging.
- Compare two inputs by hashing each and checking whether the digests match.
- Teach the difference between classic MD5 and modern Web Crypto SHA-256.
Tips
- Read the result prefix; it states SHA-256 when MD5 cannot run in the browser.
- The same input always yields the same hex digest for a given algorithm.
- Prefer SHA-256 for new integrity checks; MD5 is weak for security use.
FAQ
Why do I see SHA-256 instead of MD5?
Browsers do not expose MD5 in Web Crypto, so this tool hashes with SHA-256 and labels the output clearly.
Is my text sent to a server?
Hashing runs locally with crypto.subtle.digest after you click Hash.
What encoding is used?
The input is encoded as UTF-8 with TextEncoder before digesting.
Can I get a true MD5 digest here?
Not in this browser tool; use a dedicated MD5 library or CLI if you specifically need MD5.