Choose text or a supported file input
Hash a small text sample, change one character and compare the resulting digests.
Create a SHA-256 digest locally with Web Crypto.
A hash is useful for noticing changed content when the expected digest comes from a trusted source.

Hash a small text sample, change one character and compare the resulting digests.
Calculate a file or text digest for an integrity check.
A hash is not a password encryption or authenticity guarantee.
Hash a small text sample, change one character and compare the resulting digests.
A published SHA-256 digest is useful when it comes from a trustworthy separate source. If your local file differs by even one byte, the computed digest should be different.
Use the real tool above to verify the result. The example illustrates the workflow, not a guaranteed outcome.
A published SHA-256 digest is useful when it comes from a trustworthy separate source. If your local file differs by even one byte, the computed digest should be different.
Copy the entire 64-character hexadecimal digest, not just its beginning. A matching hash shows byte equality to the reference, not that the publisher is trustworthy.
A hash is useful for noticing changed content when the expected digest comes from a trusted source.
A hash is useful for noticing changed content when the expected digest comes from a trusted source.
Hash a small text sample, change one character and compare the resulting digests.
A published SHA-256 digest is useful when it comes from a trustworthy separate source. If your local file differs by even one byte, the computed digest should be different.
SHA-256 processes input bytes into a 256-bit digest commonly displayed as 64 hexadecimal characters. Even a one-character change usually produces a very different hash. This makes hashes useful for comparing downloaded files or checking whether a text value changed between two versions. If two genuine SHA-256 digests match, that is strong evidence that their byte inputs were the same in ordinary integrity-checking situations, but a hash alone does not identify who created the content.
The text "hello" and "Hello" have different digests because uppercase and lowercase characters differ in their bytes. A trailing newline also changes a file hash, as does changing character encoding or line endings. When someone publishes an expected checksum, hash the downloaded file itself rather than its filename or the textual description of it. Compare the complete hexadecimal value character-for-character; checking just the first few characters is inadequate for serious integrity verification.
A hash is a one-way digest, not a reversible encryption format. Anyone can calculate the SHA-256 of a candidate word and compare it to a known digest. Therefore simply hashing passwords once with ordinary SHA-256 is generally not suitable for modern password storage. Proper credential storage uses dedicated password-hashing methods with individual salts and work factors, such as Argon2id, scrypt or bcrypt, according to platform needs. This browser utility should be used for integrity and demonstrations rather than designing a new authentication system.
A digest also is not a digital signature. A malicious actor who can replace both a file and its published checksum can make their modified copy appear consistent. For trusted software distribution, obtain the expected checksum over an authenticated channel or verify a cryptographic signature where available. The integrity property concerns bytes; it does not certify that a file is safe to run or free of malware.
Start with a known test case and confirm the displayed digest format. For a production file, record the expected value supplied by the publisher, calculate the digest from the actual bytes and compare. If the result differs, verify that you selected the same exact file version and that transfer did not alter it. Do not attempt to repair a mismatch by editing random data; download again from an authenticated source. Avoid sharing sensitive raw inputs solely to demonstrate the hash because knowing a hash can sometimes aid offline guessing when the input is low entropy.
Two users who hash an identical PDF must use the exact byte-for-byte file. Opening and resaving a PDF in an editor can change metadata or internal object layout while preserving its visual appearance, yielding a different SHA-256 digest. That is expected: hashing measures bytes, not rendered pages. To compare documents for visual equality, use a separate PDF rendering or content comparison method. To verify transfer integrity, compare the published checksum before modifying the downloaded file.
If you download a document and compute its SHA-256 digest twice, the same bytes should produce the same hexadecimal value even if the filename changes. Changing one character inside the file normally produces a very different digest. To verify a publisher's download, compare your result with a digest provided through a trusted independent channel; a hash printed on the same compromised page is weaker evidence. Do not confuse SHA-256 with encryption or a reversible conversion. A public digest can help detect accidental or malicious changes but does not identify who created the file unless it is linked to a trustworthy signature or source.
Not by itself. You still need a trusted reference digest or authentication channel.
If the hashed byte contents stay identical, changing only the filename does not alter the content digest.
Not by itself. You still need a trusted reference digest or authentication channel.
If the hashed byte contents stay identical, changing only the filename does not alter the content digest.
Yes. SHA-256 uses file bytes, not a filename stored outside those bytes.
No. A cryptographic digest is not a compressed copy or reversible representation of the original.