The word-wrap property controls whether the browser may insert line breaks inside an otherwise unbreakable string — such as a long word or URL — so the text fits its line box instead of overflowing.
The initial value is normal. Unlike word-break, it breaks only when the whole word cannot fit on a line by itself. The standard name today is overflow-wrap; word-wrap is the same property under its older name.
Legacy alias.
Originally a non-standard Microsoft extension. It is now an official alias of overflow-wrap. Prefer overflow-wrap in new CSS; word-wrap still works widely for older code and tutorials.
word-wrap is a browser CSS property (legacy alias of overflow-wrap). Node.js, Deno, and Bun do not apply it.
✓ Baseline · Legacy alias
word-wrap
Widely supported as an alias of overflow-wrap. break-word works broadly, including older IE. anywhere needs modern browsers (same as overflow-wrap).
99%Alias support
Google ChromeSupported
Full support
Mozilla FirefoxSupported
Full support
Apple SafariSupported
Full support
Microsoft EdgeSupported
Full support
OperaSupported
Full support
Samsung InternetSupported
Full support
Internet Explorer5.5+
break-word (no anywhere)
word-wrapAlias of overflow-wrap
Bottom line: Safe for legacy and modern browsers. Prefer overflow-wrap in new stylesheets. This is not a JavaScript runtime API.
Remember
Key Takeaways
Role: allow mid-word breaks only when a long string would overflow.
Alias: same as overflow-wrap. Prefer the standard name in new CSS.
Default:normal. Use break-word for most UI overflow fixes.
Gentler than word-break: only breaks when the whole word cannot fit alone on a line.
One line:word-wrap is the old name for overflow-wrap — learn it for legacy code, write overflow-wrap going forward.
Frequently Asked Questions
It controls whether the browser may break an otherwise unbreakable string, such as a long word or URL, so the text fits inside its line box instead of overflowing.
Yes. word-wrap began as a non-standard Microsoft name and is now a legacy alias of the standard overflow-wrap property. Prefer overflow-wrap in new CSS.
The initial value is normal. Lines break only at normal points such as spaces, so a very long word can stick out of a narrow box.
word-wrap (overflow-wrap) breaks a word only when that whole word cannot fit on a line by itself. word-break can force breaks more aggressively, depending on its value.
Use break-word for most UI text. Use anywhere when soft wrap opportunities should also affect min-content sizing in flex or grid layouts.
Yes. It applies to text and is inherited. It is a browser CSS property, not a Node.js feature.