Home / Data / Data Format Converter

Data Format Converter

Convert between JSON, YAML, XML, TOML, INI, CSV, NDJSON, MessagePack, CBOR and BSON.

Free, no uploads, no sign-up. Runs 100% in your browser.

How Data Format Converter works

Your data is parsed into a plain object with open-source parsers (js-yaml, fast-xml-parser, smol-toml, ini, Papa Parse, @msgpack/msgpack, cbor-x and bson) and written back out in the format you pick. Nested objects are flattened to dotted column names for CSV and rebuilt when you convert back.

Input: JSON, YAML, XML, TOML, INI, CSV, TSV, NDJSON, MSGPACK, CBOR, BSON. Output: JSON, YAML, XML, TOML, INI, CSV, TSV, NDJSON, MSGPACK, CBOR, BSON.

How to use Data Format Converter

  1. Paste data or open a file. The format is detected for you.
  2. Pick the format you want in the To list.
  3. Copy the result or download it.

Tips

  • Use Swap to convert the result back and check nothing was lost.
  • Binary formats (MessagePack, CBOR, BSON) are opened and saved as files.

Data Format Converter FAQ

Are my files uploaded?
No. This tool runs entirely in your browser tab. Files are read from your disk into memory and the result is generated locally.
Is it free? Are there limits or watermarks?
Free and open source (MIT). There are no file-size caps, daily quotas, accounts or watermarks.
Does it work offline?
Yes, once the page (and any engine it needs) has loaded, it keeps working without a connection thanks to the service worker cache.

Related tools

  • YAML ⇄ JSON: Convert between YAML and JSON with validation.
  • JSON Formatter: Prettify, validate, minify and explore JSON as a tree.
  • Dataset Format Converter: Convert fine-tuning data between OpenAI chat JSONL, ShareGPT, Alpaca, prompt and completion, and CSV, with an optional system prompt.
  • CSV & Excel Converter: Convert CSV, XLSX, JSON, Markdown, TSV, HTML and SQL both ways.

OpenFile runs in your browser. Turn on JavaScript to use the tools.