Skip to content
Toolbento

CSS formatter

Beautify CSS rules and media queries, or minify CSS with strings and comments handled safely.

Everything stays on this device

CSS formatter runs in your browser. The text and files you add are worked on by this device and are never uploaded, to us or to anyone else.

  • No uploads. The page is blocked from sending data to any other server.
  • No account, cookies, ads or tracking.
  • Fonts and scripts come from toolbento.app itself, so the page makes no requests to other companies.
  • Closing the tab clears your text and files from memory.

Read the full details on the privacy page.

Output

Missing a feature or found a bug in CSS formatter? Tell me on X (@_andrewtran) or by email.

How to use CSS formatter

  1. Paste your CSS in the input pane.
  2. Choose 2 spaces, 4 spaces or Minify.
  3. Copy the result or download it as a file.

Questions and answers

Is my data sent anywhere?

No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.

What does minifying remove?

Comments, line breaks, spare spaces and the last semicolon in each block. Text inside quotes is never touched.

Are licence comments kept?

Yes. A comment whose first character after the opening is an exclamation mark is kept. That is the usual way to mark a licence notice.

Esc

Loading tools