PrivTab

จัดรูปแบบและย่อ CSS

จัดรูปแบบหรือย่อ CSS

ทำงานในเบราว์เซอร์ · ไม่ต้องอัปโหลด

ขณะนี้เครื่องมือและคำแนะนำในหน้านี้ยังเป็นภาษาอังกฤษ แต่ทำงานเหมือนกันทุกประการ: ทุกอย่างทำงานในเบราว์เซอร์ของคุณ

Make it
  • ไม่มีสิ่งใดออกจากอุปกรณ์ของคุณ
  • เซิร์ฟเวอร์ไม่จำกัดขนาดไฟล์
  • ไม่ต้องสมัคร ไม่มีลายน้ำ
  • ฟรี

How to format or minify CSS

  1. Paste your CSS or open a .css file.
  2. Choose readable (beautify) or small (minify).
  3. Copy or download the result.

Safe minifying

  • Comments are removed, except those starting with /*! (usually licenses).
  • Text in quotes is never changed, and spaces that matter, such as around + and - in calc() or before ":hover" in "a :hover", are kept.
  • The last semicolon before } and spaces around { } ; , and > are dropped.

Beautifying

Readable CSS is produced by js-beautify, a widely used open-source formatter: one declaration per line, consistent indentation and a blank line between rules.

คำถามที่พบบ่อย

How much smaller does minified CSS get?

Typically 15 to 30% before compression. Your server's gzip or Brotli compression saves much more on top.

Is my CSS uploaded?

No. Everything happens in your browser, and the page is blocked from uploading anything.