N
NJHTools

Remove Line Breaks

Paste text copied from a PDF, an email or an AI chat to remove the line breaks in the middle of sentences. Keep paragraphs, join everything into one line, or put a comma or another separator where each break was, then copy or download the result. Your text never leaves your browser.

Mode
Options

Lines are joined with one space, including Korean (Hangul) text, which uses spaces between words. Chinese and Japanese characters are joined without a space.

7 lines · 210 characters

3 lines · 210 characters

Lines: 7 → 3Characters: 210 → 2104 line breaks removed

Your text is processed on your device and never uploaded.

How to remove line breaks from text

  1. Paste your text. Paste the text into the Input box, or click Paste. Text copied from PDFs, emails and chat apps often has a line break at the end of every line.
  2. Choose a mode. Keep paragraphs joins the lines inside each paragraph and keeps the blank lines between them. Remove all line breaks makes one line. Replace with puts a comma, pipe or any text you type where each break was.
  3. Set the options. Collapse multiple spaces and Trim each line are on by default. Turn on Keep list items to leave bullet and numbered lines alone, and Fix hyphenated word breaks for English text split across lines.
  4. Copy or download. The result updates as you type. Compare the line and character counts, then click Copy or Download .txt.

Features

  • Keep paragraphs: joins wrapped lines and keeps blank lines between paragraphs
  • Remove all line breaks to make one continuous line
  • Replace line breaks with a comma, semicolon, pipe or any custom text
  • Collapse multiple spaces and trim each line
  • Fix hyphenated word breaks such as exam-/ple in English text
  • Keep bullet and numbered list items on their own lines
  • Korean text joined with spaces; Chinese and Japanese joined without
  • Live result with before and after line and character counts
  • Copy, paste, download as .txt and clear buttons
  • Runs in your browser; your text is never uploaded

Frequently Asked Questions

How do I remove line breaks from text copied from a PDF?↓

Paste the text and keep the mode on Keep paragraphs. Each line break inside a paragraph is replaced with a space, and the blank lines between paragraphs stay, so the text reflows naturally. Click Copy and paste it into your document or email.

How do I keep paragraphs but remove line breaks within them?↓

That is what Keep paragraphs does: a single line break is joined with a space, and a blank line marks a new paragraph. If you want each paragraph on one line with no blank line between them, also tick Remove blank lines.

Can I replace line breaks with a comma?↓

Yes. Choose Replace with… and click the “, ” preset, or type any separator, such as “; ” or “ | ”. Type \n for a new line or \t for a tab. Tick Remove empty lines to avoid double commas from blank lines.

How are Korean, Chinese and Japanese lines joined?↓

Korean uses spaces between words, so a line ending in Hangul and a line starting with Hangul are joined with one space, the same as English. Chinese and Japanese are written without spaces, so two lines are joined directly when both sides are Chinese or Japanese characters. The hyphen fix only applies to English letters.

Is my text uploaded or saved?↓

No. The text is processed by JavaScript in your browser and is never sent to a server or stored. You can even use the tool offline once the page has loaded.

All Text & Dev Tools →

Last updated: