6 chars · 2 lines
Waiting for input
Loading hash algorithms…
6 chars · 2 lines
Waiting for input
Newlines and hashes
A final line-feed character is part of the input. This is a common reason command-line hash results differ when one command appends a newline and another does not. This tool is free to use. No account or payment is required.
Last updated
Shell commands such as echo commonly append a line ending. That extra character changes a digest even though the terminal display still looks like the same word.
The first input contains hello followed by LF.
hello\n
hellowith LF: 5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03
without LF: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824Common questions
Yes. LF and CRLF characters are part of the hashed byte sequence.
A typical echo command appends a newline, while printf can emit the text without one.
Debugging a specific Hash issue? Browse Hash troubleshooting.