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.
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.
Add your text
Paste text, upload a .txt file, or try one of the samples.
Pick a mode
Smart fix works for most text. Choose another mode for lists, single lines or adding breaks.
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
- Press
Ctrl + Hto open Find and Replace. - In Find what, type
^pfor paragraph marks or^lfor manual line breaks. - In Replace with, type a space, then click Replace All.
XMicrosoft Excel
- Use the formula
=SUBSTITUTE(A1,CHAR(10)," "). - Or press
Ctrl + H, click in Find what and pressCtrl + J. - Type a space in Replace with and click Replace All.
GGoogle Docs
- Open Edit → Find and replace.
- Tick Match using regular expressions and search for
\n. - Replace with a space and click Replace all.
NNotepad++
- Press
Ctrl + Hand choose Extended search mode. - Find
\r\n(Windows files) or\n. - 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.