Hash Generator — MD5, SHA-1, SHA-256 & SHA-512
Compute MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text — or of a whole file — live as you type. Add an optional HMAC key, switch to uppercase output, verify a published checksum with the built-in checker, and copy or download every digest. Nothing is uploaded: hashing happens entirely in your browser.
Your hashes
Find & Replace
Fix the input before hashing — one changed character produces a completely different hash, so a stray space or typo is worth catching here first. Works on the text box (not on a dropped file).
Try an example
One click loads a real input so you can see exactly what comes out — every value below is the genuine, verifiable hash.
Your session
Hash sets you copy, download or pin during this visit, kept only in this tab's memory — step back and forth, restore one, or pin a set you want to keep handy. Nothing here is stored or sent anywhere.
Recent hash sets
No hash sets recorded yet — copy or download a set of hashes and it will appear here.
Pinned hash sets
No pinned hash sets yet — hash something, then use “Pin this hash set”.
Your tools
Tools you have actually opened this session, plus any you pin as favorites. The lists live in this browser session only.
Recently used
No other tools opened yet this session — tools you visit will appear here.
Favorite tools
No favorites yet — pin a tool below.
All encoding, conversion & developer tools
How to use the hash generator
- Type or paste your text — the hashes update live. To hash a file instead, drop it onto the tool: it is read locally and hashed byte-for-byte.
- Choose the algorithms you need with the checkboxes: MD5, SHA-1, SHA-256, SHA-384 and SHA-512.
- Optionally enter an HMAC key to key every hash, or tick UPPERCASE if the system you are pasting into expects capital hex.
- Copy a single hash with its Copy button, copy or download the whole set — or paste an expected hash into the hash checker to verify a download or a signature.
Worked example
Which hash should you use?
| Algorithm | Output | Status | Use it for |
|---|---|---|---|
| MD5 | 128 bits · 32 hex chars | Broken for security | Quick checksums, cache keys, detecting accidental corruption — never signatures or passwords |
| SHA-1 | 160 bits · 40 hex chars | Deprecated | Legacy compatibility (older Git objects, old checksums) — migrate away for anything new |
| SHA-256 | 256 bits · 64 hex chars | Current standard | File checksums, fingerprints, HMAC signing, content addressing — the safe default |
| SHA-384 | 384 bits · 96 hex chars | Current standard | A truncated SHA-512 — common in TLS certificates and government systems |
| SHA-512 | 512 bits · 128 hex chars | Current standard | Maximum margin; often faster than SHA-256 on 64-bit systems |
All five are fast hashes, designed to fingerprint data quickly. That speed is exactly why none of them — not even SHA-512 — should be used to store passwords on their own: an attacker can test billions of guesses per second. Password storage needs a deliberately slow, salted function such as bcrypt, scrypt or Argon2id.
Hashing vs encoding vs encryption
- Hashing (this tool): one-way fingerprint. No key, no undo. MD5, SHA-256.
- Encoding (Base64, URL encoding): a reversible change of format for transport. Anyone can decode it — it protects nothing.
- Encryption: reversible only with a secret key. If you need to read the data back later and keep it secret, you need encryption, not a hash.
HMAC in one paragraph
Plain hashes prove a message matches a fingerprint — but anyone can recompute a fingerprint for a forged message. HMAC mixes a secret key into the hash, so only a key holder can produce a valid result. That is why APIs and webhooks sign payloads with HMAC-SHA-256. Enter a key above and every row becomes the HMAC of your input under that key — for the SHA family and for MD5/SHA-1 alike.
What to do with a hash next
A hash is usually a means to an end: you compare it against a published checksum (the checker above does that), store it as a fingerprint next to a file, sign with it via HMAC, or embed it somewhere it has to travel as text. The “Send your text to…” bar carries your input into the JWT Decoder, Base64 Encoder/Decoder, URL Encoder/Decoder or JSON Formatter, and the second bar carries just the SHA-256 digest onward — and text chained in from other tools is loaded here and hashed automatically.
Frequently asked questions
What is a hash function?
A hash function turns any input — a word, a file, a whole disk image — into a fixed-length fingerprint of hex characters. The same input always produces the same hash, and even a one-character change produces a completely different one. Hashes are one-way: you cannot reconstruct the input from the hash.
Can a hash be reversed or decoded back to the original text?
No. Hashing is not encryption and not encoding — there is no key and no decode step. The only way to “reverse” a hash is to guess inputs and hash them until one matches, which is why short, common inputs like the word “password” are effectively public: their hashes are in every lookup table.
Should I use MD5 or SHA-256?
For anything security-related, use SHA-256 (or SHA-512). MD5 is broken — researchers can craft two different files with the same MD5 hash — and SHA-1 is deprecated for the same reason. MD5 is still fine as a quick checksum to catch accidental corruption, like verifying a download copied correctly, where nobody is actively trying to fool you.
Is hashing a password with SHA-256 safe?
Not on its own. MD5 and the SHA family are fast — billions of guesses per second on a GPU — and unsalted, so identical passwords produce identical hashes. Passwords need a slow, salted password-hashing function such as bcrypt, scrypt or Argon2id. Use this tool for checksums, fingerprints and HMAC, not for storing passwords.
What is HMAC?
HMAC is a hash combined with a secret key: only someone who knows the key can produce or verify the result. It proves both that a message was not changed and that it came from a key holder. HMAC-SHA-256 is widely used to sign API requests and webhooks. Enter a key in the HMAC field above and every algorithm becomes its HMAC variant.
What is a checksum?
A checksum is a hash published alongside a file so you can verify the file arrived intact. Download the file, hash it here, and compare: if your hash matches the published one character for character, the bytes are identical. The checker box above does the comparison for you.
What are the hashes of “hello” and of the empty string?
MD5 of “hello” is 5d41402abc4b2a76b9719d911017c592 and its SHA-256 is 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824. The empty string hashes to MD5 d41d8cd98f00b204e9800998ecf8427e and SHA-256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 — the empty hash is a useful smoke test for any hash tool.
Why did my file hash change when I edited one character?
That is the avalanche effect, a design goal of hash functions: flipping a single input bit flips about half of the output bits, so the new hash looks completely unrelated to the old one. It is what makes hashes useful as fingerprints — similar inputs never produce similar hashes.
Is my text or file uploaded or stored?
No. Hashing happens entirely in your browser — files you drop are read locally and never leave your device, and nothing you hash here is stored or sent to a server.
Related encoding, conversion & developer tools
About this tool
The Hash Generator is one of the free utilities in the Online Utilities Suite at dev.conversiontools.online. Every tool runs entirely in your browser — your text and files are never uploaded, stored or tracked — so hashing is instant and private, even for large files. MD5 and SHA-1 are computed by audited in-page implementations; SHA-256, SHA-384 and SHA-512 use your browser's built-in Web Crypto engine, the same code your browser uses for TLS.
Privacy
This page processes everything locally in your browser: no account, no uploads, and nothing you type or drop here is stored or sent to a server. Advertising on this site is served by Google AdSense, which may use cookies to personalize ads; you can opt out of personalized advertising in your Google ad settings.