Remove Line Breaks
Remove line breaks from text, replacing them with a space or nothing.
About Remove Line Breaks
Strip unwanted line breaks and newlines from text copied out of PDFs, emails or code. Choose to replace each break with a single space or remove them entirely to join everything into one block, and optionally collapse repeated blank lines first. Everything runs locally in your browser.
How to use Remove Line Breaks
- 1
Paste text that contains unwanted line breaks.
- 2
Choose whether to replace breaks with a space or nothing.
- 3
Optionally collapse blank lines, then copy the result.
Frequently Asked Questions
What's the difference between the two replace options?
Replacing with a space keeps words separated when you join lines together; removing entirely glues the characters directly, which is useful for wrapped URLs or codes.
Does it also remove blank lines?
If 'Collapse blank lines first' is enabled, runs of empty lines are reduced to a single break before the remaining breaks are processed.
More Text Tools
Alphabetizer / Line Sorter
Sort lines alphabetically A–Z or Z–A with case, duplicate and whitespace options.
Case Converter
Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case and more.
Character Counter
Count characters, words, sentences, paragraphs and reading time as you type.