Minifier

Minify JavaScript, CSS, or HTML by removing whitespace and other unnecessary characters.

Large inputs run in a Web Worker. Use “mixed” for HTML with <script>/<style>.

Code minifier and formatter

Minification removes unnecessary whitespace and, where supported, comments from source code to reduce its size. Formatting expands compact code into a more readable layout.

Choose a supported language and action, then review the output before copying it. Formatting and minification are useful for inspecting or preparing code, but the result should still be tested in its target project.

When to use it

Use this tool for quick checks on code snippets and small text-based assets.