Paste XML and see it laid out with a clean 2 space indent. The browser parser checks the document is well formed first and reports the error when it is not.
Your files are processed in your browser, on your own device. Nothing is uploaded to a server.
An XML Formatter takes a tangled block of XML and lays it out with clean indentation so the structure is easy to read. This one runs in your browser with the parser built into it, costs nothing and uploads nothing. You also get a count of the elements in the document.
Paste your XML and the page hands it to the XML parser that ships with your browser, the same strict parser browsers use for XML documents. If the document parses, the formatter walks the tree and prints each element on its own level with a 2 space indent, then reports how many elements it found.
If the same week has you reading JSON as often as XML, the JSON Formatter gives JSON data the same treatment, and most developers keep both open during a migration.
Exports are the common case. A sitemap, an RSS feed or a settings file shipped by some tool often arrives as one unbroken line thousands of characters long. Format it and the entries fall into a list you can search with your eyes, which is how a missing URL or a stale entry gets spotted in minutes instead of never.
Service work is close behind. A SOAP response, an API payload in XML, an Android layout or a build file like pom.xml is all nesting, and the nesting is the meaning. Reading it flat means holding the structure in your head. Reading it indented means the structure sits on the page.
Error hunting gets easier for the same reason. Indentation is the fastest map of an XML document you can get, because depth shows parent and child at a glance, and a block that steps in too far or not far enough points at the spot where a tag was closed wrong.
This is the limit that matters most on this page, so it gets said plainly. The parser checks that your document is well formed: tags match, attributes are quoted, the document has one root element, and reserved characters are escaped. It does not check the document against a DTD or an XSD schema. A document can be perfectly well formed and still break the rules of the system that receives it. If you need schema validation, this is the wrong tool, and pretending otherwise would help nobody.
The browser parser reports the first error it meets and then stops. Expect to fix one fault, format again, and meet the next one if there is a next one. The wording of the message comes from the browser itself, so the same broken file can read a little differently in Chrome and Firefox. Treat the message as the parser talking, not as a diagnosis written by this page.
One caution covers mixed content. Most elements hold either text or child elements, and formatting those is safe. An element that mixes loose text with child tags is the delicate spot, because whitespace around loose text can be part of the content. Glance at those elements once after formatting. Tag names, attribute values and text pass through as parsed. Only the layout between elements is rewritten.
The parser and the formatter run on your device. Your XML is not sent to a ToolPeko server, not stored and not read by anyone here. XML files can carry order data, customer records or internal hostnames, and none of that has any business travelling for a formatting job. There is no account, no sign-up and no daily cap. A five-line snippet and a full sitemap get the same treatment.
It means the document follows the structural rules of XML: every tag is matched and nested properly, attribute values are quoted, there is one root element, and reserved characters are escaped. The parser checks those rules before any formatting happens.
No. This tool checks well-formedness only. Schema validation against an XSD or DTD needs a validator built for that job, with your schema file loaded into it.
The wording comes from each browser’s own XML parser, and parsers phrase their faults differently. The fault is the same. The message will point at the same broken spot in the document.
XML parsers halt at the first fault they cannot read past. Fix that spot, run the formatter again, and the parser will show you the next error if one is waiting.
This page sets no cap of its own. Very large documents depend on the memory and speed of your browser, the way any in-browser tool does.
No upload happens. Parsing and formatting run in your browser tab, and nothing is sent to or stored on a ToolPeko server.
Same rules as this one: free, in your browser, with nothing uploaded.
Paste messy JSON, get it neat and valid.
Check JSON and find the exact line that breaks it.
Squeeze JSON down to one tight line.
Open JSON as a tree you can fold and explore.
JSON rows turned into a CSV a spreadsheet can open.
A CSV file turned into clean JSON objects.
JSON rewritten as YAML for config files.
YAML config turned into JSON you can use in code.