Search tools

Find a tool by name or what it does.

Word Wrap Text

Hard-wrap text to a fixed character width, with paragraph and prefix control.

Wrapped live as you type. Nothing leaves your browser.

Wrap settings

How to word wrap text online

  1. Paste your text

    Paste or type any text into the input box.

  2. Set the wrap width

    Enter the character width each line should wrap to. It defaults to 80 characters.

  3. Adjust the settings

    Toggle Break long words and Preserve paragraph breaks, and add a line prefix if you need one, such as "> " for quoting.

  4. Copy the result

    Click Copy to put the wrapped text, ready to paste anywhere, on your clipboard.

Why use this tool

Wraps to any character width

Set the wrap width to whatever a target format needs, from a narrow 40-character terminal to a wide 120-character log line. It defaults to 80 characters.

Breaks long words when needed

A single word longer than the wrap width is split into fixed-width chunks so no line ever overflows, or left intact if you turn the option off.

Preserves paragraph breaks

Existing blank lines between paragraphs are kept as paragraph separators while the text inside each paragraph is reflowed to the new width.

Optional line prefix for quoting

Add a prefix like "> " to every wrapped line, which is subtracted from the available width automatically so lines still fit the target column count.

Line count and longest line at a glance

A summary below the result shows how many lines the wrap produced and the length of the longest one, so you can confirm it fits where it needs to.

Runs entirely in your browser

Everything happens on your device; nothing is uploaded, so you can safely wrap private or sensitive text.

About this tool

Word Wrap Text hard-wraps a block of text to a fixed character width, breaking lines at word boundaries the way a terminal, a plain-text email, or a fixed-width code comment needs. Set the wrap width to match your target, 80 characters by default, and the text reflows instantly as you type or adjust the settings.

Preserve paragraph breaks, on by default, treats each blank-line-separated block of text as its own paragraph: existing line breaks inside a paragraph are collapsed and the words reflowed to the new width, while the blank lines between paragraphs stay in place. Turn it off to ignore the original structure entirely and reflow the whole input as one continuous block. Break long words, also on by default, splits any single word longer than the wrap width into fixed-size chunks so no line ever overflows; turning it off lets an unusually long word or URL run past the width on its own line instead.

The optional line prefix adds a fixed string, such as "> " for quoting a previous message, to the start of every wrapped line, and the wrap width automatically accounts for its length so the visible text still fits the target column count. A summary below the result reports the total line count and the longest line, useful for confirming the output actually fits a fixed-width display. For cleanup before or after wrapping, remove line breaks flattens a paragraph back to one line, and remove whitespace tidies up stray spaces. Everything runs in browser memory, so pasted text never leaves the page.

Frequently asked questions

How does word wrapping work here?
Paste your text, set a wrap width, and the text is broken into lines at word boundaries so none of them exceed that width, updating live as you type or change a setting.
What happens to a word longer than the wrap width?
With Break long words on, it is split into fixed-width chunks so it never overflows a line. With it off, the word is left intact and allowed to run past the wrap width on its own line.
Does it preserve my paragraph breaks?
With Preserve paragraph breaks on, blank lines between paragraphs are kept while the text inside each paragraph is reflowed to the new width. Turn it off to ignore the original structure and wrap the whole input as one continuous block.
What is the line prefix for?
It adds a fixed string, such as "> ", to the start of every line, which is useful for quoting text in an email or a chat reply. The wrap width automatically accounts for the prefix so lines still fit the target width.
Is my text uploaded anywhere?
No. Wrapping runs entirely in your browser. Your text never leaves your device, is never sent to a server, and is not stored or logged.
Is there a limit on how much text I can paste?
There is no hard limit. It comfortably handles long documents, though a very large paste may take a brief moment to process.

Related tools