Choose HTML, CSS, or JavaScript so the tool applies the correct transformation, then paste the source into the input. Select Minify and inspect the output before copying or downloading it. The example below uses HTML, where safe spacing between tag attributes can be removed without changing its value. Use Beautify when you want the corresponding formatting operation instead of the minify mode.
The implementation deliberately preserves constructs that cannot be safely rewritten with its bounded scanner. JavaScript may therefore remain unchanged, and embedded script or style blocks prevent aggressive HTML rewriting. It does not run a compiler, bundle modules, rename variables, or verify program behavior. Keep your original file, compare the actual byte sizes, and run your project's checks before using the transformed source in a build.
Language: HTML
Input: <div class="box"></div>
Minify output: <div class="box"></div>
This implementation applies bounded whitespace transformations for HTML, CSS, and JavaScript. It protects constructs it cannot safely rewrite and may return unchanged source with a notice. It does not bundle modules or rename variables. Check the selected language and compare the actual result rather than assuming a button label promises a particular reduction.
Review the output and run your normal project checks before using it. The scanner is conservative and preserves sensitive constructs, but formatting is not a runtime correctness test. Keep an original copy for comparison. For a production pipeline requiring parser based optimization or bundling, use the project’s configured build tools.
Processing runs in your browser. Choosing Share uploads the selected tool state; anyone with the link can open it. Signing in to save sends content to your account library and records save history. Review the selection before either action. Closing the page does not delete those copies. Copying locally does not create a server share.
Savings depend on the exact input and the safe transformation available. Already compact code or protected constructs can remain unchanged; no percentage saving is promised. Compare the actual source and result sizes. Reducing whitespace is separate from HTTP compression, caching, module bundling, and removing unused application code.
Currently, the tool processes one file at a time per language tab. You can switch between HTML, CSS, and JavaScript tabs to minify each type separately.