Skip to content

CSS Formatter

Reformat stylesheets as expanded, nested, compact, or compressed CSS, with options to sort declarations and keep comments.

The problem it solves

Minified or inconsistently written CSS is hard to read and review; reformatting it by hand is tedious.

Included in the app for
  • macOS
  • Windows
  • Linux
CSS Formatter formatting a stylesheet

Features

  • Four output styles #

    Switch between expanded, nested, compact, and compressed output for the same input.

  • Sort declarations #

    Order the declarations in each rule so related properties are easy to find.

  • Preserve comments #

    Keep or drop comments in the formatted result.

Private by design

  • Your code and data stay on your machine: no stranger’s server sees them, and no AI trains on them.
  • Every tool works offline. The only network use is checking for updates.
  • Free to use with no ads or paywalls, ever. Source available on GitHub.