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.
Hashed as UTF-8 exactly as typed. A trailing newline or space changes every hash.
Hashes
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
- Choose Text and type or paste, or choose File and select a file. All five hashes update as you type.
- Click Copy beside the algorithm you need. SHA-256 is the usual default.
- 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)
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.
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.
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.
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.
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.
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.
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.
Related Tools
- Password Strength CheckerTest password strength in your browser: see entropy in bits and estimated crack time. Nothing is sent or stored.
- Password GeneratorCreate strong, secure passwords with customizable options.
- DNS Propagation CheckerLook up A, AAAA, CNAME, MX, TXT and NS records on Google, Cloudflare and Quad9 and compare each answer and its TTL.
- SSL Certificate CheckerCheck a public hostname's SSL/TLS certificate: validity, expiry date and days left, issuer, hostname match, chain and TLS version.
- SPF and DMARC Record GeneratorBuild SPF and DMARC TXT records with a form, get the host and value to paste into DNS, with a 10-lookup warning. No DNS lookups.
- Subnet / CIDR CalculatorIPv4 network, broadcast, mask, wildcard, host range and usable hosts, subnet splitting and IPv6 prefix info.