Text-transform property

Last updated: 2026-09-13

text-transform Text-transform property

The text-transform CSS property changes how text is displayed in terms of case — uppercase, lowercase, or capitalized — without modifying the underlying content. The original text in the HTML remains untouched, so screen readers and copied text are unaffected; the conversion is purely visual.

Category
Initial Valuenone
InheritedYes
Applies Toall
Animation Typediscrete
CSS VersionCSS1
StatusStandard

📝 Syntax

text-transform: none | capitalize | uppercase | lowercase | full-width;

⚙️ Values

ValueTypeDescription
none | capitalize | uppercase | lowercase | full-widthKeywordText case transformation values

▶ Example

Edit the code below and see the live result in the playground:

🌐 Browser Support

Browser ChromeChrome EdgeEdge FirefoxFirefox SafariSafari OperaOpera
text-transform v1 v12 v1 v1 v1
Supported in all major browsers
Tip: capitalize uppercases the first letter of each word, but has no effect on scripts such as Chinese or Japanese that have no case distinction.
Warning: uppercase applies special case rules in some languages (Greek, Turkish), so the result may differ from what you expect.

❓ FAQ

QDoes text-transform change the actual text content in the DOM?
ANo. It only affects the visual rendering; the text in the DOM and the source stays unchanged, and users typically copy the original text. It is great for consistent uppercase headings and button label formatting.
QWhat is the full-width value of the text-transform property used for?
AIt converts half-width characters (Latin letters, digits, punctuation) into their full-width forms so Western characters align evenly within Chinese paragraphs. It is commonly used in Japanese and Chinese typography and does not affect characters that are already full-width, such as Hanzi.
QWhy does the capitalize value have no effect on Chinese text?
Acapitalize only uppercases the first letter of each word, and Chinese has neither words nor a case concept, so nothing changes; in mixed text only the English part is affected. Also, languages like Greek and Turkish have special case rules, so results can differ from expectations.

📚 Related Tutorials

Web-Tutorial.com

Web-Tutorial Tech Team

A team of developers maintaining programming tutorials. Each tutorial is written and reviewed by developers with expertise in that field. We work to keep our content accurate and reliable — if you spot an issue, please let us know.

100%

🙏 帮我们做得更好

我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……

如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