Data

Format and inspect structured data like JSON and XML.

Data Formatting & Validation

Format and validate JSON, or explore and edit XML structure, both directly in your browser.

JSON Formatter

Format, validate, inspect, and convert JSON.

Format JSON

XML Viewer

Inspect XML, explore its structure, and edit supported values.

View XML

Choosing between JSON and XML tools

Choose JSON Formatter for data written as JSON objects and arrays, such as a saved API response or application configuration. Choose XML Viewer for documents organized with XML elements and attributes. The format of your source determines the appropriate starting point.

Formatting can make a dense JSON document easier to read, while exploring an XML tree helps reveal nested elements. Both approaches help you find a value in its structural context instead of searching through an undifferentiated block of text.

Working thoughtfully with structured data

A document can be syntactically valid without containing the values your application expects. Read field names, nesting and repeated entries together, and distinguish a formatting change from an actual change to the data.

These tools process the supplied content locally in your browser. Work on a copy when inspecting or editing a document, and check the result before using it elsewhere. Successful parsing is not a guarantee that the document meets an external schema or a particular business rule.