Hashing the text as UTF-8.
Help Us Improve
—
(—)
SHA-256 hash online
Create a SHA-256 online hash of text or a file in the browser and copy the hex digest. Local-first. No signup.
What is SHA-256 online?
SHA-256 online features
Text or file
Hash UTF-8 text, or switch to the raw bytes of a file.
Hex digest
64 lowercase hex characters, with an uppercase option.
Compare
Paste an expected digest to see whether it matches.
Copy
Copy the digest in one click.
How to hash with SHA-256
Enter text or a file
Type in the box, or choose a file to hash its bytes instead.
Read the digest
The SHA-256 hex string updates as the input changes.
Copy or compare
Copy the digest, or paste one you already have to check a match.
Tips for SHA-256
- 01
UTF-8 matters
Text is encoded as UTF-8 before hashing. A different encoding changes the digest.
- 02
Hex case does not change the value
Uppercase is only a display option. Compare ignores case and spaces.
- 03
A match is not decryption
Comparing a digest to text you typed checks that pair. It does not invert the hash.
- 04
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.
Quick checks
Spot a truncated or mistyped 64-character digest.
Why hash here
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 scope
A digest calculator. It does not reverse hashes.
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.
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