6 chars · 1 line
Waiting for input
Loading hash algorithms…
6 chars · 1 line
Waiting for input
Whitespace and hashes
Yes. A space after the visible word is still part of the input. Hash output changes even when the text appears identical in a UI that hides trailing whitespace. This tool is free to use. No account or payment is required.
Last updated
A trailing space contributes one byte in UTF-8. Hash functions do not distinguish visible content from formatting; they process the bytes they receive.
The first value ends with one ordinary space.
hello␠
hellotrailing space: 5e3235a8346e5a4585f8c58562f5052b8fe26a3bb122e1e96c76784964dfc461
plain: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824Common questions
No. SHA-256 receives bytes; a trailing space changes the byte sequence.
Use an editor that renders whitespace or compare the source string length before hashing.
Debugging a specific Hash issue? Browse Hash troubleshooting.