Trim Text
Remove leading or trailing whitespace from text or individual lines.
Hover over or focus a field for help. Press Escape to close.
How it works
Paste your content or load the example. Choose the available options, run the tool, then copy or download the result.
A practical example
Your text
hello
Result
hello
Frequently asked questions
Is my input sent to a server?
No. Your content is processed in this browser. It is never sent to the server or saved.
What should I know about Trim Text?
Select both edges, start, end or each line.