Back to Tools

Unwrap Text

Remove line breaks to create a single paragraph

0
0
0
Input Text

Join hard-wrapped lines into one paragraph

Text copied from a PDF, an email or a terminal is often broken into short lines at a fixed width. Paste that into a web form or word processor and every line ends abruptly. This tool replaces the line breaks with single spaces so the content flows as one continuous block of text.

Unwrapping in four steps

  1. Paste the wrapped text into the Input Text box. Paste reads from your clipboard and Sample loads a five-line example.
  2. Leave Clean extra spaces ticked if you want repeated spaces and tabs squeezed into one and any leading or trailing whitespace removed. It is on by default.
  3. Press Unwrap Text.
  4. Take the result with Copy or download unwrapped-text.txt using the .TXT button.

The Before and After panels show characters, words and lines, and the summary reports how many lines were merged.

What exactly happens

Every line break, whether Windows or Unix style, becomes a single space. With Clean extra spaces on, all runs of whitespace are then collapsed, which also flattens blank lines between paragraphs. That last detail is the most important one: this tool produces one single paragraph. If your document has several paragraphs separated by empty lines, they will be merged too. Process each paragraph separately if you need to keep them apart.

Typical situations

  • Fixing text copied from a PDF where each visual line became a paragraph.
  • Cleaning up an email quoted at 72 columns before reposting it.
  • Preparing a long description for a spreadsheet cell or database field that must be one line.
  • Making subtitle or lyric text easier to paste into a translation tool that expects continuous prose.

Edge cases

  • Words hyphenated at the end of a line, such as inter-national, keep their hyphen and simply gain a space after it. You will need to fix those manually.
  • Lists and code are not suitable for this treatment, because their line structure is meaningful.
  • If you switch Clean extra spaces off, a line that already ended with a space will produce a double space after joining.
  • Nothing is added or removed apart from whitespace, so word counts stay identical.

The conversion is done by JavaScript in your browser tab. If you need the opposite, breaking long lines at a set width, use the companion Wrap Text tool.


Related Tools

Related Tools


Frequently Asked Questions

Does this keep my paragraph breaks?
No. All line breaks, including blank lines between paragraphs, are turned into spaces, and with Clean extra spaces on the result is one paragraph. To keep paragraphs, unwrap each one separately and rejoin them yourself.
What does Clean extra spaces do?
It collapses any run of spaces, tabs or newlines into a single space and trims the ends of the text. Without it, the tool only swaps line breaks for spaces and leaves the existing spacing untouched.
Will it fix words split with hyphens at line ends?
No. A word split like exam-ple across two lines becomes exam- ple with a space. The tool does not attempt to rejoin hyphenated fragments, so search for those after unwrapping.
Are Windows and Mac line endings both handled?
Yes. The tool matches both carriage-return plus line-feed pairs and plain line feeds, so text copied from Windows, Mac or Linux sources is unwrapped in exactly the same way without any extra setting.
How do I get the wrapped version back?
Use the companion Wrap Text tool. Enter the maximum number of characters per line and it will break the single paragraph into shorter lines, cutting at word boundaries unless you choose otherwise.
Support Chat
We typically reply within minutes

Hello! 👋 Before we start, please tell us your name.