FiFont
← Typography reference

Typography reference

Breaking long words safely

Long unbroken strings may overflow containers even with a sensible font size. Wrapping behavior is independent of the font's glyph repertoire.

Try the visual comparison

The first example uses normal wrapping and horizontal scrolling; the second allows emergency wrapping anywhere at the same 15ch maximum width.

Example A

averylongunbrokenexamplelabel
max-width:15ch;
overflow-x:auto;
overflow-wrap:normal;

Example B

averylongunbrokenexamplelabel
max-width:15ch;
overflow-wrap:anywhere;

These examples use browser/system fonts unless explicitly noted. Actual rendering and font feature support vary with your environment.

What to check in your project

Test long URLs, identifiers and translated labels at mobile width. Copy the original identifier unchanged; CSS emergency line breaks need not alter its characters.

Explore the related tool or guide →

Continue exploring