DEVELOPER TOOLS

JSON, XML and YAML formatter●

Paste JSON, XML or YAML. Format it, validate it, or convert it to another format. Errors show the exact line.

The result updates as you type. Your text never leaves this page.

Result

Your text is parsed on your device. Nothing is uploaded, logged or stored.

Format, check and convert in one place

Pretty-print minified JSON, XML or YAML to read it, minify JSON and XML to save space, or let the validator point at the exact line where a bracket, tag or indent is wrong. Convert XML or YAML to JSON and back when two systems speak different formats.

Base64 converter →

Common questions

Is my text uploaded anywhere?

No. It is parsed in your browser and never sent to a server. The YAML reader is a small script that is downloaded once and then runs on your device.

Why is my JSON invalid?

The usual causes are a trailing comma, single quotes, an unquoted key or a comment. The error message names the line and column.

Does sorting keys change the data?

Only the order of keys in each object. Values and arrays keep their order. Programs that read JSON do not depend on key order.

Can it handle large files?

Files of a few megabytes work fine. Very large files depend on your device memory.

How is XML turned into JSON?

Each tag becomes a key. Attributes become keys that start with @, text next to attributes becomes #text, repeated tags become a list and empty tags become null. All values stay text, so 1 and true are not guessed into numbers. JSON to XML reverses the same rules.

Does it check XML against a schema?

No. It checks that the XML is well formed: tags match, attribute values are quoted and entities are valid. Schema (XSD) and DTD validation are not included, and entities declared in a DOCTYPE are not expanded.

Are comments kept when I format YAML?

No. YAML is read into data and written back, so comments, anchors and the original quoting style are not kept. Use Format YAML when you only need clean indentation and valid structure.

Can numbers lose precision?

Formatting JSON keeps every digit exactly as written. Converting JSON to YAML reads numbers as JavaScript numbers, so integers beyond 15 digits can lose precision. Keep such values as strings.