CSS font-variant-caps Property

Beginner
⏱️ 6 min read
📚 Updated: Jun 2026
🎯 4 Examples
Typography

What You’ll Learn

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.

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.

📝 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:

syntax.css
element {
  font-variant-caps: value;
}

Basic Example

font-variant-caps-basic.css
p {
  font-variant-caps: small-caps;
}
font-variant-caps: normal; font-variant-caps: small-caps; font-variant-caps: all-small-caps; font-variant-caps: petite-caps;

Default Value

The default value of the font-variant-caps property is normal, which means no special capitalization is applied.

Syntax Rules

  • Accepts keyword values: normal, small-caps, all-small-caps, petite-caps, all-petite-caps, unicase, and titling-caps.
  • The property is inherited — child elements receive the parent's cap style unless overridden.
  • Visual results depend on whether the font includes true cap variant glyphs.
  • Part of the modern font-variant shorthand system alongside numeric and ligature sub-properties.
  • Use normal to reset any cap variant styling.

⚡ Quick Reference

QuestionAnswer
Initial valuenormal
Applies toAll elements
InheritedYes
Most common valuesmall-caps
Related legacy propertyfont-variant

💎 Property Values

ValueDescription
normalThe default value. No special capitalization is applied
small-capsDisplays lowercase letters as small uppercase letters
all-small-capsDisplays both uppercase and lowercase letters as small uppercase letters
petite-capsDisplays lowercase letters as petite uppercase letters
all-petite-capsDisplays both uppercase and lowercase letters as petite uppercase letters
unicaseUses a single case for both uppercase and lowercase letters
titling-capsUses a font's titling capitals

👀 Live Preview

Compare normal text with small-caps styling:

font-variant-caps: normal; Capital Letter Styling Demo
font-variant-caps: small-caps; Capital Letter Styling Demo

Examples Gallery

Use the small-caps value to display text in small caps, then compare cap styles, style labels, and apply titling caps to headings.

🔢 Small Capitals

Start with the reference example — a paragraph using font-variant-caps: small-caps.

Example 1 — Text with Small Caps

Display paragraph text in small capitals using the small-caps value.

font-variant-caps-small-caps.css
p {
  font-variant-caps: small-caps;
}
Try It Yourself

How It Works

Lowercase letters render as smaller cap-height glyphs. The browser uses OpenType small-cap features when the font provides them.

Example 2 — normal vs small-caps vs all-small-caps

Compare three cap styles on the same mixed-case sentence.

font-variant-caps-compare.css
.regular { font-variant-caps: normal; }
.small-caps { font-variant-caps: small-caps; }
.all-small-caps { font-variant-caps: all-small-caps; }
Try It Yourself

How It Works

With all-small-caps, uppercase letters also shrink to the small-cap size for a uniform look across the entire line.

📈 Typography in UI

Apply cap variants to labels and display headings.

Example 3 — Category Label with petite-caps

Style a metadata label using petite capitals for subtle emphasis.

font-variant-caps-label.css
.category {
  font-size: 0.8125rem;
  font-variant-caps: petite-caps;
  letter-spacing: 0.06em;
  color: #64748b;
}
Try It Yourself

How It Works

Petite caps are slightly smaller than standard small caps, making them well suited for secondary labels above titles.

Example 4 — Display Heading with titling-caps

Apply titling capitals to a large headline when the font supports them.

font-variant-caps-titling.css
.display-title {
  font-family: Georgia, serif;
  font-size: 2.25rem;
  font-variant-caps: titling-caps;
  font-weight: 400;
}
Try It Yourself

How It Works

Titling caps are drawn for display sizes and often have proportions optimized for large headlines rather than body text.

♿ 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.

🖥 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 Chrome 52+ · Desktop & Mobile
Supported
Mozilla Firefox 34+ · Desktop & Mobile
Supported
Apple Safari 9.1+ · macOS & iOS
Supported
Microsoft Edge 79+ (Chromium)
Supported
Opera 39+
Supported
font-variant-caps property 95% supported

Bottom line: Safe for modern projects. Use fonts with OpenType cap features for the best small-caps quality.

🎉 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.

💡 Best Practices

✅ Do

  • 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

Key Takeaways

Knowledge Unlocked

Five things to remember about font-variant-caps

Use these points when styling capital letters.

5
Core concepts
normal 02

Default normal

No variant.

Default
sc 03

small-caps

Most common.

Syntax
all 04

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.

Practice in the Live Editor

Open the HTML editor, try font-variant-caps values like small-caps and petite-caps, and compare the results with your fonts.

HTML Editor →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

5 people found this page helpful