🎃 New: Halloween fonts are live. Try them now

Remove Line Breaks: Fix Broken Lines From PDFs and Emails

Remove line breaks instantly with this free online tool: paste, press once, done, and no account is needed. Fix sentences that break mid-line after copying from a PDF or email, keep real paragraphs while joining the rest, rejoin hyphen-split words, wrap long lines to a set width, convert Windows and Unix line endings, and turn a column of lines into a comma-separated list.

  • ↵ PDF line break fixer
  • keeps real paragraphs
  • ⇄ CRLF, LF and HTML break converter
  • 6 one-click formats
0 / 100,000 charactersSelect part of the text to change only that part. Press / to jump back.
Try

Your text without line breaks

Know someone who retypes text copied from PDFs?

Share this free line break remover.

Examples

Broken Lines From PDFs, Emails and Lists, Joined

Each card shows the text after its breaks were removed. Copy takes the joined version; Edit in tool puts the broken original back so you can try other options.

What Does a Line Break Remover Do?

Quick answer: A line break remover joins lines that were split by hard returns, turning text such as broken in the\nmiddle into broken in the middle. The smarter modes keep real paragraph gaps and list items, so only the unwanted breaks disappear.

A line break, also called a newline, hard return, or carriage return, is the invisible character created when you press Enter.

Unwanted breaks usually come from copying. PDFs store each printed line separately, emails wrap long lines at about 72 characters, and spreadsheets copy every cell as its own row. Paste that text into a website, a form, or a document, and it arrives chopped into short pieces. The toolbar above removes every break, keeps paragraphs, or repairs PDF text by spotting where a paragraph really ends. The Line Ending Converter switches between Windows and Unix endings, and the List Joiner turns a column into a comma-separated list.

  • 6 One-click line tools
  • 9 Line ending conversions
  • 4 List output styles
  • 100K Characters per paste
Remove Line Breaks showing example styles
Remove Line Breaks showing example styles

How Do You Remove Line Breaks From Text?

  1. Paste the text: Straight from a PDF, an email, a chat, or a spreadsheet column.
  2. Choose a mode: All breaks, paragraphs kept, or PDF repair.
  3. Pick the joiner: A space by default, or a comma, a bar, or your own text.
  4. Copy or download: Undo any step if the result is not what you wanted.

Which Removal Mode Should You Use?

ModeWhat it doesBest for
Remove all line breaksPuts the whole text on a single lineMeta descriptions, form fields, one-line captions
Keep paragraphsJoins lines but keeps blank-line gaps and list itemsArticles, essays, emails with several paragraphs
Fix PDF and email breaksAlso starts a new paragraph after a short line ending in a full stopText from PDFs, scanned documents and ebooks
One sentence per lineAdds a break after each sentenceSubtitles, translation, proofreading
Delete blank lines onlyKeeps every line but drops the empty onesCode, lists, poems
Wrap at widthAdds breaks so no line is longer than your limitPlain-text email, commit messages, terminals

Joined lines leave double spaces behind? Tidy them with the remove extra spaces tool.

Why Does Text Copied From a PDF Have Line Breaks?

A PDF is a picture of a printed page, not a flowing document. Each line on the page is stored as a separate piece of text with an exact position, so copying it gives you a return at the end of every printed line, plus hyphens wherever a word was split to fit. The PDF fixer here measures your typical line length: a line that ends with a full stop and is clearly shorter than the rest is treated as the end of a paragraph, and everything else is joined with a space. Words like every- followed by body are rejoined as everybody, while real hyphenated terms followed by a capital letter are left alone.

Text also carries odd quotes or hidden characters? Clean it with the plain text converter.

What Are CRLF and LF Line Endings?

EndingCharactersUsed by
LFLine feed, \nLinux, macOS, Git repositories, most web servers
CRLFCarriage return plus line feed, \r\nWindows, Notepad, email standards, many CSV files
CRCarriage return alone, \rMac OS 9 and older, some old exports
<br>An HTML tagWeb pages and HTML emails

Mixed endings cause odd problems: scripts that fail with a carriage return error, Git showing every line as changed, or CSV imports with an extra empty column. The converter counts each type and rewrites them all to the one you need.

How Do You Remove Line Breaks in Word, Excel and Notepad++?

AppMethod
Microsoft WordFind and Replace: search for ^p and replace with a space; use ^p^p to protect paragraphs first
Excel=SUBSTITUTE(A1,CHAR(10),” “) or Find and Replace with Ctrl + J in the Find box
Google Sheets=SUBSTITUTE(A1,CHAR(10),” “)
Google DocsFind and replace with regular expressions on, search \n
Notepad++Replace in Extended mode, find \r\n, replace with a space
VS CodeSelect the lines and press Ctrl + J (Join Lines)

