← All tools

Tailwind to CSS Converter

Map common utilities and supported variants into scoped CSS; inspect unsupported classes separately.

tailwind-to-cssLOCAL WORKSPACE

Enabling local controls…

Tailwind v4 workbench

Preview uses native CSS, not a Tailwind runtime. Every change updates the result locally. Text and settings stay in page memory.

Limits: 16,000 UTF-8 bytes per text area, 1,000 classes, 24 layout items, 8 cards/shadow layers, 20 × 12 table cells. No input HTML, scripts, URLs or commands execute.

Converters use common documented rules. Arbitrary values and modifier characters are preserved, but unknown tokens are marked unsupported. Real cascade, custom themes and plugins require a Tailwind build.

References checked: · Theme · Responsive design · v4 upgrade guide · Colors

Preview & output

Result updated locally. Review before using in your project.

Supported base utilities only; modifiers are shown in exported CSS.

Mappings / reference (7)
Current settings: utility mappings and values
ClassCSSStatus
flexdisplay: flexmapped
items-centeralign-items: centermapped
gap-4gap: 1remmapped
p-4padding: 1remmapped
rounded-lgborder-radius: 0.5remmapped
bg-slate-100background-color: oklch(96.8% 0.007 247.896)mapped
text-slate-900color: oklch(20.8% 0.042 265.755)mapped
Classes

Preview: first 32,000 characters. Copy, download and expanded text retain all content. Select complete text if copying fails.

flex items-center gap-4 p-4 rounded-lg bg-slate-100 text-slate-900
Expand complete selectable text
flex items-center gap-4 p-4 rounded-lg bg-slate-100 text-slate-900

HTML

Preview: first 32,000 characters. Copy, download and expanded text retain all content. Select complete text if copying fails.

<div><p>Supported base utilities only; modifiers are shown in exported CSS.</p></div>
Expand complete selectable text
<div><p>Supported base utilities only; modifiers are shown in exported CSS.</p></div>

CSS

Preview: first 32,000 characters. Copy, download and expanded text retain all content. Select complete text if copying fails.

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.gap-4 {
  gap: 1rem;
}

.p-4 {
  padding: 1rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.bg-slate-100 {
  background-color: oklch(96.8% 0.007 247.896);
}

.text-slate-900 {
  color: oklch(20.8% 0.042 265.755);
}
Expand complete selectable text
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.gap-4 {
  gap: 1rem;
}

.p-4 {
  padding: 1rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.bg-slate-100 {
  background-color: oklch(96.8% 0.007 247.896);
}

.text-slate-900 {
  color: oklch(20.8% 0.042 265.755);
}

How to use this tool

Edit the labelled controls to update a native CSS preview and copy or download Tailwind v4 output. Examples and reset stay in page memory.

When not to use it

No Tailwind runtime or full compiler. Converters support a documented common subset and list unknown utilities. Class conflicts and dark colors are suggestions requiring review in your built project. Input 16,000 UTF-8 bytes, 1,000 classes; no scripts or input HTML execute.