Minify & Beautify
Squash code down to the smallest size, or expand it back into something readable. Works on CSS, JSON, HTML, XML and SQL.
JavaScript is handled conservatively. Only comments and
extra whitespace are removed, and strings are left alone so the code always
still runs. Proper minification — renaming variables and removing unused
code — needs a full parser, so use Terser or esbuild in your build for that.
Expect around 20 to 40% saved here rather than 50 to 60%.