JSON
Use JSON when you need maximum compatibility with other systems, APIs, or programming languages. It's the de facto standard for web APIs and data exchange.
Jump to any supported source and target pair. Use this page to navigate to the exact converter you need, then read the matching docs for context.
Use JSON when you need maximum compatibility with other systems, APIs, or programming languages. It's the de facto standard for web APIs and data exchange.
Use JSON when you need maximum compatibility with other systems, APIs, or programming languages. It's the de facto standard for web APIs and data exchange.
Use CSV when working with spreadsheets (Excel, Google Sheets), doing data analysis, or exporting data for external use.
Use YAML for configuration files, especially in DevOps (Docker, Kubernetes, GitHub Actions). It's more readable than JSON but can have ambiguity with indentation.
Use XML when working with legacy systems, SOAP APIs, or when you need rich metadata and validation schemas.
Use Protobuf for high-performance internal APIs, microservices communication, or when you need maximum efficiency and have defined schemas.
Every conversion goes through JSON. The source is parsed into a JSON value, then that value is written out in the target format. Two consequences follow. First, anything the source format has that JSON lacks, such as YAML comments, XML namespaces, or Protobuf field numbers, is gone by the time the output is written. Second, a target can only express what it supports: CSV needs flat rows, TOML needs a table at the top, and XML needs a single root element.
Conversions run in your browser, so the data is not uploaded. For scripts and pipelines, the same conversions are available through the conversion API. Each pair page below shows a sample converted by the same code at build time, with the input and output sizes, so you can see what the output looks like before pasting your own data.
.proto schema.TOON writes the field names of a uniform array once, as a header, and then one row per record. That is why CSV to TOON, SQL results, log events, and API lists of similar objects compress well. Configuration files, single deeply nested objects, and records whose keys vary have no shared header to factor out, so TOON writes them as indented key: value lines and the savings over minified JSON are much smaller. YAML to TOON is a good example: a typical service config comes out about the same size. Read when not to use TOON before converting everything by default.
@_, and a lone child element becomes an object rather than a one-item array.[[data]], and null values are dropped because TOML has no null..proto schema with matching field names and types.Format references: TOON, TONL, JSON, CSV, YAML, TOML, XML, and Protobuf. To use TOON in code, see the library implementations.
Use JSON when you need maximum compatibility with other systems, APIs, or programming languages. It's the de facto standard for web APIs and data exchange.
Use TOON when building LLM-powered applications, optimizing API costs, or when you need compact, readable data for AI models.
Use TONL when you want a compact text format plus tooling around it: querying, schema validation, or streaming. For plain prompt compression, TOON is usually the simpler choice.
Use YAML for configuration files, especially in DevOps (Docker, Kubernetes, GitHub Actions). It's more readable than JSON but can have ambiguity with indentation.
Use TOML for application configuration, especially in Python (pyproject.toml) or Rust (Cargo.toml) projects. It has explicit types and no ambiguity.
Use CSV when working with spreadsheets (Excel, Google Sheets), doing data analysis, or exporting data for external use.
Use XML when working with legacy systems, SOAP APIs, or when you need rich metadata and validation schemas.
Use Protobuf for high-performance internal APIs, microservices communication, or when you need maximum efficiency and have defined schemas.