Text editing

Reflow a paragraph without changing its meaning

·

Use Unwrap paragraphs to join ordinary continuation lines. Use Wrap to fit a text layout to a chosen width. The workspace preserves blank paragraph separators and lets you choose when an existing line break stays.

Text Wrapper

Join the two lines in the first paragraph

Choose Load example and Unwrap text. The two indented lines become one. The two initial spaces stay, and the continuation starts after a single space. The blank line and the Unicode line separator between the two multilingual lines stay.

Keep breaks where indentation changes is enabled. Turn it off to join lines with different levels of indentation. Use a blank line to keep an unindented heading separate from the prose below it.

The indented paragraph in the original and unwrapped text
  The evening crew will check
  the lantern beside the gate.

Unicode Line Breaking Algorithm, breaking and nonbreaking properties

Wrap around a combined emoji and nonbreaking space

Paste A👩🏽‍🔧B and choose Hard wrap at graphemes with a width of two. The first line contains A and the emoji together. B starts the second line.

Try A followed by a nonbreaking space and B at width one. The linked sequence stays on one line of three graphemes. The count represents grapheme clusters, so it can differ from terminal cell width.

Whole words only break at ordinary spaces and tabs. Balanced words favors similar line lengths within the chosen width when breaks are available. Indentation and prefixes count toward the target.

Hard wrap at two graphemes
A👩🏽‍🔧B

Unicode Text Segmentation, grapheme cluster boundariesUnicode Line Breaking Algorithm, breaking and nonbreaking properties

Apply an output line ending and a hanging indent

Keep existing lines to wrap each original row separately. For a multi-line paragraph, Reflow paragraphs joins its existing lines before wrapping. Add a hanging indent when continuation lines should start farther in.

Choose Preserve original endings to keep the surviving endings. The first CRLF, LF or CR in the source supplies the style for new breaks. Select Unix LF or Windows CRLF to set the ordinary line endings explicitly.

Download the text to preserve exact line endings and Unicode code points. The browser preview may display different newline encodings alike.

WHATWG HTML textarea value and line breaks

Common questions

Will Unwrap automatically repair a hyphenated word copied from a PDF?

Unwrap joins ordinary breaks and preserves the printed hyphen. Use PDF Text Cleaner when you need to review and repair split words.

Does wrapping change Arabic or Hebrew letter order?

The exported text keeps the original logical character order. The browser uses bidirectional layout to display right-to-left passages.

Sources

Put it into practice.

Related guides