snaptools
Word Wrap error
⌃⏎ run · clear · / focus input
// about this tool

Word Wrap Online

Updated 2026-07-09

Word-wrap text online for free. Paste any text, choose a column width, and SnapTools breaks the lines at spaces so none exceed that width — instantly, in your browser. Nothing you paste is uploaded.

Fixed-width contexts — emails, commit messages, code comments, plain-text files — read best when lines wrap at a sensible column. This tool re-flows your text to any width you set, breaking on spaces so words stay whole and placing an over-long word on its own line rather than splitting it. Pair it with Remove Line Breaks to first unwrap text, then re-wrap it to a new width.

// how to use

  1. 1 Paste your text into the input panel on the left.
  2. 2 Set the column width at which lines should wrap.
  3. 3 Read the wrapped text on the right, then copy or download it.

// examples

Wrap at 20 columns
Input
the quick brown fox jumps over the lazy dog
Output
the quick brown fox
jumps over the lazy
dog
Short line unchanged
Input
already short
Output
already short

// common uses

Wrapping text to a fixed width for emails or comments Formatting plain-text files to a column limit Preparing commit messages or code comments Making long lines readable in fixed-width contexts

// faq

No. Wrapping runs entirely in your browser, so your text never leaves your machine.
It breaks lines at spaces so that no line exceeds your chosen column width, keeping whole words intact rather than splitting them mid-word.
A single word longer than the column width is placed on its own line rather than being cut in half, so words are never broken.
Existing line breaks are treated as boundaries, so paragraphs remain separated while their long lines are re-wrapped to the chosen width.
Word Wrap adds breaks to fit a width; Remove Line Breaks does the opposite, joining wrapped lines back into one. Use them together to re-flow text to a new width.

Use this via API

Get a free API key →
curl -X POST https://snaptools.dev/api/v1/tools/word-wrap \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"the quick brown fox jumps over the lazy dog"}'
Esc
↑↓ navigate open Esc close