Text toolsRemove line breaks

Remove line breaks

Replace line breaks with spaces, commas, semicolons, or your own separator while optionally preserving paragraphs.

Ready to clean
Your text never leaves this device
0 characters · 0 words
0 characters · 0 words
A focused cleanup

How to use remove line breaks

Line breaks are the right structure in one place and clutter in the next. This tool replaces them with the separator you choose — a space to rebuild prose, a comma to build inline lists — while optionally protecting the blank lines that mark real paragraphs.

  1. 1
    Paste the text with unwanted breaks

    Anything line-structured works: hard-wrapped prose from an email, one-per-line values from a spreadsheet column, an address block. The tool only ever touches the break characters, so there is nothing to prepare.

  2. 2
    Pick the separator and the paragraph rule

    Join with sets what replaces each break: a space rebuilds sentences, a comma or semicolon turns rows into an inline list, and Nothing fuses fragments that were split mid-word. Keep paragraph breaks leaves blank-line boundaries alone, so joining happens within paragraphs rather than across them.

  3. 3
    Clean and check the seams

    Select Clean text and skim the places where lines used to meet. If everything collapsed into one giant block, switch Keep paragraph breaks on and clean again; if words fused, the separator was set to Nothing when it should have been Space.

When this tool is useful

Joining address data
Repairing email copy
Converting rows into inline lists

Choosing the right separator

A space is the choice for prose that was hard-wrapped: emails from older clients, text files wrapped at 72 columns, PDF extracts that are already de-hyphenated. Whitespace around each break is absorbed into the join, so a line ending in a trailing space does not produce a double space in the result.

A comma or semicolon turns a column into a row: paste names or values one per line and get "red, green, blue", ready for a sentence, a function call, or a form field. Nothing is for the rarer case of text split mid-word by a narrow layout, where inserting any character would corrupt the words.

With Keep paragraph breaks on, a blank line is treated as deliberate: joining happens inside each paragraph and the blank line survives. That switch is the difference between repairing an email’s wrapping and flattening the whole message onto one line — both are legitimate jobs, which is why it is an option rather than a fixed rule.

Good to know

Remove line breaks questions

Leave Keep paragraph breaks on. Breaks inside a paragraph are replaced with your separator, and the blank lines between paragraphs stay where they are.