首页
Tom Utilities

通过合并空白和删除多余字符来减小 HTML 体积。

输入

结果

使用方法

How to minify HTML

Press Minify. Whitespace between tags is collapsed while text content keeps meaningful spaces.

  1. Paste HTML into the input editor.
  2. Press Minify.
  3. Copy the compressed output.

常见问题

Is minification safe?

Yes. Only whitespace between block level tags is collapsed, so rendering stays the same.

Does it remove comments?

HTML comments can be removed because they do not affect rendering.