Skip to content
ToolsUnlocked

Remove Line Breaks

Remove line breaks from text copied from PDFs and emails, where every line ends with a break. This tool joins those lines back into flowing text. Keep paragraphs separate, or remove every line break, and choose whether lines are joined with a space, nothing, a comma or your own separator.

Runs in your browser Free, no sign-up
Remove Line Breaks

How to remove line breaks

  1. 1 Paste your text into the Your text box.
  2. 2 Choose Keep paragraphs or Remove all line breaks.
  3. 3 Choose what replaces each line break, such as a space or a comma.
  4. 4 Copy or download the joined text.

Why PDF text has a break on every line

A PDF stores text as positioned lines, not as paragraphs. When you copy from it, each line ends with a hard line break, so the text no longer flows when pasted into an email or a document.

  • Keep paragraphs joins lines inside each paragraph but leaves the blank line between paragraphs, which is what you want for articles and letters.
  • Remove all turns everything into one block, useful for a single form field.
  • Replace with a comma turns a column of names or emails into one comma-separated line.

Words split with a hyphen at the end of a line may need a quick check. Afterwards, Remove Extra Spaces tidies any double spaces left behind.

Features

Keeps paragraphs

Blank lines between paragraphs are kept, single breaks are removed.

Choice of separator

Space, nothing, comma or any custom text.

Tidy result

Extra spaces created by joining are removed.

Instant

Works as you paste.

When to use it

PDF copy and paste

Fix text copied from PDFs into Word or emails. Tidy leftover double spaces with Remove Extra Spaces.

Lists to one line

Turn a column of values into a comma-separated list. Clean quotes and HTML with the Text Cleaner.

Social posts

Join lines before posting text. Count words of the joined text with the Word Counter.

Data entry

Paste multi-line addresses into single fields. Swap specific words with Find and Replace.

Related Text tasks

Frequently asked questions

Why does text from a PDF have line breaks?

PDFs store text line by line as it appears on the page, so copying keeps a break at the end of each line even in the middle of sentences.

How do I keep paragraphs?

Choose Keep paragraphs. Single line breaks are removed, and blank lines between paragraphs are kept.

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

Choose Remove all line breaks and set Replace with to comma.

Will hyphenated words be fixed?

Words split with a hyphen at the end of a line keep their hyphen. Use Find and Replace to remove it if needed.

How do I remove line breaks in Excel or Google Sheets text?

Paste the cells here, choose to replace breaks with a space or a comma, and paste the joined text back. Breaks inside cells are joined the same way.

What is the difference between a line break and a paragraph break?

A line break ends one line; a paragraph break is a blank line between two blocks of text. Keep paragraphs mode removes only the single line breaks.

Can I replace line breaks with my own text?

Yes. Choose custom and type any separator, such as a semicolon, a pipe or a word.

Will it remove line breaks from a whole document?

Yes. Paste as much text as you like; every line break is handled in one go.

How this tool works. These text tools run entirely in your browser with plain JavaScript, so the text you paste never leaves your device and results update as you type. Each tool is tested with real text such as copied PDFs, emails, code, lists, emojis and non-English scripts before it goes live.

HF

Built and reviewed by , founder and lead developer
Last updated · How we check our tools · Report a problem