Skip to content

Text Hash

Computes MD5, SHA-1, SHA-256, SHA-384, SHA-512 and CRC-32 of a string, with an uppercase and Base64 output option.

Hashes text or a file with MD5, SHA-1, SHA-256, SHA-384, SHA-512, and CRC-32 at once, and can compare the result against a checksum you paste. Text is hashed as UTF-8 bytes, which is what every other tool means when it says it hashed a string.

🔒 Runs entirely in your browserhashmd5sha256checksum
Output

Input

Drop a file to checksum it

Read in this tab. Nothing is uploaded.

Text is hashed as UTF-8 bytes, which is what every other tool means by hashing a string.

Digests

Paste a published checksum; the matching row lights up.

One row per algorithm, with the digest and a copy button.
AlgorithmDigestCopy
MD5Collisions are cheap to construct. Fine as a checksum, not for signatures or passwords.
SHA-1Collisions have been demonstrated. Fine for a legacy checksum, not for anything new.
SHA-256
SHA-384
SHA-512
CRC-32An error-detecting code, not a hash. Two files can share one by accident, let alone on purpose.

Input

0 byte

Source

text box

How to use it

  1. Type the text or drop the file

    Every algorithm is computed at once, so there is no algorithm picker to get wrong. A dropped file is read in this tab and never uploaded.

  2. Paste the published checksum

    The Compare-with box lights up whichever row matches, so you do not have to know which algorithm the publisher used — or compare 64 hex characters by eye.

  3. Switch the output format if you need Base64

    Lowercase hex, uppercase hex and Base64. The digest is the same bytes; only the spelling changes.

Common questions

Which one should I use?

SHA-256 unless something else demands otherwise. MD5 and SHA-1 have practical collision attacks — fine for spotting accidental corruption, not for anything where someone might construct a second file on purpose. CRC-32 is not a hash at all; it is an error-detecting code.

Can I hash a password with this?

You can, and you should not store the result. A password needs a slow, salted function — bcrypt, scrypt, Argon2 — precisely because SHA-256 is fast: a GPU does billions a second. The bcrypt tool on this site is the right page.

Why does the same text give a different hash elsewhere?

Nearly always a trailing newline, or a different encoding. `echo "abc"` sends four bytes, `echo -n "abc"` sends three, and a file saved as UTF-16 has completely different bytes from the same text in UTF-8. Hashing is over bytes, not over what you see.

Is my file uploaded to compute the hash?

No. Hashing runs on the bytes in this tab, through the browser’s own WebCrypto for the SHA family. That is also why it works with the network off.

Feed it from

Next

These accept what this tool produces, so the result can go straight in.