Data Format Converter

Any data format to any other: JSON, YAML, TOML, XML, CSV and more.

Runs in your browser Instant No sign-up
Input
Output

Paste, type or drop a file — output appears as you type.

Waiting for input
Processed locally · nothing is uploadedProcessed locally

How to use the Data Format Converter

  1. From: choose the format of your input, such as YAML.
  2. To: choose the format you want, such as TOML.
  3. Paste the data into the left pane. The result appears as you type, with syntax highlighting for the target format.
  4. Copy or Download the result.

The status bar shows the conversion, for example YAML → TOML, followed by the details reported by the writing step.

Example: YAML to TOML

spring:
  application:
    name: order-service
server:
  port: 8081
app:
  cors:
    allowed-origins:
      - https://tidypane.dev
      - http://localhost:3000

becomes

[spring.application]
name = "order-service"

[server]
port = 8081

[app.cors]
allowed-origins = [ "https://tidypane.dev", "http://localhost:3000" ]

Supported formats

Format Read Write Dedicated tools
JSON yes yes JSON Formatter
YAML yes yes YAML to JSON, JSON to YAML
TOML yes yes TOML to JSON, JSON to TOML
XML yes yes XML to JSON, JSON to XML
CSV yes yes CSV to JSON, JSON to CSV
JSON5 / JSONC yes no JSON5 to JSON
.env yes yes .env to JSON, JSON to .env
Query string yes yes Query String to JSON
.properties yes yes Properties to YAML
TOON yes yes TOON to JSON

Things to keep in mind

  • Not every format can hold every structure. TOML and .env need an object at the top level, CSV needs a list of rows, and XML needs element names. When the target can’t express the data, the error says why.
  • Defaults are used for each step. For example, YAML is written with 2-space indentation and CSV with commas. Open the dedicated tool when you need other options.
  • Comments are not carried over, since JSON in the middle has no comments.

When to use it

  • Moving config between ecosystems. A Python project’s pyproject.toml, a Rust Cargo.toml, a Kubernetes manifest in YAML and a Spring Boot application.properties all describe settings as nested keys. Converting between them by hand is slow and easy to get wrong, especially with lists and quoting.
  • Answering “what does this look like in format X?” while reading documentation that shows an example in a format your project doesn’t use.
  • Checking a file in one format with tools for another. Turn XML into YAML to read it more easily, or a .env file into TOML for a config library.

Converting the same data often? The Pipeline page (linked in the site header) chains several tools, for example decode a URL, convert the payload, then query it with JSONPath, and can share the whole recipe as a link.

Frequently asked questions

Which formats can it convert between?

It reads JSON, YAML, TOML, XML, CSV, JSON5 (and JSONC), .env, query strings, Java .properties and TOON, and writes all of them except JSON5, whose strict form is simply JSON. That covers pairs like YAML to TOML, XML to YAML, TOML to YAML, CSV to YAML and .properties to TOML.

How does it convert, for example, YAML to TOML?

In two steps: the input is read into JSON with the same code as the YAML to JSON tool, then that JSON is written as TOML with the same code as the JSON to TOML tool. Each step uses its tool's default options, so the result matches what you'd get using the two tools one after the other.

Where do errors point?

An error while reading the input keeps its line and column in your input, and the line is highlighted. An error while writing the target, such as TOML refusing a top-level array, is shown with the target's explanation instead, because a location there would refer to the intermediate JSON.

Why are some values changed or warned about?

Formats don't all hold the same data. TOML and .env have no null, CSV needs rows, and JSON has no dates or Infinity. Each step reports what it had to change as a warning, so nothing is lost silently. For full control over options, open the single-purpose tool for that pair.

Is my data uploaded?

No. Every step runs in your browser and nothing you paste leaves your device.

Last updated