Remove Line Breaks
Drop text that wraps across many lines into the box and read the cleaned version below. Consecutive newlines—whether Unix or Windows style—become a single space so paragraphs flatten for forms, CMS fields, or chat boxes.
Updated 2026-08-03 · text
line one line two
About this tool
The tool watches the Text area and replaces each run of \r?\n with one space. There is no separate button; the result updates as you type or paste, keeping the original input editable above the joined output.
How to use
- Open the text field: Load the page so the multiline Text box appears with the sample two-line text.
- Paste your content: Replace the sample with the multiline string you want to flatten.
- Copy the joined result: Select the result area where newlines have become spaces.
- Adjust if needed: Edit the input again; the joined preview updates immediately.
Common use cases
- Flatten PDF or OCR text that arrived with a break after every line.
- Prepare a single-line string for JSON, CSV cells, or URL query values.
- Clean email signatures or chat paste before publishing as a paragraph.
Tips
- Multiple blank lines collapse to one space each run—you may still want a manual trim afterward.
- Only line breaks are removed; tabs and other spaces inside a line stay as they are.
FAQ
Are Windows and Unix newlines both handled?
Yes. The replace pattern matches optional \r before \n and collapses runs of breaks.
Do I need to click a button?
No. Output updates live whenever the Text field changes.
Are spaces inside a line removed?
No. Only line-break sequences are turned into a single space.
Does my text leave the device?
Replacement runs in the browser; you do not need an account.