Trim Text
Trim whitespace in different ways. Everything runs locally in your browser.
About this trim tool
Trim text in different ways: remove leading/trailing whitespace, trim each line, or remove all whitespace. It’s ideal for cleaning pasted lists, formatting code-like text, and preparing data for spreadsheets.
This tool runs in your browser. Your text stays on your device and is not uploaded by this tool.
FAQ
What’s the difference between “Trim start/end” and “Trim each line”?
“Trim start/end” removes whitespace only at the very beginning and end of the whole text. “Trim each line” cleans every line individually.
What does “Trim all” do?
It removes all whitespace characters, which is useful for compact IDs or cleanup, but it will also remove spaces between words.
Does trimming remove line breaks?
Not unless you use “Trim all”. The other options keep the structure of your lines.
Will it remove tabs?
Yes, trimming removes common whitespace characters such as spaces and tabs at the relevant positions.
Is my text stored anywhere?
No. Everything runs locally in your browser and nothing is uploaded by this tool.