SHA-256 encrypt / decrypt
SHA-256 encrypt text or a file, or check a candidate against a digest. Free SHA256 decrypt-style checker—local-first, no signup.
Hashing the text as UTF-8.
Help Us Improve
—
(—)
What is SHA-256 encrypt / decrypt?
SHA-256 encrypt / decrypt features
SHA-256 encrypt (hash)
Turn UTF-8 text or file bytes into a 64-character hex digest.
Check a candidate
Paste a digest and a guess to see whether they match—honest trial-and-error for one string.
Compare digest
While hashing, paste an expected SHA-256 to confirm a checksum.
Local-first
No signup and no upload of text or files.
How to SHA-256 encrypt and decrypt (check)
Pick a mode
Encrypt hashes text or a file. Check compares a candidate string to a digest you paste.
Enter the input
Type text, choose a file, or paste both a hash and a guess in Check mode.
Copy or read the result
Copy the SHA-256 hex string, or see whether the candidate matches.
Tips for SHA-256 encrypt / decrypt
UTF-8 matters
Text is encoded as UTF-8 before hashing. A different encoding changes the digest.
Hex case does not change the value
Uppercase is only a display option. Compare ignores case and spaces.
A match is not SHA-256 decryption
Comparing a digest to text you typed checks that pair. It does not invert the hash.
Do not use SHA-256 alone for passwords
Password storage needs a slow password hash (such as Argon2 or bcrypt), not a raw SHA-256 digest.
Great for
Checksums
Confirm a file or string matches a published digest.
API examples
See the hex form your code should produce for a known input.
Guess checks
Test whether a candidate string produces a SHA256 digest you already have.
Why use this SHA-256 tool
Local-first
Text and files stay in the browser for this tool.
Free
Unlimited hashes with no signup.
Web Crypto
Uses the browser SHA-256 implementation, not a lookalike.
Honest about decrypt
Explains that SHA-256 cannot be reversed, instead of promising cracked inputs.
Technical notes
- Algorithm
- crypto.subtle.digest("SHA-256").
- Text
- UTF-8 via TextEncoder, including the empty string.
- Files
- The file bytes only—filename and metadata are not included.
- Privacy
- Client-side only—no network upload and no online rainbow-table lookup.
Sources & References
“The digest() method of the SubtleCrypto interface generates a digest of the given data, using the specified hash function. A digest is a short fixed-length value derived from some variable-length input.”
MDN — SubtleCrypto.digest(): Browser API this page uses to compute SHA-256. developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest
“SHA-2 (Secure Hash Algorithm 2) is a set of cryptographic hash functions designed by the United States National Security Agency (NSA) and first published in 2001.”
Wikipedia — SHA-2: SHA-256 is the 256-bit member of the SHA-2 family. en.wikipedia.org/wiki/SHA-2
“This standard specifies hash algorithms that can be used to generate digests of messages. The digests are used to detect whether messages have been changed since the digests were generated.”
FIPS 180-4: The federal standard that specifies SHA-256. csrc.nist.gov/pubs/fips/180-4/upd1/final