Word wrap tool

Wrap text at a chosen visible-character width. Keep existing paragraph breaks and choose how to handle words that exceed the width.

Privacy: runs in your browser

This tool processes your input in this browser. Inputs and results are excluded from analytics. Draft saving is optional and stays on this device; delete saved text with the draft controls. Loading text from a URL is optional and contacts that server; its URL and your IP address are visible to the server. When a button sends your result to another tool, it waits in this tab until that tool opens it, for up to a minute, and is then deleted.

Copy link includes the inputs you choose to share in the address. Anyone with that link can reopen them. Files and generated results are excluded. Password and key tools share settings only.

Options

Your result

More
Keyboard shortcuts

Sharing and starting over

A copied link includes what you entered and your settings, so anyone with it can see them. Leave private text out. Files and results are not included; random draws are made again.

Start over puts the tool back to its starting values and closes any open file or device. Drafts you saved stay on this device until you delete them.

How it works

Choose a line width and the tool inserts real line breaks for plain-text documents, messages or fixed-width text. Existing line breaks and empty paragraphs remain. Runs of spaces and tabs inside a line become single spaces.

Visible characters are Unicode grapheme clusters, so joined emoji and combining accents stay together. Optional long-word handling either splits at a character boundary or leaves the word wider than your limit.

Next: Remove line breaks

Worked example

At a width of 8, “one two three” becomes “one two” followed by “three” on the next line.

Next: Character counter

Before you rely on the result

The width counts visible characters, not pixels or terminal cells. Proportional fonts and wide CJK characters need different display space. Indentation and repeated spaces are normalized; use this for prose, not aligned code.

Next: Word counter

Cite this page

ToolOctopus. “Word wrap tool.” Updated . https://tooloctopus.com/word-wrap-tool.

Add an access date if your instructions require one.

Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. License and source code.

Find a tool

Type a task, a unit pair, a sum or a time zone. ↓ to choose, Enter to open.