Odin

HTML / CSS / JS Minifier

Minify HTML, CSS, or JavaScript by stripping comments and whitespace.

About this tool

Verbose HTML with comments and spaces adds bytes. This free HTML minifier compacts markup so snippets and email templates ship lighter. Paste HTML, minify locally, and copy the dense output—useful when you cannot run a full frontend build pipeline.

How to use

  1. Paste the HTML you want to compress.
  2. Run the minifier to strip unnecessary whitespace.
  3. Review that critical spacing in pre/code blocks still looks right.
  4. Copy the minified HTML to your project or ESP.

Frequently asked questions

Most markup is fine, but significant whitespace inside <pre> or inline text nodes can matter—spot-check the result.

Related tools