Unwrap Text
Join hard-wrapped lines back into paragraphs, keeping a blank line as the paragraph break.
What this page does
The page turns hard-wrapped lines back into running paragraphs: a blank line still separates paragraphs, and lines inside one paragraph join with a space.
How to use it
Paste or type the text and press Run. The result appears beside the form. With "The quick brown fox\njumps over the lazy dog.\n\nA second paragraph\ncontinues here.", the page gives:
The quick brown fox jumps over the lazy dog.
A second paragraph continues here.
The rule it applies
CRLF and lone CR become LF; the text is split on a blank line into paragraphs; within a paragraph each line is trimmed and joined with one space; paragraphs are rejoined with one blank line.
Word order and punctuation are unchanged; only the newlines inside a paragraph and the run of blank lines between paragraphs are rewritten. Every character is read in your browser: nothing is uploaded and nothing is stored.
The page turns hard-wrapped lines back into running paragraphs: a blank line still separates paragraphs, and lines inside one paragraph join with a space.
The rule this page applies: CRLF and lone CR become LF; the text is split on a blank line into paragraphs; within a paragraph each line is trimmed and joined with one space; paragraphs are rejoined with one blank line.
Worked example: "The quick brown fox\njumps over the lazy dog.\n\nA second paragraph\ncontinues here." gives the output recorded in the example below, character for character.
How to use the Unwrap Text
Paste or type the text into the box and press Run. The result appears beside the form, and pressing Run again re-reads whatever is in the box.
This page has nothing to configure: it reads the text and applies the rule below. The quick brown fox jumps over the lazy dog. A second paragraph continues here.
The rule this page applies
CRLF and lone CR become LF; the text is split on a blank line into paragraphs; within a paragraph each line is trimmed and joined with one space; paragraphs are rejoined with one blank line.
Word order and punctuation are unchanged; only the newlines inside a paragraph and the run of blank lines between paragraphs are rewritten.
What to Expect
Best for
- Re-flowing an email quoted at 72 columns
- Turning a wrapped README into one long line
Not ideal for
- Code, where a newline is syntax
- Lists, where each line is an item
What this tool keeps
- The text exactly as you pasted it
- The same answer on every run
- Nothing sent, stored or logged
What may need cleanup
- A marker such as [email] or [url] that you want spelled differently
- Spacing carried over from the text you pasted
Common errors
- An all-whitespace input is refused, because there is no paragraph to unwrap.
- An empty box, which the page refuses rather than printing a blank result
Example use cases
- Preparing copy for a CMS field
- Quoting a message in a chat
Sample input
The quick brown fox jumps over the lazy dog. A second paragraph continues here.
Sample output
The quick brown fox jumps over the lazy dog. A second paragraph continues here.
Who this is for
- writers
- developers
Frequently asked questions
What rule does this page apply?
CRLF and lone CR become LF; the text is split on a blank line into paragraphs; within a paragraph each line is trimmed and joined with one space; paragraphs are rejoined with one blank line.
What input does it refuse?
An all-whitespace input is refused, because there is no paragraph to unwrap.
What is left unchanged?
Word order and punctuation are unchanged; only the newlines inside a paragraph and the run of blank lines between paragraphs are rewritten.
Is anything uploaded?
No. The text is read by JavaScript in this page and nothing is posted, stored or logged.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.