How do I convert Tailwind CSS classes to standard CSS?
Paste your Tailwind utility classes (or a full class="..." attribute) and the tool instantly generates the equivalent standard CSS properties. It supports 500+ classes including spacing, layout, typography, borders, transforms, filters, and arbitrary bracket values like w-[300px]. Customize the CSS selector name in the output. Everything runs in your browser — your code never leaves your device.
flex items-center justify-between p-4 gap-2
display: flex; align-items: center; justify-content: space-between; padding: 1rem; gap: 0.5rem;
Tailwind CSS to CSS Converter
Paste Tailwind utility classes and get the equivalent standard CSS. Supports spacing, layout, typography, borders, transforms, filters, colors, and arbitrary values.
Supported Tailwind Classes
About Tailwind CSS to CSS Converter
- 500+ utility classes — converts layout, spacing, typography, borders, transforms, filters, and more.
- Arbitrary values — handles bracket notation like
w-[300px]andbg-[#1a1a2e]. - Responsive/state prefixes — strips
sm:,hover:,dark:etc. and marks them as comments. - Selector input — customize the CSS selector name for the output.
- Unrecognized tracking — classes without a mapping are flagged so you can handle them manually.
- Everything runs in your browser — no data is sent over the network.
Tips & Best Practices
Use this conversion to understand what Tailwind utilities actually generate
Converting Tailwind to CSS is a great learning tool. Seeing that `flex items-center gap-4` produces `display: flex; align-items: center; gap: 1rem;` builds understanding of both CSS and Tailwind simultaneously.
Tailwind responsive prefixes generate @media queries, not simple properties
Converting `md:flex lg:grid` produces two separate @media queries, not just two properties. The CSS output can be significantly more verbose than the Tailwind input, which is exactly why Tailwind exists.
Extract Tailwind-to-CSS for email templates and non-Tailwind projects
Email clients don't support utility-class CSS. Convert your Tailwind-styled component to plain CSS, then inline it for email compatibility. Also useful when contributing CSS to projects that don't use Tailwind.
Verify converted CSS doesn't include unsafe arbitrary values
Tailwind's arbitrary value syntax (e.g., [background:url(...)]) passes through to CSS directly. When converting Tailwind to CSS, audit any arbitrary values for unexpected URLs, JavaScript expressions, or data URIs that could pose security risks.
Frequently Asked Questions
How do I convert Tailwind utility classes to standard CSS?
Does the converter handle responsive and state prefixes like sm: and hover:?
What Tailwind classes are supported?
How are unrecognized classes handled?
Related Convert Tools
CSS to Tailwind Converter
Convert CSS to Tailwind utility classes instantly — 100+ properties including layout, spacing, typography, borders, and effects
SVG to JSX Converter
Convert SVG to JSX or a React/TypeScript component — camelCase attributes, style objects, forwardRef, memo, props spread
OpenAPI to TypeScript
Convert OpenAPI 3.x and Swagger 2.0 specs to TypeScript interfaces and types with $ref resolution, allOf/oneOf/anyOf, enums, and API operation types
JSON to Zod Converter
Convert JSON or JSON Schema to Zod validation schemas with $ref resolution, allOf/oneOf/anyOf, enum, format constraints, and required/optional fields