Trim
trim leading and trailing whitespace
Source
Empty
Result
Example output:
hello
Empty
About this tool
Trim removes whitespace from the beginning and end of the whole input. Whitespace between characters remains unchanged.
Inputs, results and saved preferences stay in this browser.
When to use it
- Remove an accidental space around a copied identifier.
- Clean up leading or trailing newlines around a text snippet.