Tailwind Class Sorter
Sort Tailwind CSS class strings in the recommended Prettier plugin order.
19 classes
19 classes sorted
Sort Order Groups
Layout (display, position)
Positioning (top/right/…)
z-index, overflow
Flexbox direction/wrap
Flex alignment
Gap, order
Grid
Width / height
Padding
Margin
Typography
Background / gradients
Text color
Borders / rounded / ring
Effects / opacity / blur
Transitions / animation
Interactivity
SVG fill/stroke
Tailwind Class Sorter — organize Tailwind classes in Prettier plugin order
The prettier-plugin-tailwindcss automatically sorts Tailwind utility classes into a consistent order based on their CSS property groups. This makes diffs cleaner, code reviews easier, and long class strings more scannable at a glance. The ordering follows the same logical progression as the CSS cascade: layout and positioning first, then box model, spacing, typography, colors, borders, effects, and finally transitions. This tool applies the same grouping logic client-side so you can sort any class string without needing Prettier installed.
Private & free — this tool runs entirely in your browser.
Recommended: IndieKit — Ship your Next.js startup in days.affiliate
Related Developer Utilities tools
RegExp Tester
Test regular expressions and inspect matches locally.
Regex Visualizer
Visual regex pattern diagram with live match highlighting and capture group annotations.
Subnet Calculator
Compute CIDR subnets, usable hosts, and network ranges.
Cron Parser
Translate cron syntax into plain English.
URL Parser
Break a URL into protocol, host, path, and query parts.
HTML Previewer
Paste HTML and see it rendered live in a safe, sandboxed preview.
HTTP Status Code Reference
Search and look up every HTTP status code and its meaning.
MIME Type Lookup
Find the MIME type for a file extension, or the extensions for a MIME type.