Tools · Developer Tools

XML Formatter, Validator & Viewer

Format, minify, validate, search, and explore XML in this browser. XPath testing stays local. DTDs are not loaded.

Formatting, validation, the tree, and XPath run in this browser. DTDs, external entities, and remote schemas are rejected. XML is not uploaded. Convert to JSON opens the Universal Data Converter. API: None.

How to format XML

  1. Paste XML or upload a .xml or .txt file from this device.
  2. Format, minify, or validate. Open Tree to copy an XPath.
  3. Test an XPath expression to list matches. Convert to JSON uses the Universal Data Converter.

FAQ

Is my XML uploaded to a server?

No. Parsing, formatting, validation, search, and XPath run in your browser. The file is not uploaded to DevNestro.

Are DTDs or external entities processed?

No. DOCTYPE, ENTITY declarations, XInclude, and external stylesheets are rejected so XXE payloads cannot load files or URLs.

What can the XPath tester run?

Location paths such as /root/item, //title, @id, [1], and [@id='value']. document(), custom functions, and script extensions are blocked.

How large a file can I format?

The default import limit is 20 MB. Larger files are rejected rather than truncated.

How do I convert XML to JSON?

Use Convert to JSON to hand the payload to the Universal Data Converter. This page does not ship a second conversion engine.

Does the tree copy a path?

Yes. Expand a node and copy its XPath, such as /catalog/book[1]/title or /catalog/book[1]/@id.

Read the original guide: Format, validate, and query XML without loading a DTD.

An unhandled error has occurred. Reload Dismiss

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.