Skip to main content
KalkuNet

Remove Line Breaks Online — Fix Text Copied from PDFs

Join wrapped PDF copy-pastes into continuous lines or custom delimiters.

Runs in your browserDeveloper · Text Utilities, Regex & Log Parsers
Separator:
  • Made for text copied from PDFs or e-mails that breaks mid-sentence. A word split as lon- at a line end and ger on the next line is joined into longer, while hyphenated words in the middle of a line, such as well-known, are left alone.

When to use the Line Break Stripper & Paragraph Joiner

  • Paragraphs stay apart

    Broken lines are joined into one, but the blank line between paragraphs is kept. Turn that option off when the whole text must become one long line.

  • Hyphenated breaks repaired

    PDFs and books often split a word at the end of a line with a hyphen. When a line ends in a letter and a hyphen and the next one starts with a lower-case letter, the two are joined without the hyphen.

  • The separator you need

    Join with a space for prose, a comma for lists such as IP addresses, nothing for pieces of base64, or a separator of your own such as a semicolon.

  • Extra spaces dropped

    Spaces at both ends of every line are dropped before joining, so no double spaces appear. Several blank lines, or lines holding only spaces, count as one paragraph break.

Frequently asked questions

Is this the same as deleting every line break?

Almost, except that paragraphs and split words are handled. Turn both options off to join every line with the chosen separator; blank lines are dropped too.

Why are some lines not joined?

With paragraphs kept, lines separated by a blank line belong to different paragraphs.

Are Windows line breaks recognised?

Yes. CRLF from Windows, LF from Linux and macOS and the old CR are all recognised.

Can a list become one comma-separated line?

Yes. Choose the comma for lists such as IP addresses or host names, then paste the line into a configuration field or a spreadsheet cell that wants one line.

Is my text sent anywhere?

No, the text is processed in your browser.

Learn more