JSON YAML converter

Convert JSON, YAML, TOML, and XML in the browser, and keep the line number when a document fails.

Runs in browser

Use from your agent

Streamable HTTP at https://benchline.fabwaseem.com/mcp. No key. The tool name is convert_data_format.

mcp.jsonjson
1{
2 "mcpServers": {
3 "benchline": {
4 "url": "https://benchline.fabwaseem.com/mcp"
5 }
6 }
7}
tools/calljson
1{
2 "jsonrpc": "2.0",
3 "id": 1,
4 "method": "tools/call",
5 "params": {
6 "name": "convert_data_format",
7 "arguments": {
8 "text": "example",
9 "from": "auto",
10 "to": "json"
11 }
12 }
13}

How it works

Free converter for JSON to YAML, YAML to JSON, TOML, and XML to JSON. The source format can be detected automatically. Errors include a line and column. Conversion stays in the browser.

  1. 01

    Paste a document

    Leave the source on Auto, or choose JSON, YAML, TOML, or XML if the first line is ambiguous.

  2. 02

    Pick the target

    The other pane updates as you type. TOML refuses null and a root that is not a table.

  3. 03

    Copy or download

    A valid result can be copied or saved. An invalid one names the line and column.

FAQ