Start a project

Tool 59 of 194 · CSS

Tailwind Class to CSS Expander

See the exact CSS behind any Tailwind class, or turn a component's classes into plain CSS you can use without Tailwind.

Tailwind Class to CSS Expander

Tailwind classes or HTML

Loading the Tailwind compiler...

CSS as Tailwind generates it

Tailwind's CSS output

Plain CSS, theme values filled in

Plain CSS

Class by class

ClassVariantsResult

01

What it does

Runs Tailwind CSS v4's own compiler in your browser to expand classes into the exact CSS, then gives a plain version with the theme values filled in.

  • Tailwind CSS v4's real compiler, not a lookup table, with the default theme
  • Variants and breakpoints: hover:, md:, dark:, stacked ones and arbitrary values
  • Pulls class names out of pasted HTML or JSX
  • Plain CSS output with theme variables filled in and simple calc() folded

02

Private by design

Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

03

What you get

The CSS Tailwind generates, a plain-CSS version and a class-by-class table, with a Copy and a Download button on every result.

  • Tailwind CSS
  • Utility classes
  • CSS
  • Converter

Why it matters

Tailwind is quick to write but can be hard to read back: a button with fifteen classes hides the actual CSS, and moving a component out of a Tailwind project means working out what each utility does. Lookup tables online go stale with each Tailwind release, and they rarely handle variants, opacity modifiers or arbitrary values like grid-cols-[1fr_auto].

This expander runs Tailwind CSS v4's own compiler, bundled into the page with the default theme, so the output is exactly what Tailwind would generate for those classes. Paste class names or a chunk of HTML: it pulls out the class attributes, compiles them and shows the CSS as Tailwind writes it, with the theme variables it uses. A second version fills in those variables and folds the simple calc() expressions, giving plain CSS you can drop into a project without Tailwind. Classes that generate nothing are flagged, which catches typos and classes that need a custom config.

How to use it

  1. Paste Tailwind classes, or HTML with class attributes.
  2. Read the summary for classes that don't generate CSS.
  3. Copy the Tailwind output, or the plain CSS for use without Tailwind.
  4. Check the table to see each class and its variants.

FAQ

Which version of Tailwind does it use?

Tailwind CSS v4.3.3 with the default theme. Classes from plugins or a custom theme won't generate anything.

Does it handle hover:, md: and dark:?

Yes. Variants, stacked variants, arbitrary values and opacity modifiers all compile the same way they would in your build.

What's the plain CSS version?

Tailwind's output uses theme variables like --spacing and --color-sky-500. The plain version fills those in, so the CSS works without Tailwind's theme layer.

Is my code uploaded?

No. The compiler runs in your browser.

Credits and licences

Uses the Tailwind CSS v4.3.3 compiler and default theme (MIT License, Tailwind Labs, Inc.).

Work with me

Want a site that gets these right?

I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

All developer tools · Back to leej.uk