CSS & HTML Minifier

Minify CSS, HTML, SVG and JSON to cut file size, or beautify minified code to read it. Shows bytes saved, keeps licence comments and leaves Shopify Liquid tags untouched.

Runs locally — nothing is uploaded

Input

Output

How to use CSS & HTML Minifier

  1. Paste your code — the language is detected automatically.
  2. Choose Minify or Beautify and the options you want.
  3. Copy or download the result and check the bytes saved.

FAQ

Will it break my Liquid?

No. {% %} and {{ }} blocks are protected before any whitespace is touched, so theme files keep working.

Does it minify JavaScript?

No. Safe JS minification needs a real parser; use your build tool (esbuild, Terser) for scripts. Inline <script> blocks in HTML are left as they are.

About the CSS & HTML Minifier

Shrink stylesheets and inline SVG icons before shipping, or beautify minified code to read it. Convert px values to rem with PX to REM Converter, validate JSON with the JSON Formatter and inline tiny images with Image to Base64.

Also useful: HTML Entities Encoder · Markdown to HTML

Popular searches

People find CSS & HTML Minifier by searching for:

  • css minifier
  • html minifier
  • minify css online
  • css beautifier
  • svg minifier
  • minify shopify css
  • compress html