# Remove Line Breaks

> Join broken lines into paragraphs or one line, and fix split words. Runs entirely in your browser, so nothing is uploaded.

Source: https://toffeekit.com/tools/remove-line-breaks

**Category:** [Text](https://toffeekit.com/category/text) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/remove-line-breaks

**Also useful for:** remove line breaks, line break remover, join lines, remove newlines, unwrap text, pdf text, paragraphs, remove enter

## What you can do

- **Fix text copied from a PDF** — Rejoin lines and hyphen-split words, keep the paragraphs. ([open with this preset](https://toffeekit.com/tools/remove-line-breaks?preset=pdf))
- **Make it one line** — Flatten everything into a single line for forms and spreadsheets. ([open with this preset](https://toffeekit.com/tools/remove-line-breaks?preset=one-line))
- **Turn a list into commas** — One item per line becomes a comma-separated list. ([open with this preset](https://toffeekit.com/tools/remove-line-breaks?preset=comma))

## How it works

1. Paste your text into Text with line breaks, or click Sample to try it.
2. Under Line breaks, pick Keep paragraphs, Remove all, or Replace with… and type a separator.
3. Leave Rejoin hyphenated words and Tidy extra spaces on for text copied from a PDF.
4. Click Copy or Save to take the joined text.

## FAQ

### Why does text copied from a PDF have line breaks everywhere?

PDFs store text line by line as it was laid out on the page, so copying it keeps a hard break at the end of every line. Keep paragraphs joins those lines and keeps the blank lines between paragraphs.

### How do I remove line breaks but keep paragraphs?

Choose Keep paragraphs. Single line breaks become spaces, while a blank line, which marks a new paragraph, is kept.

### How do I put all text on one line?

Choose Remove all. Every line break becomes a single space, which is handy for spreadsheet cells, form fields and code strings.

### How do I turn a list into comma-separated values?

Choose Replace with… and keep ", " as the separator. Each line becomes one item and empty lines are skipped. Type \t to separate items with tabs instead.

### What does Rejoin hyphenated words do?

It joins words that were split across two lines with a hyphen, such as "exam-" and "ple", back into "example". It only joins when both sides are lowercase letters, so names and capitalised words stay as they are.

### Is Remove Line Breaks free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

## Privacy

Remove Line Breaks runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [Word Counter](https://toffeekit.com/tools/word-counter) — Words, characters, sentences and reading time, live.
- [Case Converter](https://toffeekit.com/tools/case-converter) — UPPER, lower, Title, camelCase, snake_case and more.
- [Remove Duplicate Lines](https://toffeekit.com/tools/remove-duplicate-lines) — Keep only unique lines, in order.
- [Sort Lines](https://toffeekit.com/tools/sort-lines) — Sort A–Z, naturally, by length, or shuffle.
- [Text Cleaner](https://toffeekit.com/tools/text-cleaner) — Fix spaces, quotes, empty lines and stray HTML.
- [Find and Replace](https://toffeekit.com/tools/find-and-replace) — Replace words or regex patterns in bulk.

