AnyFormat

00 Utility

Remove Line Breaks

Unwraps text copied out of a PDF without merging the paragraphs.

01Input
02Output
03Options 2

Blank lines are treated as paragraph boundaries and preserved.

  • No upload The conversion runs in this tab. Your file never travels — not to us, and not to the advertising.
  • No sign-up, no email, no daily cap There is no account system to sign up to.
  • No size limit we invented Only your device's memory — about ~2 GB on a desktop browser, ~400 MB on a phone.
  • Turn your Wi-Fi off and convert anyway The conversion needs nothing but this page. Ads will not load without a connection; your file will still convert. That is the whole claim, and it takes five seconds to check.

Joins wrapped lines back into continuous text. The usual cause is copying out of a PDF, where every line ends at the edge of the column rather than at the end of a sentence — and where a naive "replace all newlines" also destroys the paragraph structure.

Why paragraphs are handled separately

Replacing every newline with a space turns a document into one enormous paragraph. Here, a blank line is treated as a paragraph boundary and preserved, while single line breaks within a paragraph are joined. That single distinction is what makes the output readable instead of merely unwrapped.

Turn the option off if you genuinely want everything on one line — building a single-line CSV field, or a value for a config file.

Hyphenation from PDFs

PDFs sometimes break a word across lines with a hyphen. Joining with a space leaves hyphen- ation. There is no reliable automatic fix, because a genuine hyphen in "well-known" is indistinguishable from a typesetting one without a dictionary. Scan the result if the source was a typeset document — it is usually a handful of words.

Line endings

Windows CRLF, Unix LF and old Mac CR are all recognised. Text pasted from an email or a Windows text editor works without any preparation.

Other names for this

Also searched as “remove newlines”, “join lines”, “unwrap text”, “delete line breaks”.

Questions

My paragraphs got merged into one.
The source separated them with a single line break, not a blank line, so there was no boundary to detect. Insert blank lines first, or accept the single block.
Can I use this to build a comma-separated list?
Yes — set “Join lines with” to a comma and turn off “Keep paragraph breaks”.
Does my text leave the browser?
No. Everything runs as JavaScript in this tab — there is no server involved and no request is made. Open the Network panel and watch, or turn your Wi-Fi off and keep using the tool.