Tailwind Class Converter
Converteert CSS-declaraties naar Tailwind utility klassen en terug met schaalwaarden van Tailwind v4. Breidt padding en margin shorthand uit, valt terug naar willekeurige waarden buiten schaal en toont alles wat niet kon worden geconverteerd.
🔒 Deze tool werkt volledig in je browser. Je bestanden worden nooit naar een server geüpload.
Line by line
| Input | Result |
|---|
Values come from the Tailwind v4 default theme, read from the installed version rather than typed from memory. If your project customises its theme, the class names are right but the numbers may not be — and v3 differs from v4 on several scales, most noticeably border radius. Nothing is uploaded.
How Tailwind Class Converter works
- Open Tailwind Class Converter and review the example state before entering your own values.
- Enter or select the information needed for Tailwind Class Converter.
- Review the result and adjust the inputs if you want to compare another case.
Converts CSS declarations to Tailwind utility classes and back, using scale values read from Tailwind v4 itself. Expands padding and margin shorthand, falls back to arbitrary values off the scale, and lists anything it could not convert instead of discarding it. The interactive workspace runs in your browser, so you can review the result without creating an account.
FAQ
What is Tailwind Class Converter used for?
Converts CSS declarations to Tailwind utility classes and back, using scale values read from Tailwind v4 itself. Expands padding and margin shorthand, falls back to arbitrary values off the scale, and lists anything it could not convert instead of discarding it.
Do I need an account?
No. The tool is available directly in the browser without an account or sign-up.
What should I do if the result looks unexpected?
Check the entered values and compare them with the guidance shown in Tailwind Class Converter. Use the result as a planning aid and verify important decisions independently.