JS
var a=1; // init
Clean
var a=1;
Developer Tools
Strip single-line and block comments from common languages such as JS/TS, Python, CSS, and HTML/XML locally in your browser, and compress leftover blank lines where possible.
Favorite this tool
No favorite storage mode has been selected.
Quick actions
Copy this tool URL or open the system share sheet on a supported device.
开发工具
等待输入
JS
var a=1; // init
Clean
var a=1;
Simple regex can mis-handle // inside URLs or /* inside strings. Heuristics reduce that risk, but review complex cases manually.
Tools
Continue with another translated tool for a nearby task.
JSON Minifier
Minify formatted JSON into a compact single line in your browser. Syntax is checked before output—useful for smaller configs, API payloads, and local storage.
CSS Minifier
Minify CSS locally by removing extra whitespace and comments. Useful for quick size cleanup of static snippets before release.
HTML Minifier
Minify HTML fragments locally by removing extra whitespace and line breaks. Useful for template cleanup and size comparison without uploading markup.