# hyphenate-character

> The `hyphenate-character` CSS property sets the character used at the end of a line before a hyphenation break.

## How do I change the hyphen character in CSS hyphenation?

The property that defines the character shown at the end of a line when a word is hyphenated, instead of the default hyphen. Used together with `hyphens` for typography in different languages.

- Topic: Text Handling
- Type: property
- Browser support: Chrome 106+, Chrome Android 106+, Edge 106+, Firefox 98+, Firefox Android 98+, Safari 17+, Safari iOS 17+

## Example

Wrong:

```css
.article {
  hyphenate-character: '=';
}
```

Right:

```css
.article {
  hyphens: auto;
  hyphenate-character: '=';
}
```

`hyphenate-character` only changes the mark, so automatic breaks also need `hyphens: auto` and a `lang` attribute.

## Common mistakes

- Setting `hyphenate-character` alone and seeing no hyphenation at all.

## Key points

- `hyphens: auto` and a correct `lang` attribute are set, otherwise no hyphens appear.
- The value is a quoted string or 'auto'.

## Interview questions

### What is the default hyphenate-character?

The default 'auto' lets the browser choose the right mark for the content language, usually a hyphen.

### Does hyphenate-character change hyphens typed in the text?

No. Hyphen characters in the text stay as they are; the property only changes the mark added at a hyphenation break.

## Related cards

- [hyphens](https://wonderium.dev/css/hyphens.md)
- [\[lang\]](https://wonderium.dev/html/lang.md)
- [word-break](https://wonderium.dev/css/word-break.md)
- [overflow-wrap](https://wonderium.dev/css/overflow-wrap.md)
- [text-wrap](https://wonderium.dev/css/text-wrap.md)

---

- Level: [CSS](https://wonderium.dev/css.md)
- HTML version: https://wonderium.dev/css/hyphenate-character
- Last updated: 2026-11-25
