TextToolbox Instant text & writing tools

Remove Line Breaks

Paste broken text — it's re-flowed as you type. Your text never leaves your device.

Mode
Lines in 0
Lines out 0

Fix text that arrives pre-chopped

The classic case is PDF text: copy a paragraph from a report and it pastes as a stack of short lines, broken wherever the page happened to wrap. Emails quoted too many times, terminal output, subtitles, and OCR results all have the same disease. Pasting that into a document means deleting line endings one by one — or letting this tool do all of them at once, live, in your browser.

Paragraph mode is the careful option: it joins the fragments of each paragraph with spaces while keeping blank lines as real paragraph breaks, so a two-paragraph excerpt stays two paragraphs. Single-line mode flattens everything — useful for spreadsheet cells, form fields, and anywhere only one line fits.

Worked example

Paste this 6-line fragment: "The quarterly report shows / steady growth across all / regions." then a blank line, then "Next year we plan to / expand into two new markets." (each "/" marks a line break). Paragraph mode returns 3 lines — two clean sentences separated by one blank line. Single-line mode returns 1 line containing both sentences. The counters read 6 lines in either way.

Frequently asked questions

Why does text copied from a PDF break in the middle of every sentence?

PDFs store text as lines positioned on a page, not as flowing paragraphs. When you copy, each visual line comes out as its own line ending — so a paragraph that wrapped five times on the page arrives as five short lines. This tool stitches those fragments back into flowing text.

What's the difference between the two modes?

'Join lines into paragraphs' only removes the breaks inside a paragraph: single line endings become spaces, but a blank line — the signal that a new paragraph starts — is kept as a paragraph break. 'Single line' is more aggressive: every run of whitespace, including blank lines and tabs, collapses to one space, leaving one continuous line.

Are my paragraph gaps preserved?

In paragraph mode, yes — that's the point of the mode. One or more blank lines between blocks of text are treated as a paragraph boundary and come out as exactly one blank line. In single-line mode nothing is preserved by design: you asked for one line, you get one line.

What happens to tabs and repeated spaces?

Tabs are treated as whitespace. In single-line mode they collapse into the single spaces between words. In paragraph mode, the 'collapse multiple spaces' option (on by default) squeezes runs of spaces and tabs down to one space; turn it off if your text uses deliberate spacing you want to keep.