ToolBuddy

Convert

Convert between the data formats you actually ship: JSON, YAML, TOML, XML, CSV, TSV, SQL inserts, Unix time, cron, CSS colors, identifier case, IPv4, hex, binary, integer bases, byte sizes, CSS units, and durations. All parsing happens in the tab. There is no conversion API.

If you need to convert photos instead of data files, try Online Image Converter. If you need to merge, split, or compress a PDF, try LoveThisPDF.

Data formats13

JSON ↔ YAML

Convert JSON to YAML and YAML back to JSON in the browser. Paste a config, Kubernetes snippet, or API fixture and copy the other format. Parsing uses js-yaml locally. Documents are never posted to a converter.

JSON ↔ TOML

Convert JSON objects to TOML and TOML documents back to JSON in the browser. Handy for Cargo.toml, pyproject, and app config fragments. Parsing stays on-device.

JSON ↔ XML

Convert JSON objects to XML and XML documents back to JSON. Useful for SOAP leftovers, RSS, and mixed API stacks. XML is parsed with the browser DOMParser so payloads stay on the device.

JSON ↔ CSV

Turn an array of JSON objects into CSV, or parse CSV headers into JSON objects. Quote-aware parsing runs in the tab so spreadsheets of IDs and emails are not uploaded to a conversion service.

CSV ↔ TSV

Convert comma-separated values to tab-separated values and back, preserving quoted fields. A small delimiter swap for dumps you would rather not paste into a spreadsheet SaaS.

JSON to Code

Convert JSON into JS, Python, or PHP literals. Objects become dicts or arrays with key => value pairs. Conversion is a local string transform.

JSON to TypeScript

Infer TypeScript interfaces from a JSON sample. Nested objects become named interfaces, and keys missing from some objects in an array are optional. Conversion stays in the tab.

JSON to Go

Infer Go structs from a JSON sample. Nested objects become named struct types with exported fields and json tags. Keys missing from some objects in an array are optional. Conversion stays in the tab.

JSON to Python

Infer Python dataclasses from a JSON sample. Nested objects become named classes with type hints. Keys missing from some objects in an array are optional. Conversion stays in the tab.

JSON to Rust

Infer Rust structs from a JSON sample. Nested objects become named structs with serde renames. Keys missing from some objects in an array are optional. Conversion stays in the tab.

JSON to Java

Infer Java records from a JSON sample. Nested objects become public records with Jackson annotations. Keys missing from some objects in an array are optional. Conversion stays in the tab.

JSON to C#

Infer C# records from a JSON sample. Nested objects become public records with System.Text.Json attributes. Keys missing from some objects in an array are optional. Conversion stays in the tab.

JSON to Kotlin

Infer Kotlin data classes from a JSON sample. Nested objects become named classes with kotlinx.serialization annotations. Keys missing from some objects in an array are optional. Conversion stays in the tab.

SQL and CSV3

Time and dates4

Numbers and bytes6

Colors, CSS, and naming4