Remove Line Breaks From Text
Paste text to strip out line breaks and turn it into a single clean line. Choose what replaces each break and whether to tidy extra spaces.
How to remove line breaks
- Paste your text into the box.
- Pick what replaces each line break, usually a space or nothing.
- Copy the cleaned, single-line result.
Examples
Flatten to one line
Dear team, Thanks for the update. Best, Ada
Dear team, Thanks for the update. Best, Ada
Frequently asked questions
Does this also remove extra spaces?
Yes, optionally. Collapsing spaces turns multiple spaces or tabs into a single space for clean output.
Will it handle text copied from a PDF?
Yes. PDFs often add a break at the end of every line, and this tool joins them back into flowing text.
Are Windows and Mac line endings supported?
Yes. CRLF, CR and LF line endings are all handled.
Is my text private?
Yes. Everything runs in your browser and nothing is uploaded.
Related tools
JSON Formatter
Format, validate and minify JSON online. Pretty-print with custom indentation, sort keys and catch syntax errors. Runs in your browser.
JSON to CSV
Convert JSON to CSV online. Paste an array of objects and get clean, spreadsheet-ready CSV with the right headers. Runs in your browser.
Add Line Numbers
Add line numbers to any text online. Set the start value, step, and separator, pad numbers to align, and copy or download the result. Free and private.
Bullet List Maker
Turn lines of text into a bullet or numbered list online. Pick dash, asterisk, dot, arrow or numbers, add indent, then copy. Free and private.
Caesar Cipher
Encode and decode text with the Caesar shift cipher. Pick any shift, see the result live, and brute force all 25 shifts. Runs entirely in your browser.
Case Converter
Convert text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE. Free and private.