Structured Data
XML Minifier
Transform structured data with XML Minify and review the valid output. Enter the data, choose the formatting options, then validate and copy the result.
This tool runs open-source code from CyberChef by GCHQ (Apache License 2.0). See open-source credits.
XML Minifier removes non-significant formatting whitespace from well-formed XML.
<root><item>Ada</item></root> Processing runs in the browser.
Instructions
- Provide text or data for this tool.
- Use well-formed XML input.
- Check mixed content before removing whitespace.
- Validate the compact result in the target XML parser.
Example
Input: <root> <item>Ada</item> </root>
Settings: XML Minifier: Run the default XML minification.
Result: <root><item>Ada</item></root>
Limits
- XML Minifier: Whitespace can be significant in mixed XML content.
- XML Minifier: Minification does not validate a schema or external entities.
- XML Minifier: Processing stays in the browser.