UTILS.
Private by default
↩

Word Wrap

Hard-wrap text to a fixed line width using greedy word wrapping.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
— output appears here —

About this tool

Reflow text so each line fits within a chosen column width, optionally breaking long words. It runs fully in your browser.

Frequently asked questions

How is the text wrapped?
A greedy algorithm fits as many words as possible on each line before moving to the next, preserving existing line breaks.
What does break long words do?
When enabled, words longer than the width are split so no line ever exceeds the column limit.

More tools