Text to one line — remove line breaks
Join multi-line text into a single line and remove line breaks online. Replace newlines with a space, comma or any custom separator. Free, no signup.
Features
Seven separators to pick from: space, comma, semicolon, pipe, dash, none or your own
Trim spaces and tabs around each line
Drop empty lines (double line breaks between paragraphs)
Collapse double and triple spaces into a single one
Counters for input lines and removed characters
One-click copy to clipboard
Runs entirely in your browser — text never leaves your device
What this tool does
Convert multi-line text into one line by removing all line breaks (\n, \r\n) and joining lines together. Useful when you copy text from a PDF, email or chat and it comes out as dozens of short lines. The tool joins them with the separator you choose — space, comma or custom — and cleans up invisible mess: extra spaces, indentation and empty lines between paragraphs.
FAQ
How do I make text one line?
Paste your text into the top field and pick a separator (space by default) — the result appears in the bottom field instantly. Press "Copy" to grab it, or "Apply to source" to overwrite the input.
What can I replace line breaks with?
Choose from space, comma + space, semicolon, pipe, dash, nothing (glue lines together) or a custom string. For a CSV-friendly list, pick semicolon.
What does "Collapse double spaces" do?
After joining, you may end up with double spaces — for example, when the source already had trailing spaces. This option replaces any run of consecutive spaces or tabs with a single space.
Is my text sent anywhere?
No. Everything runs in your browser via JavaScript — no server calls. You can disconnect from the internet and it still works.
What about the opposite — splitting one line into many?
That's a different tool. Use find-and-replace in any text editor or a dedicated split-by-delimiter tool.