Skip to content
Minify

HTML, CSS, JSON, XML minifier

Minify and beautify for HTML, CSS, JSON, XML. Typical 30-50% size reduction on HTML/CSS sources, up to 70% on pretty-printed JSON. Inline compression stats. For JavaScript you need an AST-based minifier (Terser, esbuild, swc) integrated in the build pipeline: this tool covers languages that can be handled with deterministic text-replacement rules.

How to use the minifier

  1. 1

    Paste the source

    HTML, CSS, JSON or XML. For HTML the tool preserves the content of

    ,