Skip to main content

CSS Text Transform Generator

API reference

Generate CSS text-transform rules (uppercase, lowercase, capitalize, full-width, full-size-kana) with a live, language-aware preview, a side-by-side comparison of every value and the converted plain text.

Input

Case rules depend on language. Browsers read it from the lang attribute.

All-caps text reads better with a little extra tracking.

Output

Your transformed text will appear here.

Transformed text (plain characters)
text-transform declaration
 
CSS
 
HTML
 
Was this helpful?

More ways to use this tool

REST API

curl -X POST https://api.iotools.cloud/v1/tool/css-text-transform-generator \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Swap in your own key from your account. The tool's fields are the body — no wrapper.

Ask an AI agent

Use the IOTools `css-text-transform-generator` tool (CSS Text Transform Generator) on this input:

YOUR_INPUT_HERE

Paste this at any agent connected to the IOTools MCP server, then add your input.

Embed widget

<iframe
  src="https://iotools.cloud/embed/css-text-transform-generator/"
  width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
  title="CSS Text Transform Generator — iotools.cloud"
  sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
  allow="clipboard-write"
  style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>

Drop this into your own page — free, no key required, just a link back.

Cost per API/MCP callFrom 5 credits
Need more credits?View pricing

Also available with

Guides

The CSS text-transform property changes how text is cased on screen without changing the text in your HTML. This generator builds the rule, previews it in the language you choose, compares every value side by side, and gives you the converted text as plain characters.

How to use it

  1. Type or paste sample text. Mixed case and accented letters show the differences best.
  2. Pick a text-transform value. The preview updates as you change it.
  3. Set the language. Case rules depend on the lang attribute, so pick the language your page is written in.
  4. Add letter spacing if you use uppercase. All-caps text is easier to read with about 0.05em to 0.1em of extra tracking.
  5. Copy the output: the declaration, a full CSS rule, the HTML, or the transformed plain text.

text-transform values

Value What it does
uppercase Converts every letter to upper case
lowercase Converts every letter to lower case
capitalize Upper-cases the first letter of each word and leaves the other letters alone
full-width Swaps characters for their full-width forms so Latin text lines up with CJK text
full-size-kana Turns small kana (ァ, っ) into full-size kana, useful for ruby text that's too small to read
none Shows the text exactly as written

Why the language matters

The same CSS gives different results in different languages:

  • Turkish and Azerbaijani have a dotted and a dotless i. uppercase turns i into İ, and lowercase turns I into ı.
  • Dutch treats ij as one letter, so capitalize turns ijsselmeer into IJsselmeer.
  • German ß becomes SS in upper case.
  • Greek drops accents when text is upper-cased.

Set lang on the <html> element or the container, as the HTML snippet does, so browsers apply the right rules.

Things to know

  • capitalize doesn't lower-case anything. "iPHONE" becomes "IPHONE", not "Iphone". For true title case, change the text itself with the Title Case Converter.
  • Copy and paste keeps the original text. Browsers copy the source characters, not the transformed ones. Use the "Transformed text" output when you need the converted characters.
  • Screen readers read the source text. Some read all-caps words letter by letter, so write content in normal case and use uppercase for styling.

To change the case of text directly, use the Case Converter. For spacing between letters and lines, see the CSS Text Spacing Generator.

Privacy

Everything runs in your browser. Your text is never uploaded.

text-transformuppercaselowercasecapitalizefull-widthsmall capsletter casetypography

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.