Paste a minified stylesheet or a block of CSS written on one line and get readable rules: each property on its own line, a space after every colon, media queries and nested rules indented, and selector lists split one per line. Strings, url() values and comments come through unchanged. It works as you type and stays in your browser.
31 lines
Formatting runs in your browser. What you type never leaves this device.
One declaration per line with consistent "property: value;" spacing
@media, @supports, @layer and nested rules indented level by level
Selector lists on separate lines, or kept on one line if you prefer
Strings, url() and data: URIs, calc() and comments left exactly as written
Indent with 2 spaces, 4 spaces or tabs, and a blank line between rules
Copy the result or download it as a .css file
WordPress and Shopify themes often ship style.min.css. Format it to find the rule that sets a colour or spacing before overriding it.
Styles copied from the browser come out on one line. Formatting them makes it easy to see which property is overriding another.
Normalise indentation and spacing in a hand-written stylesheet so diffs in review show only real changes.
The formatter does not reorder properties, remove duplicates, add vendor prefixes or check that values are valid. SCSS and Less files with plain nesting format well, but // line comments are not recognised as comments. To shrink CSS for production, use the CSS Minifier instead.
HTML Formatter
Beautify and indent HTML; keeps pre and script content intact
CSS Minifier
Minify CSS to reduce file size
CSS Playground
Try CSS against live HTML as you type
Diff Checker
Compare text differences
CSS Gradient Generator
Linear, radial and conic gradients with many colour stops, CSS or Tailwind
Box Shadow Generator
Layered CSS box-shadows, inner shadows and glows with a live preview
JSON Formatter
Format and validate JSON
JSON Sort Keys
Alphabetize JSON keys at every level
JSON Flatten
Nested JSON to dot-path keys
JSON Unflatten
Dot-path keys back to nested JSON
Built by Edesy
Edesy builds AI products for Indian businesses. Start self-serve, no demo call needed.
AI agents that answer and make phone calls 24/7. Handle appointments, inquiries and support in Indian and global languages.
₹50 free credit. No demo call needed.