Whitespace & Line Ending Cleaner
Trim lines, collapse extra spaces, remove blank lines, normalize line endings (LF/CRLF), and convert tabs to spaces. All in your browser.
Runs 100% in your browser — nothing is uploaded.
Result
69 → 58 chars (84%)
Frequently asked
LF vs CRLF — which do I want?
LF for Unix, macOS, and modern editors. CRLF for legacy Windows tools. Modern codebases target LF and let Git handle line ending conversion.
Does "collapse spaces" affect indentation?
Yes — if you turn it on it collapses ANY run of spaces to one, which will flatten indentation. Leave it off for code.
What is "trim each line" for?
Removes leading and trailing spaces/tabs from every line. The most common cleanup for pasted text.
Related tools
- Line SorterSort lines alphabetically, numerically, or by length. Remove duplicates, trim wh
- Text DiffCompare two blocks of text line by line and see exactly what changed. Runs entir
- Case ConverterConvert text between 12 cases: lower, UPPER, Title, Sentence, camelCase, PascalC
- Lorem Ipsum GeneratorGenerate placeholder text in classic Lorem Ipsum or six themed flavors: hipster,
- NATO Phonetic AlphabetConvert any text into the NATO phonetic alphabet — Alfa, Bravo, Charlie, Delta,
- Palindrome CheckerCheck if a word, phrase, or sentence is a palindrome. Optionally ignore case, sp