Trim Whitespace
Remove spaces and tabs from the start and end of every line.
Runs on this device · 0 uploadsLoading tool…
How to use
- Paste text.
- Pick both ends, start or end.
- Copy.
Questions
Are my files uploaded?
No. Trim Whitespace runs entirely in your browser. Your files are read into this tab's memory and the result is created on your device. Nothing is sent to a server.
Is it free?
Yes, free with no sign-up, no limits and no watermark.
Does it work offline?
Yes. After this page has loaded once, it keeps working without an internet connection.
Related tools
AaRemove Duplicate LinesKeep the first of every repeated line. Optional trimming and case-insensitive match.AaSort LinesSort lines A–Z, Z–A, naturally (2 before 10) or by length.AaFind & ReplaceFind and replace in any text, with whole-word and regex options.AaText CleanerFix spacing, line breaks, quotes and invisible characters.