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.

Mode:
Replace with:

How It Works

1

Paste your text

Paste or type the text you want to modify into the input area.

2

Choose a mode

Select remove, add, or collapse mode. Adjust options like delimiter, width, or paragraph preservation.

3

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