Text Cleaner and Blank Line Remover
Remove or collapse blank lines and optionally trim edges, line endings, repeated horizontal space, BOM and common zero-width characters locally.
Data handling: common local tools process inputs in your browser; network queries, server execution and optional AI follow their separate data-use notes.
What is Text Cleaner and Blank Line Remover?
Text copied from web pages, PDFs and chats often contains blank lines, trailing spaces, a BOM or invisible zero-width characters. Every cleanup rule is explicit: remove all blank lines, collapse consecutive blank lines, trim document edges or line endings, collapse horizontal whitespace, and remove BOM or common zero-width characters. Removing blank lines is selected by default. Horizontal-space collapsing stays off because it can change source-code indentation. Original input and result remain separate for review.
How to Use
- Paste the text
- Select each cleanup rule you need and run it
- Compare the original and result, then copy or download
FAQ
- Are whitespace-only lines removed?
- Yes when remove-all-blank-lines is selected. Indented lines containing visible content remain unchanged.
- Can cleanup damage code indentation?
- The default does not. Only the explicit collapse-horizontal-whitespace option changes repeated spaces or tabs, so leave it off for source code.
- Which zero-width characters can be removed?
- The optional rule removes U+200B, U+200C, U+200D and U+2060. BOM U+FEFF has its own option; other Unicode characters are not rewritten.
Related Tools
Last updated 2026-09-15