How to use it
- Paste the text, or open a .txt, .md, .html, .csv or .log file.
- Keep Remove line breaks ticked (preselected here) to get one line.
- To keep paragraphs instead, untick it and tick Join wrapped lines.
- Copy the cleaned text or download it as a .txt file.
Worked example
"Dear team," / "the report is" / "attached.", a blank line and "Thanks" become "Dear team, the report is attached. Thanks" on one line, with 3 changes counted.
Formats and limits
| Input | Text, TXT, Markdown, HTML, CSV, LOG |
|---|---|
| Output | Text |
| Engine | Composable cleaning passes with a change count per pass |
Limitations
- Paragraph breaks are removed too; use Join wrapped lines to keep them.
- A word split by a hyphen at a line end keeps the hyphen and gets a space after it.
Questions
Can I keep my paragraphs?
Yes. Untick Remove line breaks and tick Join wrapped lines instead. Lines inside a paragraph are joined, while blank lines between paragraphs and list items are kept.
Do I get double spaces where lines met?
No. A line break and any spaces or tabs around it become one space, and Collapse spaces and Trim lines run first.
What does the change count mean?
Remove line breaks counts each run of line breaks it replaced. Three lines and a blank line give 3 changes, because the blank line and the break before it count as one run.
Is my text uploaded?
No. The text is processed in your browser and nothing is uploaded. A draft is kept in this browser so it survives a reload.
Privacy
Runs on your device. Files and text are processed in this browser tab and are not uploaded.
This page opens the Text cleaner ready for this task. See the privacy policy for how toolsdocks handles data.