What is this tool?
This tool formats (pretty-prints), minifies, and validates XML data. You can choose the indentation level. Invalid XML is highlighted with an error message. Supports CDATA sections, comments, and processing instructions.
How to Use
- Paste XML data in the input area.
- Click 'Format' to pretty-print or 'Minify' to compress.
- Select the indentation level (2 spaces, 4 spaces, or tab).
- Click 'Copy' to copy the output.
Examples
- Format a minified XML API response for readability.
- Minify XML for smaller file size.
- Validate XML syntax and check for errors.