JSON 포맷터
JSON을 읽기 쉽게 정리합니다.
CSS의 불필요한 공백을 제거합니다.
Uses a CSS parser to remove formatting safely. Required spaces in expressions and string contents are preserved.
자세한 방법과 예시는 영어로 제공됩니다.
A CSS syntax tree is parsed and serialized compactly. This removes optional formatting without naive substitutions that could damage strings, URLs, or calc expressions. File-size figures count UTF-8 bytes.
The rule .box { color: red; padding: 10px 20px; } becomes .box{color:red;padding:10px 20px}.
Remove formatting from a small stylesheet or check the size difference between a readable source and compact output. The parser-based approach handles CSS syntax more reliably than simply deleting every space.
Certain spaces are required by CSS grammar or are meaningful inside values and strings. Deleting them could change the stylesheet behavior.
It can reduce text size, but loading performance also depends on delivery compression, caching, render-blocking styles, and the rest of the page. Compare the actual transferred output in your browser tools.