首页
Tom Utilities

XML 压缩

XML 与 YAML 工具

删除 XML 标签之间的空白,生成最小的载荷。

输入

结果

使用方法

How to minify XML

Press Minify to strip indentation. Whitespace inside text nodes is preserved.

  1. Paste XML into the input editor.
  2. Press Minify.
  3. Copy the compact output.

常见问题

Will it break my text content?

No. Only whitespace between tags is removed, text inside elements is untouched.

Does it keep comments?

Yes, comments and processing instructions are preserved.