XML Formatter & Converter
Format, minify, and inspect XML so tags, attributes, and nesting are easier to read. It is useful for feeds, config files, SVG snippets, and API responses. It is free, needs no account, and adds no watermark to your result.
Loading text tools…
Working with other formats? Open your file workspace →
What people use it for.
What happens to your file.
The input is parsed as XML-like markup and rewritten with consistent indentation or compact spacing. Tag boundaries are respected so text inside elements is not split arbitrarily.
Where it stops: Invalid XML cannot always be repaired automatically. Namespaces, entities, and document type declarations should be checked in the system that consumes the file.
Everything you need, without a paywall.
Common questions.
Can it format SVG?
Yes. SVG is XML, so small SVG snippets can be formatted for readability.
Does minifying change the data?
It removes unnecessary spacing between tags but should keep element text intact.
Why does my XML fail?
Common causes are an unclosed tag, an unescaped ampersand, or mismatched nesting.
You might also need.
Format and beautify JavaScript, TypeScript, HTML, CSS, SQL, Python, PHP, JSON and XML online.
Strip HTML tags and convert markup into readable plain text while preserving meaningful line breaks.
Format, validate, beautify and minify JSON or convert JSON to XML, CSV and YAML using one online toolbox.
Parse a URL into protocol, hostname, port, path, query parameters, fragment and normalized URL fields.