CSS Formatter

Format and indent CSS code.

body{margin:0;padding:0}.container{display:flex;align-items:center;gap:8px}
Your file never leaves this browser tab — everything runs locally on your device.

How to use css formatter

  1. Paste your CSS into the editor.
  2. Click "Format CSS".
  3. Copy or download the cleanly indented result.

Common use cases

  • Making minified CSS readable for debugging in dev tools.
  • Standardizing formatting across a stylesheet before a code review.
  • Cleaning up CSS copied from a browser's computed styles panel.

Related tools

Frequently asked questions