How to use Web Font Stack Generator
- Choose a system sans, serif or monospace stack, or a System interface/Serif reading example.
- Optionally enter up to four comma-separated custom family names before the preset fallbacks. Your page or the device must provide those fonts.
- Inspect the local preview and ordered family table, then copy the font-family declaration into your stylesheet. No font or stylesheet file is downloaded.
Example: Web Font Stack Generator
Build the system sans fallback declaration without adding custom families.
Options
- Presets and fallbacks
- System sans, serif and monospace presets list common family names, ending with their generic fallback. A name is not a bundled font file. The browser uses an available font and may select different fallbacks for different characters.
- Custom family names
- Up to four names are placed before the preset. Accepted names are 1 to 64 characters, begin with an ASCII letter or digit and use letters, digits, spaces, dots, underscores or hyphens. Surrounding quotes are removed and custom names are always quoted in the CSS, including names that resemble keywords.
Supported inputs and limits
- Three named presets and up to four custom family names of 64 characters each, using the accepted ASCII grammar.
- The tool does not upload, fetch or install font files and does not emit @font-face rules.
- Rendering depends on fonts provided by the page or device; the preview does not identify the font used for each character.
Where your input is processed
This tool does not upload your inputs. See the limits for anything saved on your device.
A fallback is part of the design
Check line breaks and spacing when the preferred font is unavailable. A stack keeps text visible, but substitute fonts can have different widths and heights.
Questions about Web Font Stack Generator
Will entering a font name install it?
No. Your page must provide that font or the visitor’s device must already have it. The browser moves through the fallback stack otherwise.
Can different characters use different fonts?
Yes. A font may lack a character, so the browser can choose a later fallback for that character.
Why is a family name quoted?
Quoting and escaping keeps spaces or punctuation inside one family name. The final generic family remains unquoted.