Tailwind ToolsNo account required
Tailwind Class Sorter
Sort Tailwind classes into a consistent order and remove duplicates without changing variants.
Open the class sorter workspaceTailwind workspace
Use Class Sorter
Add your input, choose the available settings, and review the result before using it.
html
1
Sorted Tailwind classes
flex p-4 text-white bg-slate-900 rounded-lg items-center md:p-8 hover:bg-slate-800Exact duplicate classes are removed. Variants such as md:, hover:, and focus: stay attached to their utility.
Simple workflow
How to use Tailwind Class Sorter
- 01
Add your input
Enter values, paste content, or choose files in the workspace.
- 02
Choose your settings
Adjust the available options to match the result you need.
- 03
Review the result
Check the output before you copy or download it.
Before you use the result
Review generated code and styles in your own project context before using them in production.
Tailwind Class Sorter questions
No. Variant prefixes are preserved while the base utilities are ordered consistently.
Related Tools
Continue the workflow with tools that pair naturally with this one.