Tailwind Class Sorter
Sort Tailwind CSS classes in the recommended order by category: layout, positioning, sizing, spacing, typography, colors, effects, and more. Handles class/className attributes and raw class lists.
How to Use Tailwind Class Sorter
The Tailwind Class Sorter organizes your Tailwind CSS utility classes in the recommended order. Paste HTML with class attributes or raw class lists and get them sorted by category: layout, positioning, sizing, spacing, typography, backgrounds, borders, effects, transitions, and interactivity. Consistent class ordering improves readability and makes diffs cleaner. Works with responsive and state variants (hover:, md:, etc.) by sorting on the base utility.
Step-by-Step Instructions
- Paste HTML with class/className attributes or raw class lists
- Click Sort Classes to reorder them
- View the sorted output with classes organized by category
- Copy the result and paste it back into your code
Related Tools
JSON Formatter and Validator
Format, validate, and pretty-print JSON with syntax highlighting.
Base64 Encoder and Decoder
Encode text to Base64 or decode Base64 strings back to plain text.
URL Encoder and Decoder
Encode special characters for URLs or decode percent-encoded strings.
HTML Entity Encoder and Decoder
Encode special characters as HTML entities or decode them back.