How to use
Overview
Copied text from Word, PDF, the web, or AI often has extra blank lines, long runs of empties, or padding spaces at line edges. This tool processes everything locally: Input on the left, Output on the right, updated in real time.
Beyond merge / remove-all / keep, you can cap consecutive blank lines, detect pseudo blanks, and trim whitespace—useful for writing, SEO lists, scripts, and pre-CSV cleanup.
Quick start
- Paste or type; optional Sample
- Choose a blank-line mode, or enable Keep at most … blank lines in a row (see table)
- Toggle pseudo-blank and whitespace options as needed
- Copy or Download TXT from output
- Clear text for content only; Reset for defaults + clear
Blank-line modes
| Setting | Effect | Typical use |
|---|---|---|
| Merge consecutive blanks (default) | Each run → 1 blank line | AI drafts, general cleanup |
| Remove all blank lines | No blank lines anywhere | Tight lists, some code/CSV |
| Keep blank lines | No blank-line deletion | Whitespace-only cleanup |
| Keep at most 0 | Each run → 0 lines | Strip paragraph gaps by run |
| Keep at most 1 | Each run → ≤1 line | Same idea as merge, explicit |
| Keep at most 2+ | Each run → ≤N lines | Double spacing between sections |
When Keep at most … is enabled, the merge/remove/keep control above is inactive until you turn it off.
Whitespace options
- Treat space/tab-only lines as blank
- Trim each line (both ends; disables separate leading/trailing toggles)
- Remove leading / Remove trailing spaces
- Convert tabs to spaces
Common scenarios
- AI / ChatGPT output: merge + pseudo blanks
- Word / PDF paste: remove all + trim each line
- Blog / meta lists: keep at most 1 blank line per run
- Long-form sections: keep at most 2
- Before CSV: drop blanks and trim cell padding