SHA-256 Hash Generator
Create the SHA-256 hash of a text or a file, for example to check a download against the checksum on its website, to store a fingerprint of a file, or to make an HMAC-SHA256 signature. The hash is computed by your browser's Web Crypto; nothing is uploaded.
How to use this tool
- Choose "Text" and type or paste, or choose "File" and pick a file of any size and type.
- The SHA-256 hash appears at once and updates as you type.
- Choose hex or Base64 output, and uppercase hex if a tool expects it.
- To verify a download, paste the published checksum into the comparison field.
What this tool can do
Text and files
Hash typed text (encoded as UTF-8) or any file: installers, ISO images, archives, documents. Large files are read on your device.
Hex or Base64
Hex is the 64-character form used for checksums and Git-style fingerprints; Base64 is the shorter form used in Subresource Integrity and many APIs.
HMAC-SHA256
Turn on HMAC and enter a key to get HMAC-SHA256, the signature used for webhooks (GitHub, Stripe and others) and JWT HS256.
Checksum comparison
Paste the expected value and the tool tells you whether it matches, ignoring a "sha256:" prefix, so you do not have to compare 64 characters by eye.
Tips and common problems
My hash does not match the website
Check that you hashed the exact file (not a renamed or re-downloaded copy that failed), that the site lists SHA-256 and not SHA-1 or MD5, and that you compare hex with hex or Base64 with Base64.
The text hash differs from another tool
Trailing spaces and line endings change the hash. A line break added by an editor or by echo in a terminal gives a different result; echo -n leaves it out.
Webhook signature does not match
Hash the raw request body exactly as received, before any JSON parsing, and use the same secret. Most services send the signature in hex.
Can SHA-256 be reversed?
No. A hash is one-way. Short or common inputs such as simple passwords can still be guessed by trying many values, so do not use plain SHA-256 to store passwords.
Frequently asked questions
How do I get the SHA-256 checksum of a file?
Choose "File", pick the file, and the SHA-256 hash appears. Paste the checksum from the download page into the comparison field to check it.
Is my file uploaded?
No. The file is read and hashed inside your browser with the Web Crypto API. It never leaves your device.
How long is a SHA-256 hash?
256 bits: 64 hexadecimal characters, or 44 characters in Base64.
What is the command line equivalent?
sha256sum file on Linux, shasum -a 256 file on macOS, and Get-FileHash file on Windows PowerShell (or certutil -hashfile file SHA256).
Should I hash passwords with SHA-256?
Not on its own. For stored passwords use a slow password hash such as Argon2, scrypt or bcrypt, which make guessing far more expensive.
More developer tools
Hash Generator
MD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or files, HMAC, and checksum comparison.
Open tool →Base64 Encode & Decode
Text and files to Base64 or Base64URL, data URIs, and Base64 back to text, hex or a file.
Open tool →Secret Key Generator
Random secrets in hex, Base64 or Base64URL, API keys and passwords, with the entropy shown.
Open tool →