Line Break Remover

Paste the text and see it fixed beside the original. Lines are joined back into paragraphs, split words are mended, and lists stay lists.

Text copied from a PDF breaks at the end of every printed line and splits long words with a hyphen. Deleting every line break, which is all most tools do, glues the paragraphs together and leaves "infor- mation" behind. The PDF mode here joins the lines inside each paragraph, keeps the breaks between paragraphs, rejoins words that were hyphenated across a line end, and leaves bullet and numbered lists as they were. Six other modes cover the plain jobs: remove every break, keep paragraphs, turn lines into a comma or semicolon list, remove blank lines, or convert breaks to <br> or \n. The result updates as you type, next to the original, and the page tells you what kinds of line ending it found.

The PDF mode rejoins paragraphs and hyphenated words, and lists each word it joined for checking.

Before and after are shown side by side and update as you type.

  • PDF mode with hyphen repair
  • Seven named modes to choose from
  • Nothing uploaded or saved

How to remove line breaks

Paste, pick what should happen to the breaks, copy the result.

  1. 1

    Paste your text

    Paste into the Before box. The After box fills in at once. Try an example loads a short sample that shows what the PDF mode does.

  2. 2

    Choose what to do with the line breaks

    Fix PDF or hard-wrapped text is selected to begin with. The menu also offers Remove all line breaks, Keep paragraphs, Replace with a separator (comma, semicolon, space, pipe or your own), Remove blank lines only, Convert to <br> and Convert to \n. The line under the menu explains the chosen mode.

  3. 3

    Check the report, then copy or download

    Below the two boxes the page lists the words it joined across a line end and any unusual line endings or spaces it found. Copy puts the result on the clipboard and .txt downloads it.

A mode for PDF text

Lines inside a paragraph are joined with a space. A blank line still starts a new paragraph. Where the copy lost its blank lines, a line that stops well short of the usual width after a full stop, followed by a capital letter, is taken as a paragraph end.

Hyphenated words mended

"infor-" at a line end followed by "mation" becomes "information". The hyphen is kept when the next line starts with a capital or a digit, when the word starts with self- or a number word such as twenty-, or when the same compound is written with its hyphen elsewhere in the text.

Lists left alone

Lines that start with a bullet, a number or a letter marker stay on their own lines, and an item that wraps onto a second line is joined to itself. Untick Leave lists alone to join them too.

Every kind of line ending

Windows (CR LF), Unix (LF) and old Mac (CR) endings, Unicode line separators, non-breaking spaces and invisible soft hyphens are all handled, and the page says how many of each it found.

Example: a paragraph from a PDF

"The report covers infor-" / "mation from 2019 to" / "2024." on three lines becomes "The report covers information from 2019 to 2024." on one, and the page notes that it joined the word "information".

Example: a spreadsheet column into a list

Copy a column of names from a spreadsheet, choose Replace with a separator and Comma, and "Ada", "Grace", "Linus" on three lines become "Ada, Grace, Linus". An email with hard-wrapped lines is fixed the same way as PDF text.

Nowhere. The work is done in the page by your browser, no request carries the text, and nothing is kept after you close the tab.

What the PDF mode can and cannot know

It works from the shape of the text, without a dictionary. These are the cases to check by eye.

Hyphens

A real compound that happens to break at its hyphen, such as "well-" then "known", is joined to "wellknown" unless the text also contains "well-known" written out. Every joined word is listed under the result so you can spot these.

Untick Mend hyphenated words to keep every hyphen as it is.

Paragraphs

When the pasted text has blank lines, only those mark paragraphs. Guessing from line length is used only when there are none, and only for text of at least four lines whose usual line is 30 characters or longer.

A paragraph whose last line happens to fill the width cannot be told apart from the next one, and the two are joined.

Tables and columns

Text copied from a table or from a two-column page arrives in the order the PDF stored it. Removing line breaks does not put it back in reading order.

Page numbers, headers and footers that were copied along stay in the text.

Spaces

Tidy extra spaces collapses runs of spaces and tabs into one space and trims each line. Untick it to keep spacing exactly, for example in indented code.

Limits

Line Break has no fixed size limit. The result is rebuilt on every change, so text of several megabytes can make typing feel slow.

Line Break can be used as often as you like.

It works on text you paste. It does not open PDF files; for that, use Rune's PDF to Text and paste the result here.

Questions about Line Break

Why does text copied from a PDF have line breaks in the wrong places?

A PDF stores where each line sits on the page, not where paragraphs begin and end. Copying gives you one line break per printed line, and words the PDF hyphenated to fit the column stay split.

How do I remove line breaks but keep the paragraphs?

Use Fix PDF or hard-wrapped text, or Keep paragraphs. Both join the lines within a paragraph and leave one blank line between paragraphs. The first also mends hyphenated words and looks for paragraph ends when there are no blank lines.

Can I replace line breaks with commas?

Yes. Choose Replace with a separator and pick Comma, Semicolon, Space or Pipe, or type your own separator. Empty lines are skipped, so there are no doubled commas.

Will it break my bullet points or numbered list?

Not in the PDF and Keep paragraphs modes while Leave lists alone is ticked. Each item stays on its own line. Remove all line breaks joins everything, lists included, because that is what it is for.

Does it handle Windows and Mac line endings?

Yes. CR LF, LF and lone CR are all treated as a line break, and the page reports which it found. The result uses LF.

Is my text stored?

No. The text is not uploaded and is not written to browser storage, and reloading or closing the page clears both boxes.