</> Online Utilitiesdev.conversiontools.online

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.

Hash a file instead: drop any file here or tap to choose — it is read locally and hashed byte-for-byte, nothing is uploaded.

Your hashes

Send your text to…

Carry the text you are hashing into the next step of your workflow — decode it as a token, encode it, or count it. The value travels in the link itself — nothing is uploaded.

Send the SHA-256 hash to…

Carry just the SHA-256 digest onward — encode it, count it, or turn it into a QR code.

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

            1. 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.
            2. Choose the algorithms you need with the checkboxes: MD5, SHA-1, SHA-256, SHA-384 and SHA-512.
            3. Optionally enter an HMAC key to key every hash, or tick UPPERCASE if the system you are pasting into expects capital hex.
            4. 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

            Input: hello (5 bytes of UTF-8) MD5: 5d41402abc4b2a76b9719d911017c592 SHA-1: aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d SHA-256: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 SHA-512: 9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca7 2323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043 One character changes everything (the avalanche effect): “hello” → MD5 5d41402a… “Hello” → MD5 8b1a9953c4611296a827abf8c47804d7 — completely unrelated.

            Which hash should you use?

            AlgorithmOutputStatusUse it for
            MD5128 bits · 32 hex charsBroken for securityQuick checksums, cache keys, detecting accidental corruption — never signatures or passwords
            SHA-1160 bits · 40 hex charsDeprecatedLegacy compatibility (older Git objects, old checksums) — migrate away for anything new
            SHA-256256 bits · 64 hex charsCurrent standardFile checksums, fingerprints, HMAC signing, content addressing — the safe default
            SHA-384384 bits · 96 hex charsCurrent standardA truncated SHA-512 — common in TLS certificates and government systems
            SHA-512512 bits · 128 hex charsCurrent standardMaximum 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

            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.