Skip to content
tooljig
PricingSecurity
tooljig

Exact tools. Nothing leaves your device. Small, exact tools for everyday work. Most run entirely in your browser.

Instruments

  • Text tools
  • Developer tools
  • Calculators
  • Date & time
  • Converters
  • Generators

Files

  • PDF
  • Image
  • Video & Audio
  • Data
  • Web

Tooljig

  • Pricing
  • Security
  • Dashboard
  • About
  • Contact
  • Privacy
  • Terms
© 2026 TooljigFiles processed in the cloud are deleted automatically
Index / Developer tools / T-49

T-49 · Developer tools

XML Formatter and Validator

Pretty-print or minify XML with 2 or 4 spaces or tabs, and check it is well-formed. Errors show the line and column of the first problem.

  • Runs in your browser
  • Nothing uploaded
  • No account
Instrument T-49 · XML FormatterLocal
Mode

Well-formed XML · 369 characters

About this instrument

What it does

Paste XML to indent it neatly or squeeze it onto one line. The input is checked for well-formedness as it is parsed: mismatched or unclosed tags, unquoted or duplicate attributes, text outside the root element and more are reported with the line and column where the problem is. Comments, CDATA sections, processing instructions and the DOCTYPE are kept, and text content is never changed.

How to use it

  1. Paste your XML.
  2. Choose pretty-print (with an indent) or minify.
  3. Fix any reported error, then copy or download the result.

Limits and notes

Good to know

  • This checks well-formedness only: it does not validate against a DTD or XML Schema, and entity references such as & are passed through as written rather than expanded or checked.
  • Elements that mix text with child elements, like <p>Hi <b>there</b></p>, are kept on one line exactly as written, so whitespace inside them is never changed. Whitespace-only text between elements is treated as indentation and replaced.

FAQ

Common questions.

01What does well-formed XML mean?+

Every start tag has a matching end tag in the right order, attribute values are quoted, attribute names are unique within a tag, and there is exactly one root element.

02Does minifying change my data?+

Minifying removes only whitespace between tags (and comments, if you ask). Text inside elements that contain text, and everything in CDATA sections, is left exactly as it was.

03Is my XML uploaded?+

No. The parser runs in your browser, so configuration files and API responses stay on your device.

Related instruments

  • T-05JSON FormatterFormat, validate and minify JSON with clear error messages that point to the line and column. Runs entirely in your browser.Local↗
  • T-38HTML Encode / DecodeEscape text for HTML with entities such as &lt; and &amp;, or decode named, decimal and hex entities back to text. Safe, local and instant.Local↗
  • T-50CSS MinifierMinify CSS to cut file size, or beautify it with one declaration per line. Strings, url() values and calc() spacing are kept safe. Shows % saved.Local↗