Who Needs to Remove Line Breaks?

  • Students and researchers: quote passages from PDF papers without broken lines.
  • Bloggers and SEO writers: paste clean paragraphs into WordPress and meta fields.
  • Developers: fix CRLF endings and escape newlines for JSON strings.
  • Data analysts: turn a spreadsheet column into a comma list or SQL IN clause.
  • Social media managers: fit captions into one line or a character limit.
  • Translators: split long text into one sentence per line.

Line Break Terms

Hard return

A break typed with Enter that stays in place regardless of the window width.

Soft wrap

A visual wrap that moves when the window is resized; it adds no character.

Line feed (LF)

The \n character that ends a line on Unix systems.

Carriage return (CR)

The \r character, from typewriters returning to the left edge.

Paragraph break

Two returns in a row, which show as a blank line.

Hard wrap

Real breaks inserted at a fixed width, such as 72 characters in plain email.

Before joining a list, drop repeated entries with the remove duplicate lines tool.

What Else Can This Line Break Tool Do?

Join lines

With a space, nothing, or any text.

Keep paragraphs

Blank-line gaps survive.

PDF repair

Paragraph ends detected.

Wrap lines

Any width from 10 to 400.

Line endings

CRLF, LF, CR and HTML.

List joiner

CSV, SQL and JSON lists.

Got a column of names, emails, or IDs?

Join them into a comma list, a quoted SQL list, or a JSON array.

⋯ Open the List Joiner

Line Breaks Not Removed the Way You Expected?

ProblemCauseFix
All paragraphs mergedRemove all line breaks was usedUndo, then press Keep paragraphs
Headings joined to the next lineThe heading had no blank line after itUse Fix PDF and email breaks, which splits after short lines
Words stuck togetherNothing was chosen as the joinerSet Replace each break with to A space
A hyphenated name lost its hyphenIt was split across two linesUntick Rejoin words split by a hyphen
Bullet items mergedKeep bullet items was untickedTick it and run the mode again

Tips for Working With Line Breaks

Fix one paragraph first

Select a sample, run a mode on it, and check before converting a long document.

Use LF in Git

Set one ending for a project so diffs show only real changes.

Wrap emails at 72

Plain-text mail reads best when lines stay under 72 characters.

Quote SQL values

The List Joiner doubles single quotes inside items so queries stay valid.

Sort your lines A to Z first with the alphabetical order tool

Remove Line Breaks FAQ

How do I remove line breaks from text?

Paste the text and press Remove all line breaks, or Keep paragraphs to join lines while leaving paragraph gaps.

What is a line break?

The invisible character added when you press Enter, which pushes the following text onto a new line.

How do I remove line breaks but keep paragraphs?

Press Keep paragraphs. Lines inside each paragraph are joined, and blank-line gaps stay where they are.

How do I fix line breaks when copying from a PDF?

Paste the text and press Fix PDF and email breaks; it joins printed lines, rejoins split words, and detects paragraph ends.

Why does PDF text paste with broken lines?

PDFs store each printed line separately, so copying adds a return at the end of every line on the page.

Can I replace line breaks with commas?

Yes. Set Replace each break with to Comma and space, then press Remove all line breaks.

Can I replace line breaks with a custom character?

Yes. Choose Custom text and type any separator up to 20 characters, such as a dash or a pipe.

How do I remove blank lines but keep the others?

Press Delete blank lines only. Every line with content stays on its own line.

What happens to words split with a hyphen?

With the rejoin option ticked, a word broken as every- and body becomes everybody when the next line starts in lowercase.

Will bullet lists stay intact?

Yes. Lines starting with a dash, bullet, number, or letter followed by a full stop or bracket stay on their own lines.

How do I put each sentence on its own line?

Press One sentence per line. Every sentence ending (. ? or !) followed by a capital starts a new row.

How do I wrap text at 72 characters?

Set the wrap width to 72 and press Wrap at width. Long words are cut only if they exceed the limit.

Which systems use CRLF and which use LF?

CRLF uses two characters to end a line and is standard on Windows; LF uses one and is standard on Linux and macOS.

How do I change Windows line endings to Unix?

Open the Line Ending Converter, paste the text, and choose LF, then copy or download the result.

How do I replace line breaks with br tags?

In the Line Ending Converter, choose HTML br on one line, or br plus a new line to keep the source readable.

How do I escape newlines for JSON?

Choose Escaped \n for JSON or code. Each break becomes a backslash and n, and existing backslashes are doubled.

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

Paste the column into the List Joiner; the comma list appears at once, with optional quotes and brackets.

Can I make a SQL IN list from lines?

Yes. Choose single quotes and ( ) for SQL IN. Apostrophes inside items are doubled automatically.

Can I split a comma list back into lines?

Yes. Paste it into the List Joiner and press Split a comma list into lines.

Is this line break remover free?

Yes. In every mode, the converter and the list joiner are free, with no account or limit on use.

Is my text sent anywhere?

No. Joining, splitting, and ending conversion all stay in this browser tab, so no server ever receives a copy.

Remove Line Breaks

Broken → whole

One line, clean paragraphs, or a tidy list.: ↵ Remove Line Breaks 

Scroll to Top