Remove Line Breaks
Remove line breaks from text online: join broken lines from a PDF or email into one paragraph, or into a comma-separated list. Optionally keep paragraph breaks.
Runs in your browser · Nothing uploaded · No sign-up
Something not working, or missing a feature? Send feedback
About the Remove Line Breaks
The Remove Line Breaks tool turns text that is broken into many short lines into a single line or paragraph. Use it to clean text copied from a PDF, an email or a terminal, or to turn a column of values into a comma-separated list. It handles Windows (\r\n), Unix (\n) and old Mac (\r) line endings.
Everything runs in your browser, so your input is never uploaded to a server.
How to use the Remove Line Breaks
- Paste your text into the input editor.
- Choose what replaces each line break: a space, nothing, or a comma.
- Turn on "Keep paragraph breaks" if blank lines should still separate paragraphs, then copy or download the result.
Examples
Input
Dear team, the release is ready. Thanks, Ada
Result
Dear team, the release is ready. Thanks, Ada
Each paragraph becomes one line, and the blank line between the paragraphs is kept.
Input
red green blue
Result
red, green, blue
Common mistakes
- Words glued together. Choosing "Nothing" joins the last word of one line to the first word of the next. Use Space for prose and Nothing only for data such as split tokens.
Works well with the Remove Line Breaks
- Remove Extra Spaces: collapse leftover double spaces.
- Word & Character Counter: count words after joining.
- Remove Duplicate Lines: dedupe the list before joining it.
Frequently asked questions
How do I remove line breaks from text copied from a PDF?
Paste it here with "Replace line breaks with" set to Space and "Keep paragraph breaks" on. The lines are joined into paragraphs and the blank lines between paragraphs are kept.
Does it remove carriage returns too?
Yes. \r\n, \n and \r are all treated as line breaks, so text from Windows, Linux and macOS is cleaned the same way.
Can I turn a list into a comma-separated line?
Choose Comma. Each line becomes one item, separated by ", ", and empty lines are skipped.
Is my text uploaded?
No. The text is processed in your browser and never sent to a server.
Related tools
Case Converter
Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case and more online. Rename variables and keys in one paste.
Remove Duplicate Lines
Remove duplicate lines from text online, keeping the first occurrence and the original order. Optionally ignore case, extra spaces and empty lines.
Sort Lines
Sort lines of text online alphabetically, naturally (item 2 before item 10), by number or by length, in ascending or descending order. Runs in your browser.
Remove Extra Spaces
Remove extra spaces from text online: collapse repeated spaces and tabs, trim every line and squeeze blank lines. Clean pasted text in one click.
Slug Generator
Turn any title into a clean URL slug online: lowercase, accents removed, symbols dropped, words joined with hyphens or underscores. One slug per line.
Text to Binary
Convert text to binary (8-bit UTF-8 bytes) and binary back to text online. Works with letters, numbers, emoji and any language; copy or download the result.