XML Formatter Utility
Pretty-print or minify XML, keeping comments, CDATA and text values intact.
Why use this tool?
Pretty-print or minify XML using a real XML parser, keeping comments, CDATA, the XML declaration and text values intact.
How to use it
- Paste your XML.
- Click Format / Indent or Minify.
- Copy the result; parse errors are shown if the XML is malformed.
Related tools
- SQL Query Beautifier - Format SQL with consistent keyword case and line breaks, leaving string literals untouched.
- Base64 Encode/Decode - Encode text to Base64 or decode Base64 back to text, with correct UTF-8 handling for emoji and non-Latin scripts.
- Regular Expression Tester - Test JavaScript regular expressions live, with highlighted matches and capture groups.
- JWT Claims Token Decoder - Decode JWT header and payload, check expiry, and verify HS256/384/512 signatures locally.
- UUID Generator - Generate random RFC 4122 version 4 UUIDs in bulk.
- Unix Timestamp Converter - Convert Unix epoch timestamps (seconds or milliseconds) to dates and back.