What Is the Tailwind to CSS Converter?
Paste a Tailwind CSS v3 class string and get the plain CSS it produces, written as one rule set for a selector you choose. Values come from tables generated from tailwindcss 3.4.17's own output, so colours, shadows, rings, transforms and spacing match what Tailwind compiles, without the --tw-* helper variables.
Why Use This Tool?
When migrating from Tailwind to plain CSS, or when you need to see what a long class string really does, this tool resolves the whole string at once: classes that combine (a ring plus a shadow, rotate plus scale, a gradient's from/via/to) become one value, responsive and state prefixes become @media and :hover rules, and space-y-* becomes the child rule Tailwind uses.
How to Use This Tailwind To CSS
- Paste your Tailwind classes — Enter the Tailwind CSS utility classes you want to convert (e.g.,
flex items-center gap-4 p-6 rounded-xl bg-white shadow-lg). - View the vanilla CSS — The output updates as you type. Change the selector (for example
.card) and anything the converter does not recognise is listed under the input instead of being dropped. - Copy the CSS — Grab the complete CSS ruleset for use in projects that don't use Tailwind.
Checked against Tailwind's own compiler
On October 12, 2026 we compiled every class Tailwind CSS 3.4.17 generates with its default config (11,343 classes) and compared the converter's internal output with the compiler's for each one: all 11,343 match. We then loaded both into Chromium, Tailwind's compiled stylesheet on one element and the converter's plain CSS on another, and compared every computed property. Each class on its own: 11,341 of 11,344 elements identical; the three exceptions were container (identical once Tailwind's components layer is included, checked at four widths) and animate-ping/animate-pulse, whose copied CSS lacked the @keyframes rule. The converter now adds Tailwind's keyframes after any animate-* class. Including the children for space-*/divide-* and the ::before/::after boxes, 40 real-world class strings (buttons, cards, gradients, transforms, rings, variants) came out identical at 1300 px and 375 px, in light and dark mode, and with :hover and :focus forced. Some typical results:
| Classes | CSS written |
|---|---|
shadow-lg | box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1) |
space-y-4 | .element > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; margin-bottom: 0 } |
bg-blue-500/50 | background-color: rgb(59 130 246 / 0.5) |
ring-2 ring-blue-500 ring-offset-2 shadow-md | box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3b82f6, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) |
-translate-x-1/2 rotate-45 scale-110 | transform: translateX(-50%) rotate(45deg) scale(1.1) |
bg-gradient-to-r from-indigo-500 to-pink-500 | background-image: linear-gradient(to right, #6366f1, #ec4899) |
md:flex hover:bg-blue-600 | .element:hover { background-color: #2563eb } and @media (min-width: 768px) { .element { display: flex } } |
- It writes final values, not Tailwind's variables. Tailwind v3 builds colours, shadows, rings, transforms and filters out of
--tw-*custom properties so classes can combine. The converter does that combining for you and prints the result, which is whyrotate-45 scale-110becomes onetransformline. The trade-off: a class you add later in your own CSS will not merge with it the way another Tailwind class would. - The order is Tailwind's, not yours. Like Tailwind, the converter applies utilities in Tailwind's own order, so
px-2 p-4still gives 0.5rem side padding, andmd:rules come after the base rule. - It uses the default theme. Custom colours, spacing or screens from your own
tailwind.config.jsare not known; those classes are listed as unrecognised. Arbitrary values such asbg-[#0af]orw-[37%]work. - Not covered: plugins such as typography and forms,
@apply, custom variants,group-*/peer-*with names, and Tailwind v4's new utilities. Colours given as names inside brackets (text-[red]) are kept as written; Tailwind converts them torgb(), which renders the same.
Sources
Checked on .
- Tailwind CSS v3: Box Shadow (default values)
- Tailwind CSS v3: Space Between
- Tailwind CSS v3: Customizing Colors (default palette)
- Tailwind CSS v3: Hover, Focus, and Other States / Responsive Design
- tailwindcss 3.4.17 on npm (compiler used for the comparison; MIT licence, the source of the converter's value tables)
Common Use Cases
Exporting a Tailwind-built component to a non-Tailwind context: a CMS theme, a vanilla static page, an HTML email (where utility-class JIT compilation isn't available), a CodePen demo. Documenting the actual CSS a utility-heavy class string produces, so the next developer can reason about specificity, cascade, and browser support without expanding the classes in their head.
Debugging a styling issue where the rendered styles don't match expectations — seeing the resolved CSS rules side-by-side with the class string makes the conflicts visible. Migrating away from Tailwind on a project that's outgrown utility-first conventions and needs custom component CSS for maintainability. Each of those use cases benefits from a one-shot conversion rather than a class-by-class hover-and-copy.
Frequently Asked Questions
📖 Learn More
Related Article The Complete Guide to Tailwind CSS Colors → Related Article How to Convert Tailwind to CSS →Built by Derek Giordano · Part of Ultimate Design Tools