text-transform
Utilities for controlling the capitalization of text.
| Class | Styles |
|---|---|
uppercase | |
text-transform: uppercase; |
|
| lowercase |
text-transform: lowercase;
|
| capitalize |
text-transform: capitalize;
|
| normal-case |
text-transform: none;
|
Use the uppercase utility to uppercase the text of an element:
The quick brown fox jumps over the lazy dog.
<p class="uppercase">The quick brown fox ...</p>
Use the lowercase utility to lowercase the text of an element:
The quick brown fox jumps over the lazy dog.
<p class="lowercase">The quick brown fox ...</p>
Use the capitalize utility to capitalize text of an element:
The quick brown fox jumps over the lazy dog.
<p class="capitalize">The quick brown fox ...</p>
Use the normal-case utility to preserve the original text casing of an element—typically used to reset capitalization at different breakpoints:
The quick brown fox jumps over the lazy dog.
<p class="normal-case">The quick brown fox ...</p>
Prefix a text-transform utility with a breakpoint variant like md: to only apply the utility at medium screen sizes and above:
<p class="capitalize md:uppercase ..."> Lorem ipsum dolor sit amet...</p>
Learn more about using variants in the variants documentation.
On this page
[

From the creators of Tailwind CSS
Make your ideas look awesome, without relying on a designer.
“This is the survival kit I wish I had when I started building apps.”
Derrick Reimer, SavvyCal
](https://www.refactoringui.com/?ref=sidebar)
Copyright © 2026 Tailwind Labs Inc.·Trademark Policy