How to use Remove Line Breaks
- Paste the text with the extra line breaks into the input box.
- Choose a mode - replace line breaks with spaces, remove them completely, or keep paragraph breaks.
- Read the cleaned result, which shows the text as one block (or as paragraphs, in keep mode).
- Click Copy and paste the text where you need it.
Features
- Replace every line break with a single space, the usual fix for text copied from a PDF
- Remove line breaks completely, useful for joining codes, IDs or URLs split across lines
- Keep paragraph breaks so blank-line separated paragraphs stay separate
- Handles Windows, Mac and Linux line endings
- One-click copy of the cleaned text
- Handles long documents, up to about 5 million characters
- Works on any language, including accented text
- No daily limit
Supported formats and limits
- Maximum input: 5,000,000 characters
Examples
| Input | Result |
|---|---|
| Line one / line two / line three (each on its own line) | Replace with spaces: Line one line two line three |
| abc / def / ghi (three lines) | Remove completely: abcdefghi — Nothing is inserted, so the pieces are joined directly. |
| First paragraph, line A / line B, blank line, second paragraph, line C / line D | Keep paragraphs: two paragraphs, each on a single line |
Limitations
- Keep-paragraphs mode treats any blank line as a paragraph break, so text with irregular spacing may need a quick check afterwards.
- Removing breaks completely can glue words together. Use the space mode when the lines are ordinary sentences.
- Hyphenated words split across two lines stay split, because the tool does not know whether the hyphen is meant to be kept.
- Text is limited to about 5 million characters.
Learn more
A line break is an invisible character that tells text to start a new line. Operating systems store it differently: Windows uses two characters (carriage return plus line feed), while Linux and modern macOS use a single line feed. This tool recognizes all of them, which is why it works on text from any source.
Hard line breaks appear for practical reasons. PDFs and scanned documents keep every visual line separate, emails are often wrapped at about 72 characters, and subtitle or poetry files break lines on purpose. When you paste such text into a form, a spreadsheet cell or a content system, the breaks create ragged text or cut sentences in half.
Pick the mode by what the lines represent. If each line is part of a sentence, replace the breaks with spaces. If the text is a value that was wrapped, such as a long code or key, remove the breaks completely. If the text has real paragraphs separated by blank lines, keep paragraph breaks so the structure survives while the wrapped lines are merged.
Frequently asked questions
How do I remove line breaks from text?
Paste the text, choose "replace with spaces" and copy the result. The lines are joined into a single block of text.
How do I remove line breaks but keep paragraphs?
Choose the keep-paragraph-breaks mode. Single line breaks inside a paragraph are joined, while blank lines between paragraphs stay.
Can I remove line breaks in Word or Excel with this?
Yes. Copy the text from Word or the cell from Excel, clean it here and paste it back. It avoids search-and-replace tricks with special characters.
Why does text copied from a PDF have so many line breaks?
PDFs store each line separately, so copying keeps a break at the end of every line. Replacing the breaks with spaces restores normal flow.
What is the difference between replacing with spaces and removing completely?
Replacing inserts a space so words stay apart. Removing deletes the break and inserts nothing, which joins the text directly.
Is my text sent to a server?
No, the cleaning happens in your browser, so your text stays on your device.
Sources
Last reviewed: September 29, 2026