Hash Generator (MD5, SHA-1, SHA-256, SHA-512)

Compute MD5, SHA-1, SHA-256 and SHA-512 hashes of any text instantly, right in your browser.

Matches echo -n when your pasted text ends with a line break.

SHA-256
d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592
Input size (UTF-8)
43 bytes
SHA-512
07e547d9586f6a73f73fbac0435ed76951218fb7d0c8d788a309d785436bbb642e93a252a954f23912547d1e8a3b5ed6e1bfd7097821233fa0538f3db854fee6
SHA-1
2fd4e1c67a2d28fced849ee1bb76e7391b93eb12
MD5
9e107d9d372bb6826bd81d3542a419d6

Runs entirely in your browser. Nothing you enter is uploaded.

How it works

A cryptographic hash function turns any input into a fixed-length fingerprint. The same input always gives the same hash, the smallest change — one letter, one space — gives a completely different one, and there is no practical way to go backwards from the hash to the input. Hashes are used to verify downloads, deduplicate files, build cache keys and sign data.

Text is converted to UTF-8 bytes before hashing, which is what nearly every programming language and command-line tool does, so the results match sha256sum, openssl dgst and Python's hashlib. A frequent source of mismatches is a trailing newline: echo adds one unless you use echo -n. The "ignore trailing newline" option helps when comparing.

SHA-256 and SHA-512 (the SHA-2 family) are current standards. MD5 and SHA-1 are shown for compatibility with older systems, but attackers can create collisions for both, so never use them for passwords, signatures or certificates.

All four algorithms are implemented in plain JavaScript and run in your browser; your text is not uploaded.

Frequently asked questions

Can I hash passwords with SHA-256?

Not on its own. Fast hashes let attackers test billions of guesses per second. Store passwords with a slow, salted algorithm designed for the job — Argon2id, scrypt or bcrypt.

Why does my hash differ from another tool?

Almost always the input differs: a trailing newline, Windows line endings (\r\n), a different text encoding, or invisible whitespace. Hex case does not matter — ABC and abc are the same value.

Can a hash be reversed or "decrypted"?

No. Hashing is one-way. Sites that claim to reverse MD5 simply look the hash up in huge tables of previously hashed common words, which is why short or common inputs are not protected by hashing.

esc