hyphens
Widely availableSince 202397% of users
Enables automatic hyphenation of words. Values: none, manual, auto. Requires lang attribute to work.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since September 2023. Widely available since March 2026.
Newer parts of hyphens
Hyphenation dictionary for Czech (cs, cs-*)Baseline Sept 2024
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
manual- Inherited
- Yes
Quick example
p { lang: en; hyphens: auto; }Syntax
none | manual | autoExamples
Enable automatic hyphenation
article {
hyphens: auto;
lang: en; /* Declare language for hyphenation rules */
}
/* Long words like "internationalization" might break as "internation-alization" */Browser uses language-specific rules to hyphenate long words, making text fit better in narrow columns.
Disable hyphenation for UI text
.button, .nav {
hyphens: none;
}
/* Button text never breaks with hyphens */Prevent hyphenation in buttons, labels, and navigation where breaks look awkward.
Manual hyphenation in technical text
.code-word {
hyphens: manual;
overflow-wrap: break-word;
}
/* Use soft hyphen (U+00AD) to mark where breaks are allowed: "back­ground" */Use soft hyphens in your HTML to explicitly mark where hyphenation is allowed, giving you control.
Common pitfalls
- Hyphenation requires language declarationhyphens: auto only works if the browser knows the text language. Set lang attribute on the element or parent for it to work correctly.
- Browser support varies by languageHyphenation dictionaries are language-specific. Some languages (like Icelandic) have support while others don't. Manual hyphenation is more reliable.
- Looks awkward on mobile or narrow screensWhile hyphenation helps fit text, it can reduce readability on very small screens. Consider max-width and font-size alongside hyphens.
hyphens browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2023.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
55+
43+
17+
79+Mobile
55+Android
43+Android
17+iOS