Wrap Text at N Characters
Hard-wrap a block of text to a fixed line width, breaking cleanly on spaces so no word is split, with an option to break very long words. A free word wrap tool for email, code comments and fixed-width text.
This tool wraps text at a fixed number of characters, inserting real line breaks so every line stays within the width you set. It breaks on spaces so words are kept whole, which is what you want for email, plain-text posts, code comments and anything that has to fit a column. Set the width — 72 and 80 are common — and paste your text. If you are dealing with long unbroken strings like URLs or IDs, turn on "Break long words" so they are split to fit rather than overflowing the line.
- No sign-up, ever
- 100% free
- Nothing uploaded
- Works offline after first load
- No limits, no email wall
How to use it
- 1
Set the width
Choose how many characters each line should hold, such as 72 or 80.
- 2
Paste your text
Add the paragraph or block you want wrapped to that width.
- 3
Copy the wrapped text
The hard-wrapped version appears on the right, ready to paste anywhere.
When it comes in handy
Plain-text email
Wrap a message to 72 characters so it reads well in plain-text mail clients.
Code comments
Fit a long comment block inside an 80-column limit without splitting words.
Fixed-width fields
Prepare text for a system or form that expects a set line length.
Instant & 100% private — nothing is uploaded
Every keystroke is handled right here in your browser. Your text is never sent to a server, so there is no sign-up, no email wall, and no length cap from us. Load the page once and it keeps working even if you go offline.
Frequently asked questions
- What is the difference between soft and hard wrapping?
- Soft wrapping is what your editor does on screen: the text looks wrapped but is still one long line underneath. Hard wrapping, which this tool does, inserts actual line-break characters so the wrapping is baked into the text and survives being pasted elsewhere. Use hard wrapping when the receiving system needs real line breaks.
- Does it split words that are longer than the width?
- Only if you turn on "Break long words". By default a word longer than the line width is left whole and simply overflows, because splitting words changes their meaning. For things like long URLs or hashes, enabling the option splits them so every line truly fits.
- Are my existing paragraphs preserved?
- Yes. The tool wraps within each line you already have and keeps your line breaks between paragraphs, so the structure stays intact. It only adds breaks to keep lines under the width; it does not merge your paragraphs together.
More tools
More from the Hivly network
Free sister tools on our other sites.