CSS text-transform: Uppercase, Lowercase, Capitalize (With Examples)

A practical guide to CSS text-transform and when you should use CSS vs JavaScript for real text changes.

CSS text-transform: Uppercase, Lowercase, Capitalize (With Examples)

Many developers search for “uppercase to lowercase CSS” expecting real conversion. CSS can only change how text looks, not the underlying value. This guide explains the difference and shows when CSS is appropriate.

Table of contents:

text-transform: lowercase

This makes text appear in lowercase, but the original string is unchanged.
.selector { text-transform: lowercase; }

text-transform: uppercase

This makes text appear in uppercase without modifying the source string.
.selector { text-transform: uppercase; }

text-transform: capitalize

Capitalize makes the first letter of each word uppercase, again only visually.
.selector { text-transform: capitalize; }

CSS vs JavaScript

Use this comparison to decide whether CSS or JS fits your goal.
Use case CSS JavaScript
Visual style only Yes Optional
Real text conversion No Yes
Form submission No Yes

Convert real text

If you need the actual text changed (for copy‑paste or forms), use JavaScript or a converter.

- JS guideppercase-to-lowercase-javascript/

FAQ

If you searched for “uppercase to lowercase CSS,” this clears up the key confusion.

Does text-transform change the real text?

No. It only changes appearance.

When should I use JavaScript instead?

Use JS when you need the underlying string to change.

Is there a fast no‑code option?

Yes. Use the online converter.

Need the real text changed?

Use the converter for actual case changes, not just visual styling.

Open the converter