NewPlus, API and MCP are live — run 175 tools from your own stack.
100www

Tool 209 · C04 · Encoding / Dev · Updated Nov 2026

JSON / YAML Converter

Convert between JSON, YAML, TOML and XML with clear error positions instead of silent guesses.

Browser Free No sign-up
How it works
100www.dev/tools/json-yaml-converter?f=json&t=yaml
Input · JSON
Output · YAML
Converted output appears here.

Conversion happens locally with JSON, YAML, TOML and XML parsers. Nothing is uploaded. Format-specific features (anchors, comments, attributes) can be lost in a round trip.

Keep the result

Share a reproducible link or turn this target into an email monitor.

What it does

Configuration formats describe similar data with different syntax and different type systems. This converter moves between JSON, YAML, TOML and XML, and reports the line where parsing fails. It is a formatting tool, not a schema validator.

How it works

JSON has objects, arrays, strings, numbers, booleans and null. Keys are strings and must be quoted. Comments and trailing commas are invalid. A parser error usually points at the exact line and column.

YAML is indentation-based and much richer: anchors, aliases, multi-document streams, timestamps and unquoted scalars. That flexibility is also a trap. YAML 1.1 treats yes/no/on/off as booleans, so a value may not mean what it looks like.

TOML uses tables and explicit types. It maps cleanly to JSON objects but cannot represent null and has no array-of-mixed-types concept. XML is a document format; converting it to JSON requires choices about attributes, text nodes and repeated elements.

Conversion can be lossy. YAML anchors are expanded, comments disappear, number precision may change, and duplicate keys collapse. JSON numbers beyond 2^53 lose precision in JavaScript unless handled as strings or BigInt.

Never parse untrusted YAML with a loader that can instantiate objects. Use a safe schema. The same applies to XML: disable external entities to avoid XXE. This tool parses data, not code.

When to use it

  • Turn a JSON API response into a readable YAML fixture.
  • Convert a Kubernetes fragment into JSON for a patch.
  • Find the line where a hand-edited config stopped parsing.
  • Compare the same data in two formats before a migration.

Glossary

YAML anchor
A reusable node referenced elsewhere with an alias.
TOML
A minimal configuration format with explicit tables and types.
Scalar
A single value: string, number, boolean or null.
XXE
XML external entity attack, enabled by unsafe parsers.
Lossy conversion
A transformation that drops information such as comments or anchors.

Frequently asked questions

Why did my YAML boolean change?+

YAML 1.1 treats some unquoted words as booleans. Quote the value or use a 1.2 parser. This is a common cause of surprising config changes.

Are comments preserved?+

No. Comments are not data, so JSON and TOML outputs drop them. Keep the source file if comments matter.

Can XML be converted without losing structure?+

Not perfectly. Attributes, text nodes, namespaces and repeated elements need conventions. A generic conversion is convenient but not round-trip safe.

Why do large numbers change?+

JavaScript numbers are doubles, exact only up to 2^53. Use strings for IDs and big integers, or a parser with arbitrary precision.

Is my config uploaded?+

No. Parsing happens locally. Still, avoid pasting files containing secrets into any web page.

API & MCP

No API endpoint

This tool runs entirely in your browser. It is not available over the REST API or MCP.

Shareable result

https://100www.dev/tools/json-yaml-converter?v=%7B%22name%22%3A%22100www%22%2C%22tools%22%3A80%7D

100www

100www engineering

Editorial

Reviewed by Steve · · Report an error

Tested from the 100www probe network; results vary by location and network.

Related comparisons