Toolvito

Processed online by Toolvito

Structured Data Converter

Change data from one format to another without losing values: XML to JSON, JSON to YAML, JSON Lines to CSV, BSON to JSON and many more. Everything a format cannot hold is listed in the result, so nothing changes silently.

Convert data

Convert data

Or drop files here. JSON, GEOJSON, JSONL, NDJSON, YAML, YML, TOML, XML, INI, CFG, CSV, TSV, TXT, PLIST, BSON, CBOR, MSGPACK, MPK, MP, PARQUET, AVRO, FEATHER, ARROW or ORC, up to 20 files, 50 MB each at most.

    More options

    Off: every XML value stays text, exactly as written.

    For example data.items.

    When you run a task here, Toolvito receives the files you choose for processing. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

    How to convert

    1. Choose one or more files, or drop them on the box.
    2. Pick the new format under Convert to.
    3. Press Convert, look at the start of the result on the page, and download it.

    Formats

    • Read and write: JSON, JSON Lines (NDJSON), YAML, TOML, XML, CSV, TSV, INI, Apple property lists (XML or binary), BSON (also mongodump files), CBOR, MessagePack, Avro, Parquet, Feather and ORC.
    • Write only: Markdown tables and HTML tables.
    • Protocol Buffers need their .proto schema and are not read here. Excel workbooks go to the Spreadsheet & Data Converter.

    How XML becomes JSON

    • Attributes become keys that start with @ (for example @id), and the text of an element that also has attributes or children becomes #text.
    • Repeated elements become a list in their order; namespaces keep their prefixes (x:code) and their declarations (@xmlns:x).
    • XML values are text. Tick Read XML numbers and true/false as values to get numbers instead of text.
    • The same rules work backwards, so XML → JSON → XML gives the same elements. Keys that are not allowed as XML names are written as _x0020_ codes and come back unchanged.
    • Comments are left out, and entities and DTDs are never loaded — a file cannot make the server read other files or expand itself.

    What each format can hold

    • TOML and property lists have no null: those keys are left out and listed.
    • JSON has no dates or binary: dates become ISO 8601 text, binary becomes {"$binary": "…"}; BSON ObjectIds and dates use MongoDB Extended JSON ($oid, $date), so they turn back into the same BSON.
    • CSV, Markdown and HTML are flat: nested values are spread over columns like user.name; lists stay as JSON text. Where the rows are picks a list inside the file, for example data.items.
    • INI has sections and keys only; deeper values are written as JSON text. XML stores everything as text.
    • YAML anchors and aliases are expanded; several YAML documents in one file become a list.

    Privacy

    Your files are sent to the Toolvito server to be converted. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

    Related tools