CSS text-transform Property

❮ Previous Reference Next ❯


.example1 {
  text-transform: uppercase;

.example2 {
  text-transform: lowercase;

.example3 {
  text-transform: capitalize;

Hello World!

Lorem Ipsum is simply dummy text of the printing and typesetting industry.


The text-transform property transforms the case of the affected text.

It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.

It also can help improve legibility for ruby.

Default value:none
JavaScript syntax:

Standard Syntax

text-transform: none|capitalize|uppercase|lowercase|full-width|full-size-kana|initial|inherit|revert|revert-layer|unset;

Browser Support

The numbers in the table specify the first browser version that fully supports the property.


Property Values

The following table describes the values of this property.

Value Description
none This is default value. No capitalization.
capitalize Transforms the first character of each word to uppercase.
uppercase Transforms all characters to uppercase.
full-width Is a keyword that forces the writing of a character — mainly ideograms and Latin scripts — inside a square, allowing them to be aligned in the usual East Asian scripts (like Chinese or Japanese).
full-size-kana Generally used for <ruby> annotation text, the keyword converts all small Kana characters to the equivalent full-size Kana, to compensate for legibility issues at the small font sizes typically used in ruby.
lowercase Transforms all characters to lowercase.
initial Sets this property to its default value.
inherit If specified, the associated element takes the computed value of its parent element animation-delay property.
revert Reverts the cascaded value of the property from its current value to the value the property
revert-layer Rollback styles to the ones specified in previous cascade layers.
unset Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not.

Default CSS Property Values

selectors {
  text-transform: none;
❮ Previous Reference Next ❯