Wrap Text to a Fixed Width Online, Hard Wrap Tool
Force line wrapping of text at a given width (hard wrap), right in your browser.
Useful for code comments, plain-text emails or commit messages.
🔒 100% client-side — no data sent
Force a text to wrap at a fixed width (hard wrap) by setting the number of characters per line. Ideal for formatting code comments, plain-text emails or files that must respect a column limit. Processed 100% locally in the browser: your data is never sent.
What is it for?
- ▸ Format code comments to a maximum of 80 columns
- ▸ Break a plain-text email to a readable width
- ▸ Respect a per-line character limit in a file
- ▸ Reflow a long paragraph before printing or export
FAQ
What is hard wrapping a text?
Hard wrapping inserts real line breaks into the text at a given width, unlike soft wrap which only folds lines visually without changing them. The result keeps its formatting even in an editor without auto-wrap.
What width should I choose to format text?
The most common convention is 80 characters per line, inherited from terminals, and often used for code and emails. For prose, 72 characters improve reading comfort.
Does the tool cut words in the middle?
By default, wrapping happens between words to preserve readability. Words longer than the chosen width may still be broken to respect the imposed limit.