convert

Remove Line Breaks

Join broken lines into flowing text — perfect for text copied from PDFs and emails — while optionally keeping paragraphs.

Runs on your deviceBatch readyPaste textNew

Paste or drop

Paste text below, or drop a file instead.

0 chars · 0 lines
…or drop a file
Drag and drop, or choose files
TXTMDCSVTSVLOGJSONXML+10

Choose an output

Join broken lines into flowing text — perfect for text copied from PDFs and emails — while optionally keeping paragraphs.

Fine-tune

Optional — sensible defaults are already set.

Replace line breaks with

About Remove Line Breaks

Join lines that were broken in the middle of sentences back into flowing text. This is the usual problem with text copied from PDFs, old emails and terminal output, where every line ends with a hard break. With 'Keep paragraph breaks' on, blank lines between paragraphs are kept, so only the breaks inside each paragraph are removed.

When it helps

  • Pasting a PDF passage into a document or email without broken lines.
  • Unwrapping plain-text emails that were hard-wrapped at around 72 characters.
  • Turning a vertical list into a single comma-separated line.
  • Preparing text for translation or text-to-speech tools that treat each line break as a pause.

Tips

  • Paragraphs are detected by blank lines. If your source has no blank lines between paragraphs, everything will be joined into one block.
  • Words hyphenated across a line break are not rejoined, so 'exam-' and 'ple' become 'exam- ple'. Fix these with find and replace afterwards.
  • Leading and trailing spaces on each line are trimmed before joining, so you will not get double spaces.
  • Choose 'Comma + space' to turn a list into one line, or 'Nothing' for text such as long URLs or base64 that was split across lines.

Good to know

Quick answers about remove line breaks in your browser.

PDFs store text as positioned lines on a page, not as paragraphs. When you copy, each visual line usually ends with a line break, and this tool joins those lines back together.

Leave 'Keep paragraph breaks' on. Single line breaks are replaced with a space, and blank lines between paragraphs are kept as one empty line.

Yes. There is no sign-up, no watermark and no limit on how many files you process.

No. Files are read and processed locally in your browser, so they never leave your device.

Related tools