Text & writing

Text line wrapper

Wrap paragraphs to a chosen character width.

Text line wrapper
Esc to restore

Your inputs

Results update as you type. Larger files run when you press Update result.

Your result

Your result will appear here.

More actions

Your inputs stay in this browser. Nothing is uploaded or saved.

A clear answer. Here’s how.

Wraps each original line independently at whitespace. Counts Unicode code points, collapses runs of whitespace within a line, and splits words longer than the width. Preserves blank lines; this is not a visual font-width measurement.

See a worked example

Worked example

A fixed demonstration, separate from the values you enter above.

Text
A few words become a much longer paragraph when they need to fit into a narrow column.
Maximum characters per line
40

Example result

A few words become a much longer
paragraph when they need to fit into a
narrow column.