MyJSON
Conversion

Convert (YAML / XML / CSV / TOML / NDJSON)

One paste, every text format.

Convert tab in the toolbar.

Supported formats

JSON ↔ YAML (already in the mode toggle), JSON ↔ XML, JSON ↔ CSV, JSON ↔ TOML, JSON array ↔ NDJSON. Each conversion is fully local; XML uses fast-xml-parser, CSV uses papaparse, TOML uses @iarna/toml.

Smart-paste

Pasting curl commands, base64-encoded JSON, or URL-encoded JSON triggers a banner offering to decode/extract automatically. NDJSON is detected when the parser fails and a banner offers to wrap as a JSON array.

Flattening (CSV)

When converting to CSV, nested object fields flatten to dot-paths (`user.address.city`). Arrays inside rows become JSON-encoded cells so the data round-trips.

Examples

JSON → CSV for a spreadsheet

You have an array of API records; you want to open them in Excel.

  1. Paste the JSON array.
  2. Convert tab (or use the JSON to CSV landing page directly).
  3. Click `Export CSV`.
Input (json)
[
  { "id": "inv_001", "customer": "Acme", "amount_cents": 19900, "status": "paid" },
  { "id": "inv_002", "customer": "Globex", "amount_cents": 42000, "status": "open" },
  { "id": "inv_003", "customer": "Initech", "amount_cents": 9900, "status": "void" }
]
Output (csv)
id,customer,amount_cents,status
inv_001,Acme,19900,paid
inv_002,Globex,42000,open
inv_003,Initech,9900,void

NDJSON → JSON array

You have a Cloudflare log dump in NDJSON and want to query it.

  1. Paste the log.
  2. Banner appears: `Looks like NDJSON — wrap as JSON array?`
  3. Click Yes. Now use JSONPath, search, Table view, etc.