Remove Line Breaks
Turn hard-wrapped text back into flowing paragraphs, or join a list into one line.
What should replace each line break?
Placed between each line. Leading and trailing spaces are kept exactly as typed.
Processed in your browser. No signup.
What this tool does
Text copied from a PDF, a terminal, an email or a plain-text file often arrives with a line break every seventy characters. Those breaks were part of the layout, not the writing, and they follow the text into whatever you paste it into. This tool takes them out.
The four modes
Keep paragraphs
The default, and usually the right one. Lines inside a paragraph are joined with a space, while blank lines are treated as genuine paragraph breaks and kept. Hard-wrapped prose comes out as real paragraphs.
Replace with a space
Every line break becomes a single space, producing one continuous block of text.
Remove completely
Lines are joined with nothing between them. Useful for a key, hash or token that was wrapped across several lines — and wrong for prose, which needs the space.
Replace with a separator
Every line break becomes whatever you type: a comma and a space, a pipe, a semicolon. This is how you turn a column of values into a comma-separated list.
Example
Three lines reading The harbour office, moves in March. Deliveries,should be redirected. become one sentence with Keep paragraphs, andThe harbour office, moves in March. Deliveries, should be redirected. with a comma separator.
A note on the paragraph heuristic
Keeping paragraphs relies on an assumption: that a single line break is soft wrapping and a blank line is a deliberate break. That assumption is right for most prose and wrong for anything where short lines are intentional — poetry, addresses, song lyrics, a list without bullets. In those cases the lines will be joined together. Read the result before using it.
Useful cases
- Making PDF text usable in a document or a message.
- Turning a column of values into a comma-separated list.
- Rejoining a token or key that wrapped in an email.
- Flattening text before pasting it into a field that only accepts one line.
Privacy
Everything happens in your browser. Your text is never uploaded.