Developer Tools
Tailwind to CSS Converter
Paste any Tailwind class string and get the equivalent plain CSS. Per-class breakdown and one combined rule block for any selector.
Paste any string from a class="..." attribute. Variants like md:, hover:, and dark: are kept as notes; the combined CSS shows the base classes only.
Examples
Output format
Combined CSS
Plain CSS for the base classes
.element {
border-radius: 1rem;
border-width: 1px;
border-color: #e5e7eb;
background-color: #ffffff;
padding: 1.5rem;
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}Per-class breakdown
Each Tailwind class and its CSS
rounded-2xlborder-radius: 1rem;borderborder-width: 1px;border-gray-200border-color: #e5e7eb;bg-whitebackground-color: #ffffff;p-6padding: 1.5rem;shadow-mdbox-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
Recognized
6
With variants
0
Unrecognized
0
The converter covers Tailwind v3.4 / v4 default utilities. Variant classes are shown for reference but are not folded into the combined CSS block (each variant needs its own selector, like @media (min-width: 768px) or .element:hover.).
How to use
- Paste the Tailwind class string into the input. Use a copied class="..." value, or click one of the Examples to get started.
- Edit the Selector field if you want the combined CSS block scoped to something other than .element (try .card, button.primary, or #header).
- Pick the Output format: CSS rule block wraps the rules in selector { ... }; Property list returns just the property: value; lines for nesting inside your own selector.
- Read the Combined CSS card for the merged stylesheet of every base (non-variant) class.
- Use the Per-class breakdown to inspect what each utility expands to, with notes for variants like md:, hover:, dark:, and !important.
- Click Copy CSS to lift the combined rule block to the clipboard.
About this tool
Tailwind to CSS Converter turns a string of Tailwind utility classes into the plain CSS rules they compile to. Paste anything you would put inside class="..." and the tool returns a per-class breakdown (each utility with its CSS properties) plus a single combined CSS rule block ready to drop into a stylesheet under any selector you choose. It covers the Tailwind v3.4 / v4 default theme: the spacing scale (m, mt, p, gap, space, scroll-m, inset) on the quarter-rem base step, sizing utilities (w, h, min-w, min-h, max-w, max-h, size) with keywords like full, screen, fit, min, max and the standard fraction tokens (1/2, 2/3, 5/12), typography (font-sans/serif/mono, font-thin through font-black, the text-xs to text-9xl scale with bundled line-height, leading and tracking), the complete color palette across 22 hues and 11 shades for text-, bg-, border-, ring-, and outline-, border widths and styles by side, the rounded-* corner radius scale on every corner, shadow sizes, opacity, z-index, grid (grid-cols-N, col-span-N, row-span-N), flex direction/wrap/align/justify, position keywords with top/right/bottom/left/inset, aspect ratio (square, video, arbitrary values), object-fit and object-position, cursor, user-select, pointer-events, transitions and durations, blur, and the SR-only utility. Arbitrary values like p-[14px], text-[#bada55], or w-[42rem] are passed straight through. Negative spacing (-mt-4), opacity modifiers (bg-blue-500/50), and the ! important prefix are all handled. Variant prefixes like md:, hover:, dark:, and focus-visible: are recognized and tagged with the selector or media query they target so you know how to scope them. Useful for migrating off Tailwind, recreating a component in a project that does not use it, debugging a confusing class string, or learning what a single utility actually does. Everything runs in your browser. No code is uploaded.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
CSS Formatter
Beautify minified CSS with indent, brace style, and sort options.
Open tool
DeveloperCSS Minifier
Compress CSS with comment, whitespace, hex, and zero-unit optimizations and a live byte-savings readout.
Open tool
ConverterPixels to REM Converter
Bidirectional pixel and rem or em converter with batch mode and a reference chart.
Open tool
ConverterCSS Unit Converter
Convert between every CSS length unit with configurable root, viewport, and percent reference.
Open tool
DeveloperTailwind Color Finder
Browse, search, and reverse-lookup the full Tailwind CSS color palette.
Open tool
ConverterHEX to RGB Converter
Convert HEX, RGB, RGBA, and HSL with a live preview.
Open tool