Home › Tools › Remove Line Breaks

Remove Line Breaks online

Fix broken text copied from PDFs, emails and websites. Join lines into clean paragraphs, turn a list into one line with commas, or add line breaks back — instantly, in your browser.

📄 Smart PDF fix🔗 Joins split words🔒 Runs in your browser✓ Free, no sign-up
Paragraph format:
InputPaste text with unwanted line breaks
0 lines · 0 characters
Output0 lines · 0 characters
Results update as you type.
0Lines in
0Lines out
0Line breaks removed
0Split words fixed
0Words

Which mode should I use?

Five modes for the five most common line-break problems.

📄

Smart fix — PDFs & e-books

Text copied from a PDF breaks at the end of every line. Smart fix joins those lines, re-joins split words and keeps real paragraphs, headings and bullet points.

Keep paragraphs — emails

Hard-wrapped emails and plain-text files break every 70–80 characters. This joins each paragraph into one line and keeps the blank lines between them.

➖

One line — forms & captions

Turn any text into a single line for a form field, meta description, spreadsheet cell or social media caption.

🏷️

List → one line — data & SEO

Turn a column of keywords, emails or IDs into a, b, c, a quoted list for SQL or code, or a line of #hashtags.

↵

Add line breaks — the reverse

Put each sentence on its own line, split a comma list into rows for Excel, or wrap long text at a fixed width.

🧹

Clean up spacing

Remove double spaces, tabs and empty lines that come along when you copy text from the web.

Example: text copied from a PDF

Smart fix joins the broken lines, repairs the split word and keeps the heading and the list.

Before — 7 lines

Getting Started
Copy the text from your PDF and paste
it into the box. The tool fixes the line
breaks and joins split words like infor-
mation automatically.
- Works with any PDF
- Free and private
→

After — 4 lines

Getting Started
Copy the text from your PDF and paste it into the box. The tool fixes the line breaks and joins split words like information automatically.
- Works with any PDF
- Free and private

How to remove line breaks

Three steps, no sign-up.

01

Add your text

Paste text, upload a .txt file, or try one of the samples.

02

Pick a mode

Smart fix works for most text. Choose another mode for lists, single lines or adding breaks.

03

Copy or download

The result updates as you type. Copy it, download it as .txt, or use it as new input.

Remove line breaks in Word, Excel, Google Docs & Notepad++

Prefer to do it inside the app? Here is how.

WMicrosoft Word

  1. Press Ctrl + H to open Find and Replace.
  2. In Find what, type ^p for paragraph marks or ^l for manual line breaks.
  3. In Replace with, type a space, then click Replace All.

XMicrosoft Excel

  1. Use the formula =SUBSTITUTE(A1,CHAR(10)," ").
  2. Or press Ctrl + H, click in Find what and press Ctrl + J.
  3. Type a space in Replace with and click Replace All.

GGoogle Docs

  1. Open Edit → Find and replace.
  2. Tick Match using regular expressions and search for \n.
  3. Replace with a space and click Replace all.

NNotepad++

  1. Press Ctrl + H and choose Extended search mode.
  2. Find \r\n (Windows files) or \n.
  3. Replace with a space and click Replace All.
🔒

Your text stays on your device

The tool runs entirely in your browser. Nothing you paste or upload is sent to our server or saved anywhere — close the page and it is gone.

Frequently asked questions

Everything about removing line breaks.

How do I remove line breaks from text?

Paste your text into the Input box. Line breaks are removed instantly and the clean text appears in the Output box. Click Copy result or Download to save it.

How do I fix text copied from a PDF?

Use Smart fix. It joins the lines inside each paragraph, re-joins words split with a hyphen at the end of a line, and keeps headings, paragraphs and bullet points on their own lines.

Can I remove line breaks but keep paragraphs?

Yes. Choose Keep paragraphs. Lines inside a paragraph are joined, and paragraphs separated by a blank line stay separate.

How do I turn a list into a comma-separated line?

Choose List → one line and pick a separator: comma, semicolon, pipe, space, tab, <br> or your own. You can also wrap each item in quotes for SQL and code, or turn the list into #hashtags.

Can I add line breaks instead?

Yes. Add line breaks puts each sentence on its own line, splits text at a separator such as a comma, or wraps lines at a set number of characters.

What does “Fix split words” do?

PDFs often split long words across two lines with a hyphen, like infor- / mation. This option joins them back into information. Real hyphenated words such as well-known in the middle of a line are not changed.

Can I get the result as HTML?

Yes. In Smart fix or Keep paragraphs, set Paragraph format to HTML <p> tags or <br> tags — handy for pasting into WordPress or any website editor. You can also use a blank line, a single new line or a tab indent between paragraphs.

Is my text private?

Yes. The tool runs entirely in your browser. Your text is never uploaded to or stored on our server.

More free text tools

Fast, free and private — just like this one.

Copied!