InputTestHub

Word Wrap Tool

Hard-wraps text at any column width without breaking words, for emails, code comments and fixed-width output.

Text Nothing uploaded No sign-up Free, unlimited
Text tool
Paste something on the left to see the result.
In short Hard-wrapping text inserts real line breaks at a column width you choose, breaking between words rather than through them. It is different from the soft wrapping a text box does, where the display wraps and the underlying text is still one long line — hard wrapping changes the text itself, so the line breaks survive being copied anywhere. The classic width is 72 or 80 characters, and the reason is historical and still in force: punched cards were 80 columns, terminals inherited it, and email and code conventions inherited it from terminals. Git commit messages are conventionally wrapped at 72 so they still fit when indented in a log. Where you need this is plain-text email, code comments, README files and anything going into a fixed-width context. Where you do not is web copy or a word processor, both of which wrap for themselves and will wrap your hard breaks a second time, producing very short ragged lines. That double-wrapping is the single most common symptom of text that was hard-wrapped and then pasted somewhere it should not have been.

How to use the Word Wrap Tool

  1. Paste your text into the input box on the left.
  2. Adjust the options above the box if you need a different behaviour.
  3. The converted text appears on the right; press Copy to put it on your clipboard.

About the Word Wrap Tool

The Word Wrap Tool hard-wraps text at any column width without breaking words, for emails, code comments and fixed-width output. It runs as plain JavaScript inside the page, which means there is no upload step, no queue and no size limit imposed by a server — the only limit is your own device.

What people use it for

  • Formatting a plain-text email to 72 columns.
  • Wrapping a long code comment to fit a style guide.
  • Preparing text for a terminal or fixed-width display.

Frequently asked questions

Does the Word Wrap Tool cost anything?
There is no cost and no cap. The Word Wrap Tool is not a demo of a paid product, so nothing is held back or watermarked.
Can you see what I put into this page?
No. The Word Wrap Tool runs entirely in your browser using JavaScript. Nothing is transmitted, logged or stored, which you can verify yourself in the Network tab of your browser's developer tools.
Who is the Word Wrap Tool for?
Typical uses: formatting a plain-text email to 72 columns. Wrapping a long code comment to fit a style guide. Preparing text for a terminal or fixed-width display. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
Will this work on a tablet?
Yes. The page is responsive and the page works in Chrome, Safari, Firefox, Edge and Samsung Internet on both Android and iOS. There is no app to install and nothing to sign into.

Related text tools

All 92
01

Case Converter

Converts text between twelve cases: UPPER, lower, Title, Sentence, camelCase, PascalCase…

02

Uppercase Converter

Converts any text to UPPERCASE instantly, keeping numbers, punctuation and line breaks exactly…

03

Lowercase Converter

Converts any text to lowercase, including text that was typed with Caps Lock on by mistake.

04

Title Case Converter

Converts headings to proper Title Case using AP and Chicago rules, keeping short words like…

05

Sentence Case Converter

Rewrites text in sentence case: first letter of each sentence capitalised, the rest lowercase…

06

camelCase Converter

Turns any phrase into camelCase for JavaScript, Java and JSON keys, stripping spaces, hyphens…

07

PascalCase Converter

Converts phrases to PascalCase (UpperCamelCase) for class names, React components and type…

08

snake_case Converter

Converts text to snake_case for Python variables, database columns and file names.

09

kebab-case Converter

Converts text to kebab-case for URLs, CSS class names and HTML attributes.

10

CONSTANT_CASE Converter

Converts text to SCREAMING_SNAKE_CASE for environment variables, constants and configuration…