SHA-256 hash generator (plus MD5, SHA-1, SHA-512)
Type a text or drop a file to get its five most common hashes at once, for free, then paste the checksum published by the download site to check that your file is intact.
Free, no sign-up, no limit Runs in your browser: your text and files are never sent or saved.
SHA-256 hash generator
Hashes
Type a text or choose a file to see its hashes.
How to use it
- Choose “Text” and type or paste it, or choose “File” and drop the file to check.
- Read the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes, in lowercase or uppercase hex or in Base64.
- To verify a download, paste the expected checksum: the box turns green if it matches one of the hashes. For an HMAC, type the key; to share a checksum, download a .sha256 file.
Example
Input
Hello, world!
Output
SHA-256: 315f5bdb76d078c43b8ac0064e4a0164612b1fce77c869345bfc94c75894edd3
Good to know
- MD5 and SHA-1 are broken for security (collisions can be forged): never use them for passwords or signatures. They remain fine to check that a download was not corrupted.
- Text is hashed as UTF-8, exactly as typed: an extra space or line break changes the whole hash.
- Files are read locally in chunks, up to 1 GB; nothing is uploaded or sent to a server.
- A plain hash is not a password hash: for storing passwords, use bcrypt, scrypt or Argon2.
Frequently asked questions
How do I get the SHA-256 hash of a file?
Choose “File” and drop it: the file is read in your browser in 4 MB chunks, up to 1 GB, and never uploaded. Without a browser: Get-FileHash file.zip -Algorithm SHA256 in PowerShell, certutil -hashfile file.zip SHA256 in the Windows command prompt, sha256sum on Linux, shasum -a 256 on macOS.
How do I verify a download with its checksum?
Hash the downloaded file, then paste the checksum from the download page into “Compare with an expected hash”. The box turns green and names the algorithm if it matches any of the five hashes. Hex is compared without case, and a full sha256sum line (“hash file name”) is accepted.
Can a SHA-256 hash be decrypted?
No. A hash is one-way: it cannot be turned back into the text. Sites that claim to “decrypt” SHA-256 or MD5 only look the hash up in tables of common words and leaked passwords, which is exactly why a password needs a salted, slow hash.
Why is my hash different from another tool’s?
The input differs, usually by an invisible character. Here text is hashed as UTF-8, exactly as typed. echo "text" | sha256sum adds a line break at the end: use echo -n. A trailing space, Windows line endings (CRLF) or another encoding also change the whole hash.
What is the difference between MD5, SHA-1, SHA-256 and SHA-512?
Their length and their strength: MD5 gives 32 hex characters, SHA-1 40, SHA-256 64 and SHA-512 128. Collisions can be forged for MD5 and SHA-1, so they are only good for spotting a corrupted download; use SHA-256 or SHA-512 for anything security related.
Can I hash with a salt or compute an HMAC?
Yes for HMAC: type a key in “HMAC key” and the five values become HMAC-MD5 to HMAC-SHA-512 (RFC 2104), as used to sign webhooks and API requests. For a simple salted hash, type the salt and the text together. To store passwords, use bcrypt, scrypt or Argon2 rather than any plain or salted SHA-256.
Sources
- NIST, FIPS 180-4: Secure Hash Standard (SHA-1, SHA-256, SHA-384, SHA-512)
- IETF, RFC 1321: The MD5 Message-Digest Algorithm
- IETF, RFC 2104: HMAC, Keyed-Hashing for Message Authentication
- IETF, RFC 6151: Updated Security Considerations for MD5 and HMAC-MD5
- NIST: NIST Retires SHA-1 Cryptographic Algorithm (2022)
Checked on November 26, 2026