UTILS.
100% in-browser

Word Wrap

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

— 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