REMOVE LINE BREAKS
Paste multiline text and join it into a single block. Nothing leaves your browser.
In short
Paste text and join every line into a single block, with options to join with a space or nothing and collapse extra spaces afterward. Runs entirely in your browser.
Lines joined: 6Before: 93 charsAfter: 92 chars
How to remove line breaks
- 1
Paste or type your text into the input box.
- 2
Choose whether lines should be joined with a space or with nothing, and whether to collapse extra spaces afterward.
- 3
Copy the joined result from the output box — it updates live as you type or change options.
Questions
- What counts as a line break?
- The tool splits on any combination of carriage return and line feed characters (\r\n, \r, or \n), so it handles text pasted from Windows, macOS, and Linux sources consistently.
- Should I join with a space or with nothing?
- Use a space when the lines are pieces of a sentence or paragraph that got wrapped (like text copied from a PDF), so words don't run together. Use nothing when the lines are already complete fragments that should sit right next to each other, such as parts of a code string or ID.
- What does collapsing extra spaces do?
- After joining, leftover indentation or double spaces from the original lines can leave gaps in the result. Turning on "Also collapse multiple spaces" reduces any run of spaces or tabs to a single space and trims the ends.
- Is my text uploaded anywhere?
- No. Everything runs locally in your browser with JavaScript — your text is never sent to a server.
Related tools
- Remove Extra SpacesCollapse repeated spaces and tabs into one, with options to trim lines and drop empty ones.
- Text CleanerTrim lines, collapse spaces, strip HTML tags, punctuation, or numbers in one pass.
- Add Prefix to LinesAdd a prefix, suffix, or running number to every line of text.
- Sort Text LinesSort lines alphabetically, numerically, or by length, with dedup and trim options.
- Remove Duplicate LinesStrip repeated lines from text, keeping the first or last occurrence.
- Text Diff CheckerCompare two blocks of text line by line and see what was added, removed, or unchanged.
- Email ExtractorPull every email address out of pasted text, deduplicated and one per line.
- URL ExtractorPull every URL out of pasted text, deduplicated and one per line.
Updated