Code and data

CSS Beautifier

Re-indent minified or messy CSS.

  • Free
  • Runs in your browser: nothing is sent
  • API: 120 runs a minute without an account
  • No sign-up
About CSS Beautifier

Turn a one-line or inconsistently formatted stylesheet into readable CSS with one declaration per line and nested indentation for media queries and other at-rules.

  • One declaration per line, two-space indentation
  • Handles nested at-rules such as @media and @supports
  • Runs in your browser
Questions · 1

Does it reorder my rules?

No. Order matters in CSS, so rules and declarations stay exactly where they were.

Use it from code · API

Input: text. No account needed within the free limit; a token with tools.tool.run raises it.

curl -X POST https://openvibe.tools/api/v1/tools/cssformat/run \
  -H 'Content-Type: application/json' \
  -d '{"input":{"text":".a{color:red}"}}'

JSON Schema · OpenAPI · API docs