Remove Line Breaks From Text — Free Online
Text copied from a PDF, email client or terminal often arrives broken into short hard-wrapped lines. This tool joins those lines into a single flowing paragraph and tidies the double spaces that get left behind. There is also a mode that only removes extra spaces.
How to use the remove line breaks from text
- Paste the hard-wrapped text into the first box.
- Line breaks become single spaces and repeated spaces are collapsed.
- Copy the joined paragraph, or switch to Remove extra spaces to keep your line structure.
Where hard line breaks come from
Text that arrives broken at every 70-odd characters has usually been through something that treated the page as fixed-width. Copying out of a PDF is the biggest source, because a PDF stores positioned lines rather than flowing paragraphs, so the copy carries a break wherever the line ended visually. Plain-text emails are the second: older clients hard-wrapped outgoing mail, and those breaks survive every forward and reply.
Code editors with a word-wrap column, terminal output, subtitle files and text pasted out of a spreadsheet cell produce the same artefact. In every case the breaks are a leftover from how the text was displayed, not part of what it means, which is why removing them restores the paragraph the author actually wrote.
Line breaks you should keep
Not every newline is noise. A blank line between paragraphs is real structure, and so are the breaks in an address block, a poem, a list of items, song lyrics, a code snippet or a CSV row. Flattening those destroys meaning rather than restoring it, so paste one section at a time when a document mixes wrapped prose with structured blocks.
If your text is fine except for the spacing left behind — double spaces after full stops, a run of spaces where a tab used to be, trailing whitespace at the end of lines — switch to Remove extra spaces instead. That collapses runs of whitespace while leaving your line structure exactly as it is, which is the safer option when you are not sure.
Chaining with case converters
PDF paste often needs two steps: unwrap the hard breaks, then fix the capitals. Run Remove line breaks first to get a flowing paragraph, copy the result into Sentence case or Lowercase depending on whether you want readable prose or normalised data. Doing case before unwrap leaves mid-sentence breaks that sentence case cannot always repair cleanly.
Legal and academic quotes copied from scanned PDFs frequently include hyphenation at line ends — “democra- cy” split across two lines. This tool does not rejoin hyphenated words automatically; skim the output for broken words and fix them before publishing. That one manual pass is still faster than retyping the whole excerpt. For ALL CAPS paste from the same PDF, run Sentence case on the joined text next.
Frequently asked questions
Paste hard-wrapped text (often from a PDF) into the box. Line breaks become spaces and extra spaces collapse into one paragraph.
PDFs store visual lines separately. Copying inserts a break at every printed line — this unwrap text tool joins them.
The default joins everything into one block. Use “Remove extra spaces” if you want to tidy spacing but keep your line structure.
Yes — CR, LF and CRLF are normalised before joining lines into a paragraph.
Not automatically — a hyphen may be real. Skim PDF copies for broken words after you remove line breaks.
Yes. Text stays in your browser — useful for contracts and drafts copied from PDFs.
Paste the whole selection at once. Removing carriage returns / line breaks is instant locally.
Line-break mode joins lines into flowing text. Extra-spaces mode cleans double spaces and blank lines without fully unwrapping.
Yes — those sources often insert hard wraps. Paste here to join lines into a clean paragraph.
Yes — no signup, no upload, no character paywall.
Related tools
- Sentence Case ConverterRescue text that arrived in ALL CAPS or with random capitalisation.
- Title Case ConverterPaste a heading and get properly capitalised title case back as you type.
- Snake Case ConverterPaste a phrase, column header or variable name and get snake_case back instantly — lower case words joined by underscores, the naming style Python, Ruby and PostgreSQL expect.
- Camel Case ConverterTurn a phrase, database column or file slug into camelCase — first word lower case, each following word capitalised, no spaces.
Runs entirely in your browser — your files and text never leave this device. Last reviewed August 17, 2026.