Skip to content

Line Wrapper

Hard-wraps text at a column width, or unwraps it back into single-line paragraphs.

Inserts line breaks at a given column, or takes them back out. The column count is measured in terminal columns rather than characters, because a Hangul syllable occupies two cells — wrapping Korean at 80 characters without that gives lines 160 columns wide.

🔒 Runs entirely in your browserwrapformatlines

Text

Settings

Mode

Insert line breaks at the given column.

Result

Lines

4

Widest line

58 columns

How to use it

  1. Choose wrap or unwrap

    Unwrap joins the lines of each paragraph back into one, keeping blank lines as the paragraph boundary. That is the direction for text copied out of a PDF.

  2. Set the column count

    72 or 80 for a commit message or an email, 100 for code comments. Leave "count CJK as two columns" on for anything containing Korean.

  3. Add an indent if the format needs one

    Continuation lines can carry a prefix — spaces for a quoted block, a marker for a bullet list. The first line of each paragraph is left alone.

Common questions

Why do my Korean lines look twice as long?

Because they are, in columns. A Hangul syllable is one character and two cells in every monospaced editor. This tool counts cells, so the widest-line figure is what you will actually see.

Unwrapping merged my bullet list

Unwrap joins on blank lines only. Put a blank line between items, or use the line-break remover, which recognises -, •, 1. and 가. as the start of a new item.

A long URL got cut in half

Turn off "break words longer than the width". The line will then run past the column rather than splitting a token that has to stay whole.

Feed it from

Next

These accept what this tool produces, so the result can go straight in.