CSS → Tailwind Converter
Paste CSS declarations and get the equivalent Tailwind CSS utility classes instantly. Supports spacing, typography, flexbox, grid, colors, borders, shadows, and more. 100% client-side — your CSS never leaves the browser.
This tool converts CSS property/value declarations into equivalent Tailwind CSS utility classes. It covers the most common CSS properties: Flexbox, Grid, spacing (padding/margin), sizing, typography, borders, shadows, colors, positioning, and more.
How it works: Each CSS declaration is matched against a comprehensive mapping table.
Properties with exact Tailwind equivalents produce utility classes (e.g., display: flex → flex).
Properties without a direct equivalent are listed in the "Unmapped" section — use Tailwind's arbitrary value syntax
for those: className="[property:value]".
Supported properties: display, flexbox (direction, wrap, align, justify), grid (cols, rows, span), padding, margin, width, height, position, overflow, z-index, typography (size, weight, align, transform, decoration), borders, border-radius, box-shadow, opacity, transition, cursor, and more.
Limitations: Complex values (gradients, custom colors, calc(), media queries, pseudo-selectors)
cannot be automatically converted. Tailwind's arbitrary value syntax [value] handles these cases.
Processing is entirely in-browser — no data is sent to any server.