Category: Text tools

Word Wrap

System ideaMissing a tool?

Wrap text to a fixed line width

Wrap text to a chosen line width, optionally preserving paragraph breaks and hard-breaking words longer than the width, with the resulting line and word counts shown alongside the output. Runs entirely in your browser.

Lines6Words25Characters145
Output
LocalTools runs every tool in your
browser, so text, files and inputs never
leave your device.

This paragraph is separate from the one
above it.

Everything on this page is processed in your browser. Nothing is uploaded.

What this tool does

Fixed-width output, code comments, plain-text emails, terminal banners, README files, still needs manual wrapping when the source is one long line or was wrapped to a different width. This tool re-flows text to the width you choose, filling each line as full as it can before breaking, and can either preserve blank-line paragraph breaks or treat the whole input as one flow. A single word longer than the width is normally left on its own line; turning on Hard-break long words forces it to split at the width instead.

How to use it

  1. Paste your text, or load the example.
  2. Set the line width in characters.
  3. Turn on Preserve paragraphs or Hard-break long words as needed, then copy the wrapped text.

Privacy

This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.

Frequently asked questions

Is my text uploaded anywhere?
No. Wrapping happens in JavaScript running in the page, so nothing you paste is sent anywhere.
What counts as a paragraph?
A blank line (two or more consecutive line breaks) starts a new paragraph; with Preserve paragraphs on, each one is wrapped separately and blank lines are kept between them.
What does Hard-break long words do?
A word longer than the line width is normally kept whole on its own line even if it overflows; turning this on splits it at the exact width instead, the way a terminal would.