Trim Lines
Remove leading and trailing spaces and tabs from each line of text. Useful for cleaning code or copied data.
How to use?
Paste your text into the left field, tick the options you want and hit Remove Spaces. Whitespace gets cleaned out line by line, one at a time.
Related Tools
Remove Extra Spaces
Remove double spaces, tabs and leading/trailing spaces from each line. Clean text copied from PDFs or web pages.
Remove Line Breaks
Remove or replace line breaks from text. Replace with space, comma or any other character. Instant result.
Remove Empty Lines
Remove all blank lines from a text. Option to also remove lines with only spaces. Instant result.
Remove Duplicate Lines
Remove duplicate lines from text instantly. Option to ignore case and sort the result. Processed in the browser.
Tabs ↔ Spaces Converter
Convert tabs to spaces or spaces to tabs. Set the tab size. Processed in the browser.
Line Counter
Count the number of lines in a text. Shows total lines, non-empty lines and empty lines. Real-time result.