UtilDojo

Popular

Menu

JSON Converter — JSON to YAML, CSV, XML, TypeScript & Zod

  • This tool runs entirely in your browser. Nothing you enter or upload is sent to a server.

JSON

Tab indents · Shift+Tab outdents · Esc then Tab moves on

YAML

Your YAML shows up here

Paste or type on the left, upload a file, or drop one onto the input.

Waiting for input

JSON & data

About this tool

Pick what you are converting from the Convert menu and paste your data. The result appears as you type, with a copy button and a download button. The menu covers eight conversions: JSON to YAML, CSV, XML, TypeScript and Zod, and YAML, CSV and XML back to JSON. Each one opens the same tool that has its own page, so you can also go straight to a page such as JSON to CSV.

Each conversion follows clear rules. YAML to JSON expands anchors, drops comments and turns multi-document files into an array. CSV to JSON can treat the first row as a header and can detect numbers and booleans, while JSON to CSV flattens nested objects into dotted column names such as user.name, and you choose the delimiter (comma, semicolon, tab or pipe). XML keeps attributes as @name keys and text under #text, and repeated elements become arrays. TypeScript and Zod are generated from a sample: arrays of objects are merged, keys missing from some items become optional, and common formats such as emails, URLs, UUIDs and dates can be detected.

Invalid input is reported with a message and, where the format allows it, a line and column. Nothing is converted behind your back: XML values stay strings, long numbers are not rounded, and each tool lists its options next to the input.

Everything runs in your browser, so configuration files, exports and customer data are never uploaded.

Frequently asked questions

Which conversions are supported?

JSON to YAML, CSV, XML, TypeScript and Zod, and YAML, CSV and XML back to JSON. Choose one in the Convert menu.

Can I convert a nested JSON to CSV?

Yes. Nested objects are flattened into dotted column names such as address.city, and arrays of simple values are kept as one JSON cell. CSV works best with an array of similar objects.

Why do my XML numbers come out as strings?

XML stores everything as text, and guessing types could round long numbers or turn 007 into 7. Convert the types you need in your own code.

Are the TypeScript and Zod outputs ready to ship?

They are a starting point. The tool infers types from one sample, so review optional fields and unions against your real API before using them.

Do I lose comments when converting YAML?

Yes. JSON has no comments, so YAML comments are dropped. Anchors and aliases are expanded into their values.

Is my data uploaded?

No. Every conversion runs in your browser and nothing is sent to a server.

Related tools