6 chars · 1 line
Waiting for input
Loading hash algorithms…
6 chars · 1 line
Waiting for input
Whitespace and hashes
A leading space is a real input character. VetaTool does not trim hash text, so one space before hello changes the SHA-256 digest. This tool is free to use. No account or payment is required.
Last updated
Text editors, form fields, templates, and copied terminal output can introduce a leading space. That space changes the byte sequence and therefore the digest.
The first value begins with one ordinary space.
␠hello
helloleading space: 1c9c535c80b3298829957b9fbfcd00bec337baca0866812efc749b7669613d43
plain: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824Common questions
No. Leading and trailing characters are included in the text being hashed.
Only when both producers and consumers of the digest agree that trimming is part of the canonicalization rule.
Debugging a specific Hash issue? Browse Hash troubleshooting.