Line Breaks
Paste text and instantly remove, add, or collapse line breaks. Fix text copied from PDFs, add word wrapping at a custom width, or collapse multiple blank lines. All processing happens in your browser — your text never leaves your device.
How It Works
Paste your text
Paste or type the text you want to modify into the input area.
Choose a mode
Select remove, add, or collapse mode. Adjust options like delimiter, width, or paragraph preservation.
Copy the result
The processed text appears instantly in the output. Copy it to your clipboard with one click.
Frequently Asked Questions
How does remove mode work?
Remove mode replaces line breaks with a delimiter (space by default). With 'Preserve paragraphs' enabled, only single line breaks are replaced — paragraph breaks (double newlines) are kept intact.
How does add mode work?
Add mode wraps text at a specified character width. Words are kept whole when possible. Words longer than the width are broken at the boundary.
What does collapse mode do?
Collapse mode reduces runs of multiple blank lines down to a single blank line, cleaning up excessive spacing in your text.
Is my text sent to a server?
No. All processing happens entirely in your browser using JavaScript. Your text never leaves your device.
Related Tools
Remove Duplicate Lines
NewRemove duplicate lines from text, keeping only unique lines.
Find & Replace
NewFind and replace text with support for regex, case sensitivity, and whole word matching.
Sort Lines
NewSort, shuffle, deduplicate, and reorder lines of text alphabetically, numerically, or by length.