Development and data
How to calculate SHA-256 for sample text
A hash transforms bytes into a fixed-size digest. Comparing hashes can help detect differences in text, but does not establish authorship.
Before you start
Text is processed in the browser. Consider the content before using it and read the privacy policy.
PrivacyHow to use it
Enter abc without spaces or a newline and calculate SHA-256.
Check the 64 hexadecimal digits displayed.
Change one character and calculate again to see a different digest.
Worked example
The example uses the UTF-8 bytes of abc; even an extra newline changes the input. For readability, the result below is split into two 32-digit parts.
ba7816bf8f01cfea414140de5dae2223 b00361a396177a9cb410ff61f20015ad
Limits and checks
The actual output has no space. A hash is not a reversible cipher and does not guarantee authenticity; predictable inputs can be discovered by guessing and comparing. Do not use plain SHA-256 for password storage. The tool accepts text, not files, up to 100,000 UTF-16 code units and requires Web Crypto.
Next step
To inspect the text bytes, use the hexadecimal converter.
How to represent text bytes in hexadecimal