Data & Format Tools

Convert between JSON, CSV, XML and YAML, validate schemas, flatten nested objects and generate typed models. Varkido's data tools handle the tedious format juggling so you can move data between systems without writing throwaway scripts.

29 tools in this category

JSON to CSV Converter Turn a list of JSON records into a CSV file you can open in Excel or Google Sheets. Pick a semicolon if your spreadsheet expects it. CSV to JSON Converter Paste a spreadsheet export and get JSON back, with numbers and true/false values recognised if you want. JSON to XML Converter Convert JSON for a system that only accepts XML. You choose the names of the root element and list items. XML to JSON Converter Turn an XML response into JSON your code can use, deciding whether to keep attributes and text nodes. CSV Formatter Line up the columns of a CSV so you can read it as a table in any text editor. Choose the delimiter your file uses: comma, semicolon, tab or pipe. CSV Validator Catch rows with the wrong number of fields or broken quotes before you import the file. The report points you to the rows that need fixing. JSON Flatten / Unflatten Turn nested objects into single keys like user.address.city, or rebuild the nesting from a flat object. JSON Schema Validator Check data against a JSON Schema and see which fields break the rules. It covers common keywords, not every draft feature. JSON to TypeScript Paste an API response and get TypeScript interfaces to start from. Check fields that may be missing or null. JSON Key Sorter Put object keys in alphabetical order so two versions of a file are easier to compare. Sort every level or only the top one. JSON Merge Tool Combine a base file with overrides, such as default and local settings, and choose which side wins a conflict. XML to CSV Get repeating XML records into a spreadsheet. Name the record element or let the tool detect it. CSV to XML Turn spreadsheet rows into XML records, using the header row for element names. Set the record element name to whatever the receiving system expects. YAML to XML Convert a YAML config or data file into XML, naming the root element and list items yourself. Check the result when your YAML uses advanced features. XML to YAML Rewrite XML as shorter, easier to read YAML, with or without its attributes. Handy when moving old config files to a YAML-based setup. JSON Repair Fix common mistakes such as trailing commas, single quotes, comments or unquoted keys, and see what was changed. JSON to Python Get Python classes that match your JSON, as Pydantic models, dataclasses or TypedDicts. Check optional fields, since one sample may not show every case. JSON to Go Turn a sample response into Go structs with json tags, plus bson tags for MongoDB if you need them. JSON to Pydantic Create Pydantic models from example data, then tighten the types where one sample isn't enough. JSON to Zod Write the first draft of a Zod schema from real data, so you can validate API input at runtime. JSON to Rust Generate Rust structs from a JSON sample, with fields wrapped in Option if they may be absent. Review the number types before using them with real data. JSON to PHP Turn JSON into typed PHP classes, or into a plain PHP array you can paste into code. A starting point you can adjust to your project's style. JSON to C# Create C# classes for an API response, set up for Newtonsoft.Json or System.Text.Json. Check nullable fields against more than one sample. JSON to Java Get Java classes with getters and setters that mirror your JSON, ready to adjust in your project. JSON to SQL Turn an array of records into CREATE TABLE and INSERT statements. Check the column types before running them. TOML Formatter Tidy a TOML config into a consistent layout. Comments are not kept, so don't paste the result over your only copy. TOML Validator Check a Cargo.toml, pyproject.toml or other config for syntax errors and repeated keys. Run it before a commit so a typo doesn't break your build. TOML to JSON Read a TOML file as JSON so a script or an API can use it. Pick 2 or 4 spaces, or minified output, and check values such as dates before relying on them. JSON to TOML Turn JSON settings into TOML, the format used by many Rust and Python project files. TOML has no null value, so null fields become empty strings.

About Data & Format Tools

Move data between JSON, CSV, XML, YAML and TOML, validate or repair it, and turn a JSON sample into type definitions for languages such as TypeScript, Python, Go, Rust, Java or C#.

Conversions between formats are not always lossless: CSV has no nesting or data types, and XML attributes have no direct JSON equivalent. Review the output before using it.

Which conversion do you need?

Data & Format Tools: common questions

What happens to nested objects in CSV?
CSV is a flat table, so nested values have to be flattened into columns or stored as text. Check the column names after converting.
Are generated types complete?
They describe only the sample you paste. A field that is sometimes missing or null needs to be adjusted by hand.
Why did a number or boolean become a string?
CSV and XML do not record data types, so a converter may keep values as text. Convert them in your code where the type matters.

Other Categories