# Remove Line Breaks

Remove line breaks from text copied out of a PDF or an email, keeping the paragraphs. Free, and nothing you paste is uploaded.

Canonical page: https://filetity.com/remove-line-breaks

## Capabilities

- Free: Yes, with no watermark and no page limit.
- Account required: No. There is no account system.
- Processed on device: Yes. The file is read by your browser and never uploaded. There is no server to send it to.
- Formats: Any text in. Three ways out: unwrap paragraphs, join everything into one line, or drop only the blank lines.
- Limits: Windows, Mac and Unix line endings are all handled the same way. Indentation inside a line is removed when lines are joined, because it was wrapping rather than meaning.
- Mobile: Yes, on any modern mobile browser. Large files are limited by the memory the phone gives the browser.
- Offline: Yes, once the page has loaded. The tool keeps working with no network connection.

## Questions

### Why did other tools run my paragraphs together?

Because they replace every line break with a space, which cannot tell the difference between a line that was wrapped mid-sentence and a real paragraph break. Blank lines are the signal, and treating them as breaks while joining the rest is what keeps the structure.

### Why does text from a PDF paste with breaks everywhere?

Because a PDF has no paragraphs. It positions text on a page, so what looks like a flowing paragraph is a stack of separately placed lines, and every viewer inserts a break where each one ended. The text has to be reflowed rather than repaired.

### What does the one long line option do?

Joins absolutely everything, blank lines included, into a single line. That is what you want for a value going into a form field, a CSV cell or a configuration entry that cannot contain a newline at all.

### Can I remove only the empty lines?

Yes, that is the third option, and it leaves the wrapping exactly as it was. It is the one to use on a list or a block of code where each line is meant to be its own line and only the gaps between them are unwanted.

### Does it handle line endings from Windows?

Yes. Carriage return, line feed and the combination of both are all treated the same, so a file written on Windows behaves identically to one written on a Mac. That is worth knowing because a stray carriage return is invisible and breaks naive tools.

## Related tools

- [Sort Lines](https://filetity.com/sort-lines): Sort lines alphabetically, naturally, by length or at random.
- [Character Counter](https://filetity.com/character-counter): Count characters and words live, against the limits you are writing for.
