Widely availableSupported across all major browsers. Safe to use in production.

Overview

The hyphenate-character CSS property sets the character or string to use at the end of a line before a line break.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
106
106
98
17
106
17
auto
6
79
98
5.1
18
5
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)
Notes 1 item(s)
Compatibility
  • Available with a vendor prefix: -webkit- (6)
Notes 1 item(s)
Compatibility
  • Available with a vendor prefix: -webkit- (79)
Notes 1 item(s)
Compatibility
  • Available with a vendor prefix: -webkit- (5.1)
Notes 1 item(s)
Compatibility
  • Available with a vendor prefix: -webkit- (18)
Notes 1 item(s)
Compatibility
  • Available with a vendor prefix: -webkit- (5)

Syntax

CSS
.text {
  hyphens: auto;
  hyphenate-character: '-';
}
.japanese {
  hyphenate-character: '=';
}

Live demo

default (‐)

CSS default (‐) demo.

PreviewFullscreen

custom (=)

CSS custom (=) demo.

PreviewFullscreen

doublehyphen (--)

CSS doublehyphen (--) demo.

PreviewFullscreen

Use cases

  • Using Hyphenate character

    The hyphenate-character CSS property sets the character or string to use at the end of a line before a line break.

Cautions

  • May not be supported in older browsers.

Accessibility

  • Make sure visual changes are conveyed appropriately to assistive technology.

Powered by web-features