The font-variant-caps property controls how capital letters render, letting you apply small-caps and other refined typographic cap styles.
01
normal
Default caps.
02
small-caps
Mini capitals.
03
all-small-caps
Uniform caps.
04
petite-caps
Smaller caps.
05
unicase
Single case mix.
06
Labels
UI typography.
Fundamentals
Introduction
The font-variant-caps property in CSS allows you to control the use of alternate glyphs for capital letters. This can be particularly useful for setting text in small caps or other typographic variations, enhancing the visual appeal and readability of your content.
Definition and Usage
Unlike changing text-transform: uppercase, which simply makes every letter uppercase, font-variant-caps uses specially designed cap glyphs from the font when available. It is the modern, focused property for cap styling and pairs well with serif and display typefaces.
💡
Beginner Tip
If you already know font-variant: small-caps, font-variant-caps: small-caps does the same cap styling with a clearer, more specific property name.
Foundation
📝 Syntax
The syntax for the font-variant-caps property is straightforward. You can apply it to any element to specify how capital letters should be displayed:
Titling caps are drawn for display sizes and often have proportions optimized for large headlines rather than body text.
A11y
♿ Accessibility
Avoid small caps for long reading text — they reduce readability in large paragraphs.
Do not rely on cap styling alone to convey meaning; use clear wording and semantic HTML.
Maintain contrast and size on labels and headings styled with cap variants.
Screen readers ignore font-variant-caps — cap styling is visual only.
Test legibility on small screens when using petite-caps or titling-caps.
🧠 How font-variant-caps Works
1
You set a cap style
Choose a keyword such as small-caps or petite-caps.
Declaration
2
Browser checks cap glyphs
It looks for alternate capital letter forms in the font's OpenType features.
Font matching
3
Cap variants render
Letters display using small, petite, unicase, or titling cap forms when available.
Rendering
=
📝
Refined cap styling
Capital letters appear in the selected typographic style without changing font-size.
Compatibility
🖥 Browser Compatibility
The font-variant-caps property is supported in most modern browsers, including recent versions of Chrome, Firefox, Safari, Edge, and Opera. Visual quality still depends on the fonts you choose.
✓ Baseline · Modern browsers
font-variant-caps in current engines
All keyword values work in current Chromium, Firefox, Safari, and Edge releases.
95%Modern browser support
Google Chrome52+ · Desktop & Mobile
Supported
Mozilla Firefox34+ · Desktop & Mobile
Supported
Apple Safari9.1+ · macOS & iOS
Supported
Microsoft Edge79+ (Chromium)
Supported
Opera39+
Supported
font-variant-caps property95% supported
Bottom line: Safe for modern projects. Use fonts with OpenType cap features for the best small-caps quality.
Wrap Up
🎉 Conclusion
The font-variant-caps property is a useful tool for web developers looking to enhance the typography of their web content. By utilizing different capitalization styles, you can improve the visual hierarchy and readability of your text.
Experiment with the various values of this property to see how they can improve the presentation of your content. Start with small-caps for labels and metadata, then explore petite-caps and titling-caps for display typography.
Use font-variant-caps over legacy shorthand when possible
Pick fonts with true small-cap glyphs
Apply small-caps to labels and abbreviations
Pair with subtle letter-spacing
Reset with normal when needed
❌ Don’t
Confuse it with text-transform: uppercase
Use small caps for long body paragraphs
Assume every font supports all cap values
Shrink uppercase letters manually instead
Overuse cap variants on every heading
Summary
Key Takeaways
Knowledge Unlocked
Five things to remember about font-variant-caps
Use these points when styling capital letters.
5
Core concepts
Aa01
Cap control
Capital styling.
Purpose
normal02
Default normal
No variant.
Default
sc03
small-caps
Most common.
Syntax
all04
all-small-caps
Uniform size.
Variant
🔁05
Inherited
Children inherit.
Cascade
❓ Frequently Asked Questions
font-variant-caps controls how capital letters are displayed by selecting alternate cap glyphs such as small-caps, petite-caps, unicase, or titling-caps from the active font.
The default value is normal, which means no special capitalization styling is applied.
font-variant is the older shorthand that can include caps and other variant settings. font-variant-caps focuses specifically on capital letter styles and is the modern, precise property for cap variants.
small-caps converts lowercase letters into small capitals while keeping full-size uppercase letters. all-small-caps makes every letter, including uppercase, use the smaller cap size.
The font must include the requested cap variant glyphs. If the typeface lacks small-caps or other variants, the browser may synthesize a similar look or show little visible change.