Text tool

Remove Line Breaks

Paste text from a document and turn broken lines into one clean paragraph.

Runs in your browser. No upload.

Your text stays in this browser.

About this tool

Remove Line Breaks made simple.

Use “Join with spaces” for wrapped sentences copied from a PDF or email, so words stay separated. Choose “Remove breaks” only when you want adjacent lines joined without a separator. Both actions collapse repeated spaces and tabs and merge blank paragraphs.

Guide

Using Remove Line Breaks

Remove Line Breaks turns text that was chopped into many short lines into one smooth paragraph. This happens a lot when you copy from a PDF, an email or a narrow document. You paste the text, press a button, and copy the result. There are two buttons. One puts a space where each break was. The other joins lines with nothing between them. Both also squeeze repeated spaces and tabs into one space. Everything runs in your browser, so your text is not uploaded.

How to use it

  1. Copy the broken text from your PDF, email, spreadsheet or document.
  2. Paste it into the box called Text with line breaks.
  3. Press Join with spaces if the text is normal sentences. This keeps a space between the words that used to sit on different lines.
  4. Press Remove breaks only if you want lines glued together with no space, for example a long code or number split over lines.
  5. Read the box called Clean result. Press Copy result to take it with you.
  6. Press Clear to empty both boxes and start with new text.

Worked examples

Sentence broken over three lines

You enter
Button
Join with spaces
Text
The quick brown fox jumped over the lazy dog.
You get
Result
The quick brown fox jumped over the lazy dog.

Each line break became one space, so the words stay apart.

Run through the tool’s own code.

Same text with Remove breaks

You enter
Button
Remove breaks
Text
The quick brown fox jumped over the lazy dog.
You get
Result
The quick brown foxjumped overthe lazy dog.

No space is added, so words on each side of a break touch. This button is for text where nothing should separate the lines.

Run through the tool’s own code.

Windows line endings and an empty line

You enter
Button
Join with spaces
Text
Dear team, Please read the notes.
You get
Result
Dear team, Please read the notes.

The empty line between the two parts disappears too, and the two spaces it would leave are squeezed into one.

Run through the tool’s own code.

Messy spaces and tabs

You enter
Button
Join with spaces
Text
Name: Ada Role: Engineer
You get
Result
Name: Ada Role: Engineer

Extra spaces, tabs and the spaces at both ends are cleaned up, so the result starts and ends with a letter.

Run through the tool’s own code.

When it helps

  • Fix a paragraph copied from a PDF where every line ends in the middle of a sentence.
  • Tidy an email that was wrapped at a fixed width before you paste it into a form.
  • Prepare a long quote or abstract for a single text field that does not accept new lines.
  • Turn a list of words, one per line, into one line of words separated by spaces.
  • Clean notes copied from a chat or a slide so they read as normal prose.
  • Join a long link or code that a document split over several lines.

Limits to keep in mind

  • The result is always one block. The tool cannot keep some paragraph breaks and remove others.
  • It only removes ordinary line breaks (new line and carriage return). It does not look for other kinds of separators.
  • A word cut with a hyphen at the end of a line stays hyphenated. Join with spaces will leave a space after the hyphen.
  • Remove breaks adds no space, so it can glue two words together. Check the output when you use it on sentences.
  • Spaces and tabs inside a line are also squeezed to one, so you cannot use this tool to keep wide gaps or tab columns.

Tips

  • Start with Join with spaces. It is the safer choice for almost all text.
  • Read the first and last lines of the result before you copy it. Edge spaces are removed, so they should look neat.
  • If you need paragraphs afterward, add them back by hand at the places you want.
  • Keep your original text somewhere until you are happy with the result, because Clear empties both boxes.
  • For one word per line, Join with spaces gives a single line you can paste into a search box.

Common questions

About Remove Line Breaks.

How do I remove line breaks from copied text?

Paste the text into the first box. Press Join with spaces for normal writing, or Remove breaks to join lines with nothing between them. Then press Copy result and paste it where you need it.

How do I remove line breaks from text copied from a PDF?

Paste the text and choose “Join with spaces” to replace line breaks with spaces and make a readable paragraph. The tool also reduces repeated spaces and tabs to one space.

What is the difference between the two buttons?

Join with spaces puts a space in the spot of each break. Remove breaks puts nothing there, so the last word of one line touches the first word of the next. Both squeeze repeated spaces and tabs.

Does it remove empty lines too?

Yes. Blank lines count as line breaks, so they are removed as well. With Join with spaces, the extra spaces they leave behind are squeezed into a single space.

Will my text be uploaded or saved?

No. The page works in your browser and the text stays on your device. The page itself says that nothing is uploaded.

Can I keep my paragraphs and only fix the broken lines?

Not with this tool. It turns all line breaks, including paragraph gaps, into one block. If you need paragraphs, split the result by hand afterward.

Why did two words stick together?

You probably pressed Remove breaks. That button adds no space. Paste the original text again and use Join with spaces instead.

Does it fix words split by a hyphen at the end of a line?

No. The hyphen stays in the text. After joining you may see a word like a hyphen followed by a space, so fix those spots by hand if they matter.

Can I turn a list into one line?

Yes. Paste a list with one item per line and press Join with spaces. You get all items on one line, separated by single spaces.

Does it work with text from Word or a spreadsheet?

It works on the plain text you paste, whatever program it came from. Fonts, colors and tables do not carry over, only the words.

Does this work with text copied from PDFs?

Yes. It is useful for cleaning text copied from PDFs, Word documents, emails and spreadsheets.

What is the difference between joining with spaces and removing breaks?

“Join with spaces” puts a space where each line break was. “Remove breaks” joins the lines directly, which can be useful when a word or URL was split mid-line. Both options merge blank paragraph breaks.