SHA-256 & MD5 Hash Generator and Checker

Create MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes from text or a file, and check a hash against a checksum. Free, and it runs in your browser.

Nothing is uploaded. Your text and files are hashed locally in your browser. No network request is made with your input, and nothing is stored.

Hashed as UTF-8 exactly as typed. A trailing newline or space changes every hash.

Hashes

MD5 (not for security use)
SHA-1 (not for security use)
SHA-256
SHA-384
SHA-512

Check a hash

Paste a checksum you were given, and it is compared with the hash of the input above. Hex (any case) and Base64 both work.

How to use the hash generator

  1. Choose Text and type or paste, or choose File and select a file. All five hashes update as you type.
  2. Click Copy beside the algorithm you need. SHA-256 is the usual default.
  3. To verify a download, pick the algorithm the publisher lists, paste their checksum into Check a hash and look for a green match.

Worked example

The text hello world (no trailing newline) hashes to:

MD5      5eb63bbbe01eeed093cb22bb8f5acdc3
SHA-1    2aae6c35c94fcfb415dbe95f408b9ce91ee846ed
SHA-256  b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9

Change one character, for example Hello world, and every digit of every hash changes. That is the avalanche property that makes a hash a reliable fingerprint. Use Use example above to reproduce this.

Hashing is not encryption, and not for passwords

Encryption is reversible with a key; a hash is a one-way fingerprint with fixed length. You cannot "decrypt" a SHA-256 hash. People can still recover simple inputs by guessing, because hashing a guess takes microseconds and there are huge lookup tables of common passwords.

Do not store passwords as MD5, SHA-1 or SHA-256, with or without a salt. These algorithms are designed to be fast, which helps attackers. Passwords need a deliberately slow algorithm. Use the Bcrypt Hash Generator, and check candidate passwords with the Password Strength Checker or create strong ones with the Password Generator.

Good uses for these hashes: file checksums, cache keys, deduplication, and data integrity checks. MD5 and SHA-1 have known collisions, so avoid them where an attacker could craft the input.

Frequently Asked Questions (FAQ)

Is my text or file uploaded?

No. Hashing runs in your browser using the built-in Web Crypto API (and a small JavaScript function for MD5). Nothing is sent to a server, and files are read locally. You can confirm in your browser’s Network tab.

What is the difference between hashing and encryption?

Encryption is reversible: with the right key you get the original data back. A hash is a one-way fingerprint: the same input always gives the same fixed-length output, but there is no key and no way to turn the hash back into the input. Hashes are used to verify integrity, not to hide data.

Can I use SHA-256 or MD5 to store passwords?

No. SHA-256, MD5 and the other hashes here are fast and unsalted, so an attacker can test billions of guesses per second against a leaked hash and look up common passwords in precomputed tables. Passwords need a slow, salted algorithm such as bcrypt or Argon2. Use the Bcrypt Hash Generator for that.

Is MD5 still safe to use?

Not for security. Researchers can create two different inputs with the same MD5 hash (a collision), so it must not be used for signatures or certificates. It is still fine as a quick checksum to detect accidental corruption, which is why many download pages still list MD5.

Which algorithm should I choose?

Use SHA-256 by default: it is widely supported and has no known practical attacks. SHA-384 and SHA-512 give longer digests. SHA-1 is deprecated for security use because collisions have been demonstrated. Use MD5 or SHA-1 only when you must match an existing checksum.

How do I verify a downloaded file?

Choose the File tab, select the downloaded file, pick the algorithm the publisher lists (usually SHA-256), then paste the published checksum into the compare box. A green match means the file is identical to what the publisher hashed; any difference, even one byte, gives a completely different hash.

Why does my hash differ from another tool’s?

Usually because the input differs by an invisible character: a trailing newline, different line endings (CRLF vs LF), or different text encoding. This tool hashes your text as UTF-8 exactly as typed, with nothing added. Tools such as echo add a newline unless you use echo -n.