🧰Locly

Format and Minify CSS

Beautify or minify CSS in your browser

About This Tool

CSS Formatter beautifies or minifies stylesheets for readability or size. It does not apply styles to a live page beyond your paste box. Formatting is processed locally in your browser — CSS never leaves your device.

How to Use

  1. Paste CSS into the input
  2. Click Beautify or Minify
  3. Review the result
  4. Copy the formatted CSS
  5. Clear to format another stylesheet

Common Use Cases

  • Review: Indent rules before a PR
  • Ship: Minify small CSS snippets
  • Learn: Compare expanded vs compressed CSS
  • Docs: Pretty-print examples
  • Privacy: Format offline without cloud editors

FAQ

Q1: Is my CSS uploaded?

No. Formatting is processed locally in your browser.

Q2: Does Minify remove comments?

Yes — block comments are stripped during minify.

Q3: What if input is empty?

Formatting is blocked until you paste CSS.

Q4: Can I pair this with HTML Formatter?

Yes — use Locly’s HTML Formatter for markup and this tool for styles.

Related Tools