Widely availableSupported across all major browsers. Safe to use in production.

Overview

The text-transform CSS property sets text case and capitalization.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
1
12
1
1
18
1
capitalize
1
12
1
1
18
1
dutch ij digraph

Dutch `IJ` digraph

14
full-size-kana
64
17
17
full-width
19
17
17
greek accented characters

Greek accented letters

34
79
15
34
lowercase
1
12
1
1
18
1
lowercase sigma

`Σ` → `σ` or word-final `ς`

30
12
14
6
30
6
none
1
12
1
1
18
1
turkic is

`i` → `İ` and `ı` → `I`

31
12
14
8
31
8
uppercase
1
12
1
1
18
1
uppercase eszett

`ß` → `SS`

1
18
1
1
18
1
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)
Notes 1 item(s)
Implementation note
  • The `text-transform` property does not work for `::first-line` pseudo-elements (nor for the one-colon syntax). See bug 40214861.
Notes 1 item(s)
Implementation note
  • The `text-transform` property does not work for `::first-line` pseudo-elements (also not for the old one-colon syntax). See bug 3409.
Notes 1 item(s)
Implementation note
  • The `text-transform` property does not work for `::first-line` pseudo-elements (nor for the one-colon syntax). See bug 40214861.
Notes 1 item(s)
Implementation note
  • The `text-transform` property does not work for `::first-line` pseudo-elements (also not for the old one-colon syntax). See bug 3409.
Notes 1 item(s)
Implementation note
  • Before Firefox 14, some punctuation characters could interfere with correct capitalization. See bug 731536.

Syntax

CSS
.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }
.lowercase { text-transform: lowercase; }

Live demo

Uppercase(uppercase)

CSS Uppercase(uppercase) demo.

PreviewFullscreen

Capitalize(startuppercase)

CSS Capitalize(startuppercase) demo.

PreviewFullscreen

Lowercase(lowercase)

CSS Lowercase(lowercase) demo.

PreviewFullscreen

Use cases

  • Using text-transform

    The text-transform CSS property sets text case and capitalization.

Cautions

  • May not be supported in older browsers.

Accessibility

  • Make sure visual changes are conveyed appropriately to assistive technology.

Powered by web-features