edittxt

Formatting

Remove Line Breaks

Remove unwanted line breaks from copied text — join everything into one line, unwrap paragraphs, or delete empty lines.

Input

Output

Your text is processed on your device and never uploaded anywhere.

Unbreak your paragraphs

Line breaks end up where you don't want them constantly: PDFs break every visual line, plain-text emails hard-wrap at 72 characters, subtitles arrive one fragment per line, and terminal output wraps at the window edge. Deleting the breaks by hand is exactly the kind of tedium a browser can do in one pass.

The three modes cover the three real cases: flatten everything to a single line, unwrap lines while preserving paragraph boundaries, or remove only the empty lines. Whitespace cleanup — double spaces, trailing spaces — is handled in the same pass.

Related fixes

If the text also carries Markdown symbols, strip those with the Markdown remover. If lines refuse to join even after unwrapping, the culprit may be an invisible Unicode separator — run the invisible character remover to find it.

Frequently asked questions

Which mode should I use?
'Unwrap paragraphs' is right for text copied from PDFs or emails: it joins the hard-wrapped lines inside each paragraph but keeps the blank-line gaps between paragraphs. 'Single line' flattens everything — useful for spreadsheet cells or form fields. 'Remove empty lines' keeps every real line break and only deletes blanks.
Why does text copied from a PDF have a line break after every few words?
PDFs store text as positioned lines, not flowing paragraphs. When you copy, each visual line ends with a hard line break, so pasting into anything with a different width shreds the paragraph. Unwrapping rejoins the lines into flowing text.
Does it also fix double spaces?
Yes — the 'collapse double spaces' option (on by default) reduces runs of spaces and tabs to a single space and trims stray whitespace at the ends of lines.
Is there a limit on how much text I can paste?
No practical one. The processing is local JavaScript, so even very large documents convert instantly and nothing is uploaded.

Related tools