Skip to main content

Text

Remove Line Breaks

Collapse hard line breaks from text — useful for pasting wrapped emails or PDF text back into normal paragraphs.

Runs in your browserPrivate by design
TextRemove line breaks

Press ⌘ Enter to run

21 words · 3 lines

How this tool handles files

Processing
In your browser, on-device
Storage
Nothing stored
Output
A file you download
Your responsibility
Review before official use
  • Runs in your browser. Your file is processed on your own device and, on this site, is not uploaded to our servers.
  • Nothing is stored. Your file and its output are gone the moment you close or reload the page.
  • Review sensitive files (bank, ID, medical) and check the output before sharing it.

Every tool on FormatOS runs in your browser. Read our Privacy Policy and File Handling Policy.

Common uses

  • Reflow text copied from a PDF
  • Clean up wrapped email content

Limitations

  • Does not re-paragraph based on punctuation

When collapsing line breaks actually helps

Remove Line Breaks is built for one specific problem: text that arrived with hard returns baked into the middle of sentences. The most common source is copy-pasted PDF text, where every visual line ends in a real newline, so a paragraph pasted into an email or document arrives as a column of short, broken lines. Pasting that text here and running the tool rejoins it into continuous prose you can drop back into a document, email, or CMS field.

It also suits wrapped email content (quoted replies that inherited a fixed line width), text exported from terminals or log viewers, and snippets lifted from code comments or fixed-width sources. For e-reader and ebook prep, it is useful when reflowing pasted chapter text that was hard-wrapped for print, so the words flow naturally at any screen width instead of breaking mid-sentence.

It is a cleanup step, not a writing tool. Reach for it when the line breaks are an artifact of how the text was copied, not a meaningful part of the content. If the breaks are deliberate, such as lines of a poem, address, or code, this is the wrong tool.

Paste, run, then copy or download

The flow is paste-based, not file-based. You paste or type into the input box and either click Run or press Cmd/Ctrl+Enter. The tool applies a single transformation: every line break, along with any spaces or tabs immediately around it, becomes one space, and leading and trailing whitespace is trimmed off the whole result. The output appears in a read-only panel showing its line and character count.

From there you can Copy the result to your clipboard or Download it as a plain-text file named formatos-remove-line-breaks.txt. Reset restores the sample text, and Clear empties the output. Input and output are plain text only; there is no drag-and-drop, no .docx or .pdf upload, and formatting such as bold, headings, or links is not part of the picture since plain text carries none.

Everything runs in your browser. The text you paste is processed locally in the page and, on this site, is not uploaded to a server; nothing persists once you close the tab. What the tool deliberately does not do is re-paragraph by punctuation or sentence structure, fix hyphenation from justified text, or guess where paragraphs should begin.

Where it trips people up

The biggest surprise is that paragraph breaks disappear too. Because the tool collapses every newline uniformly, a blank line between two paragraphs is also turned into a single space, so a multi-paragraph block comes out as one long run-on paragraph. If you need to keep those gaps, the reliable workaround is to process one paragraph at a time, or to reinsert the paragraph breaks in the output afterward.

Two more pitfalls follow from how PDF copy behaves. Words split across a line by a hyphen (for example, inter- / national) will join with the hyphen and space intact rather than merging into one word, so you may need a find-and-replace pass to clean those up. And because the rule keys on actual newline characters, soft-wrapping that your editor adds purely for display is not affected; only real line breaks in the pasted text are removed.

Finally, watch the spacing around the joins. The tool inserts exactly one space per break, which is correct for most prose, but if your source had irregular indentation or trailing spaces, the single-space result may still need a quick scan.

Checking the result before you use it

Read the output panel rather than trusting it blindly. Confirm that sentences now flow continuously, that no two words have been jammed together without a space, and that any hyphenated line-break splits read correctly. Scan specifically for places where paragraph breaks vanished, since those run-on joins are the most likely thing you will want to fix by hand. The line and character counts under the output give a quick sanity check that the collapse did what you expected.

Spot-check numbers, list items, and addresses, which often rely on line breaks for meaning and can become ambiguous once flattened into a single line. If anything reads oddly, edit the input and run again; the operation is fast and repeatable.

For any text headed into official, financial, or legal use, treat this as a formatting convenience and verify the wording yourself against the original source. Collapsing line breaks can subtly change how figures, clauses, or itemized terms read, so confirm meaning is intact before the text is signed off or filed.

Frequently asked questions

It collapses hard line breaks into spaces, turning wrapped lines back into flowing paragraphs — ideal for text copied out of a PDF or an email.

It removes line breaks uniformly. If you need to keep paragraph gaps, paste one paragraph at a time, or tidy the result afterward.

No. Everything happens in your browser and nothing is stored.

Related text tools

Tool last reviewed: June 30, 2026 · Report a problem