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

  1. Paste HTML with class/className attributes or raw class lists
  2. Click Sort Classes to reorder them
  3. View the sorted output with classes organized by category
  4. Copy the result and paste it back into your code

Related Tools

More Free Tools