Skip to content
PrivBay

JSON converter for four data formats

Convert between JSON and four formats. Copy the result or download a new file.

Drop a file here

Files stay on your device.

Use up to 2 MiB of UTF-8 text. Select the format that matches your input.

Ready. Your files stay on this device.

What to do next

How to convert JSON to YAML, TOML, XML or CSV

  1. Choose the Format pair and Direction.
  2. Paste the source or select Choose a data file to open one UTF-8 file.
  3. Select Convert, then use Copy result or Download result.
  4. Select Swap direction to use the converted result as the next input.

Pick a format for your data

Use JSON to YAML for configuration that people need to read and edit. YAML output reflects the values in the input and uses a consistent indentation style. The reverse conversion reads a single YAML document. Comments and formatting choices from the source are omitted during conversion.

JSON to TOML is useful for settings files that expect named tables. Start with a JSON object at the root. TOML cannot represent null, so the converter reports where the null occurs. When you convert a TOML date or time to JSON, the result represents it as a string. Converting that string back produces a quoted TOML value.

Map XML elements, CSV rows and rules

Format pair Root & type rules Rejected or normalized cases
JSON to YAML (and back) Single YAML 1.2 document with string keys Rejects duplicate keys, aliases and custom tags; drops comments
JSON to TOML (and back) Requires JSON object root; named tables TOML has no null; dates become JSON strings (stay quoted going back)
JSON to XML (and back) Top-level key sets root; @_ attributes & #text Rejects namespaces and mixed element text with child elements
JSON to CSV (and back) Array of flat records; keeps "001" strings intact Rejects nested objects/arrays inside cells with field path reported

Use CSV editor to review or adjust tabular cells, JSON formatter and validator to validate or minify plain JSON, and Schema Markup Generator when building structured JSON-LD snippets directly from a form.

Frequently asked questions

Which YAML features does the converter accept?

It reads one YAML 1.2 document with string mapping keys. Duplicate keys, aliases and custom tags are rejected.

How do TOML dates appear in JSON?

TOML date and time values become strings. Keep dates quoted if you want them to remain strings in TOML.

Can every JSON object be written as XML?

XML needs one named root. Use valid XML names for elements, @_ for attributes, and #text for text alongside attributes. The converter rejects namespaces and mixed text with child elements.

Does the converter infer numeric values from CSV?

No. It reads cells as strings, which keeps values like 001 intact. Turn off Use CSV column headers to return arrays of cells.

Can I use integers larger than 9,007,199,254,740,991?

Put exact large identifiers in quotes. The converter rejects integers outside the safe JSON range.

What happens to nested objects when I convert JSON to CSV?

Nested objects and arrays inside a cell are rejected with the path to the value. Use flat records or equal-width rows of scalar values.

Last updated November 12, 2026