XML formatter and validator
Paste XML to indent it and check that it's well-formed. A missing or mismatched tag is reported with its line and column instead of being formatted into something misleading.
What it does
- Checks that the XML is well-formed before formatting it
- Compare two XML documents side by side, after laying both out the same way
- Errors give the line and column, and the line is highlighted
- Keeps comments, CDATA sections and text mixed with tags, such as <p>Hello <b>world</b></p>
- Indent with 2 spaces, 4 spaces or tabs
- Large files format in a background thread, so typing never freezes
- Copy the result or download it as a .xml file
Questions
- Does it check against a schema (XSD)?
- No. It checks that the XML is well-formed: tags match, attributes are quoted and the document has one root element.
- Will it change my text content?
- No. Elements that contain text keep it on one line, so mixed content and whitespace inside text are left alone.
Other formatters
A private formatter for the formats you paste every day
Paste JSON, YAML, Mermaid, XML, SQL and Markdown on the left and get it tidied on the right as you type. Errors name the line and column. It formats and checks; it never converts one format into another.
What it does
- Several formats in one place. Each has its own page and its own remembered settings.
- Clear errors. They point at the line and highlight it in the input.
- Copy or download. Downloads use the right file type for each format.
- Smooth on big pastes. Formatting runs in a background worker, so typing stays responsive. Mermaid diagrams are drawn on the page itself.
- Extras where they help. Zoom and pan for Mermaid diagrams, a rendered preview for Markdown, and a dialect picker for SQL.
Questions
Is my data sent to a server?+–
No. Formatting runs in your browser, on your own device. What you paste is kept in memory only: it is never uploaded or saved.
Can it convert JSON to YAML, or other formats?+–
No, on purpose. Each page formats one format and keeps it that format.
What happens with invalid input?+–
You get an error with the line and column instead of a half-formatted result. JSON is checked strictly, so comments and trailing commas are reported.
Is anything remembered between visits?+–
Your settings (like the SQL dialect) and how you arranged the panes are remembered in your browser. The text you paste is not.