Word Wrap / Line Length Formatter
Wrap text at 72, 80 or any column with soft or hard breaks, preserved indentation and re-flow of already-wrapped text.
Privacy: your files never leave your device. All processing happens locally in your browser.
How to use
- 1.Paste the text and pick a width: 72 for email and commit messages, 80 for classic terminal, or type your own.
- 2.Choose soft wrap at word boundaries or hard wrap at the exact column, and set reflow and indentation handling.
- 3.Check the longest-line stat, then copy the wrapped result.
About Word Wrap / Line Length Formatter
Word Wrap reformats text to a maximum line length, the way editors, mail clients and terminals have done since fixed-width screens existed, and the way plain-text conventions still expect. Paste the text, pick a width, and get back the same words broken at the right places: soft wrap breaks at the last space that fits, and a hard-wrap toggle breaks at the exact column when you truly need every line under the limit.
The preset widths are the ones the conventions actually name. RFC 5322, the internet message format standard, says each line of a message must be no more than 998 characters and should be no more than 78; the traditional practice of wrapping body text at 72 leaves room for quoting levels to be added without re-wrapping, and the same 72-column habit carried into commit messages, where widely followed Git practice wraps body text so it survives indented display in logs. Eighty columns is the classic terminal width that code style guides still reference. All four presets, 72, 80, 100 and 120, are one click, and any width from 8 to 500 can be typed directly.
Structure survives the wrap. Blank lines are kept, and each paragraph wraps independently. The reflow option, on by default, first joins the existing line breaks inside a paragraph so already-wrapped text can be re-wrapped cleanly at a new width; switching it off wraps each existing line on its own, which is what you want when line breaks are meaningful. Indentation is preserved and accounted for: a paragraph that starts with four spaces keeps those four spaces on every continuation line, and the effective wrap width subtracts them, so indented blocks stay aligned instead of drifting. Quoted-email prefixes made of angle brackets are treated as indentation under the same rule, so replies keep their quoting structure.
Soft wrap never cuts a word: anything longer than the limit, a long URL, an unbroken identifier, stands alone on its own line, and the result reports how many such overlong words were left intact so nothing silently exceeds your limit without your knowledge. Hard wrap cuts at the exact column but will never split an emoji or any other character that occupies two code units, a correctness detail that naive column-cutters get wrong. Width is counted in Unicode code points, and the page states its one scope boundary plainly: East Asian full-width characters count as one, terminal double-width rendering is not simulated.
Soft wrapping is idempotent, so running the output through again at the same width changes nothing, which makes the tool safe in repeated pipelines. The result reports lines in, lines out and the longest output line. Input is capped at one million characters and wraps in a single linear pass, returning instantly even at that size. Everything runs in your browser; nothing is uploaded, stored or attached to an account. Use it for commit messages, mailing-list replies, code comments, man-page-style documents, or any destination that still reads best in honest fixed-width lines.
Methodology & sources
Split into paragraphs at blank lines, optionally reflow interior line breaks, then wrap each paragraph in a single pass that breaks at the last fitting space or at the exact column under hard wrap, preserving and width-accounting indentation, never splitting surrogate pairs, and counting width in Unicode code points with the East Asian width boundary stated.
- RFC 5322, Internet Message Format, section 2.1.1 Line Length Limits (rfc-editor.org, primary standard)
- Pro Git book, Distributed Git - Contributing to a Project (git-scm.com, official Git documentation site)
- POSIX.1-2017 (IEEE Std 1003.1) fold utility specification (pubs.opengroup.org, The Open Group, primary standard)
Frequently asked questions
- Why are 72 and 80 the presets?
- RFC 5322 says message lines should stay within 78 characters, and wrapping at 72 leaves room for quote prefixes; 80 is the classic terminal width code style guides still cite. Both are conventions the standards actually document, and any width from 8 to 500 works.
- What happens to a word longer than the limit?
- Soft wrap never cuts words: the overlong word stands alone on its own line and the result reports how many such words were left. Hard wrap cuts at the exact column, but never in the middle of an emoji or other two-unit character.
- Can it re-wrap text that is already wrapped?
- Yes. The reflow option joins existing line breaks within each paragraph before wrapping, so old 60-column text re-wraps cleanly at 100. Switch reflow off when existing line breaks must be kept.
Related tools
- Text FormatterOne click turns a messy paste into a clean article: paragraphs rejoined, indentation applied, punctuation width normalized and CJK-Latin spacing fixed.
- Line Break ConverterConvert actual CRLF, CR, and LF line breaks to literal \n, reverse common escape sequences, or replace breaks with spaces.
- Character CounterCount characters in real time and instantly see how much room is left for X/Twitter, SMS, Instagram, and SEO meta tags.
- Add Line Numbers to TextNumber every line of pasted text from a chosen starting value with a custom separator and optional zero padding.
- Add Prefix and Suffix to LinesAdd literal prefix and suffix text to every pasted line, with an option to leave blank lines untouched.
- Add Quotes to Each LineTurn a pasted list into a paste-ready JSON array, SQL IN clause or CSV row in one click, with the escaping each format actually requires.
Text Tools guides
View all- How to Find and Replace Text in AutoCAD
- How to Get All Links from a Word Document
- How to Remove Emoji from a Facebook Post
- Emoji Copy and Paste: Find and Copy Any Emoji Instantly
- How to Create a Batch File from a Text File Locally
- How to Change Case in Google Docs and Beyond
- How to Get Bold Text in WhatsApp Messages
- Add a Prefix to All Lines in Notepad++ and Online
- How to Add Line Numbers to Text in Word and Plain Text
- How to Add Line Numbers in Word and Plain Text
- Remove Duplicate Lines from Text in One Click
- How to Generate Random Words in HTML Pages
- Extract Phone Numbers from Any Text in Minutes
- Convert Numbers to Words in Excel Without Formulas or VBA
- How to Generate Lorem Ipsum in Canva for Faster Mockups
- How to Random List in Python Without Writing Code
- How to Count Lines in a Play Using a Browser Tool
- Remove Line Breaks from Text in Excel in One Simple Step
- Convert Brake Line Symbols to Literal Text for Code or Data
- Cute Kaomoji Copy and Paste for Roblox Chats and Bios