Skip to content

Tailwind to CSS Converter

See the real CSS behind any Tailwind class, generated by Tailwind itself.

Drop a file with Tailwind classes, or click to choose one

Converted on your device — the file is never uploaded

CSS

Quick Tool Overview

The Tailwind to CSS Converter runs Tailwind v4 itself over the classes you paste and returns exactly the CSS the framework generates, variants and custom properties included.

What it does
Shows the CSS behind Tailwind classes
You give it
Class names, or markup containing them
You get back
The CSS Tailwind really generates
Best for
Debugging, learning and porting components out
Converters Free, unlimited use No sign-up Runs in your browser

About the Tailwind to CSS Converter

Every Tailwind class is shorthand for real CSS, and sooner or later you need to see it: to debug a specificity clash, to copy a component into a project that does not use Tailwind, to explain to a reviewer what shadow-sm actually does, or to check what a variant compiles to.

Paste classes — or a whole block of HTML, JSX or Vue, and the class names are picked out for you — and get the CSS Tailwind generates for them. This runs Tailwind v4 with its default theme, so the output is the framework’s own, variants and all: hover:, md:, dark: and focus: each produce their real selector or media query. Only the custom properties your classes actually use are included, so the result is a snippet you can paste into any project.

Key features of the Tailwind to CSS Converter

Tailwind itself

v4.1 with the default theme — not an approximation or a lookup table.

Reads your markup

class and className attributes in HTML, JSX, TSX and Vue are picked out.

Variants expanded

hover:, md: and dark: appear as their real selectors and media queries.

Just the variables you need

Only the custom properties your classes use, not the whole theme.

Unknown classes flagged

A class that generates nothing is counted, which catches typos fast.

How to use the Tailwind to CSS Converter

  1. 1

    Paste classes or markup

    A list of class names, or HTML, JSX or Vue containing them.

  2. 2

    Let Tailwind compile

    The framework itself generates the CSS, in your browser.

  3. 3

    Read the variants

    hover:, md: and dark: appear as their real selectors and media queries.

  4. 4

    Copy the CSS

    Paste it into a project with no Tailwind at all.

Frequently asked questions

Tailwind CSS v4.1 with its default theme. That matters: v4 is built on custom properties and OKLCH colours, so its output differs from v3 even for the same class name.

Reviews of the Tailwind to CSS Converter

What people who use the Tailwind to CSS Converter think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the Tailwind to CSS Converter. It takes half a minute and no account.

Write the first review

More converters