JSON formatter New
Format, validate and minify JSON, and explore it in a collapsible tree with a filter for keys and values. Errors are shown by line and column.
Toolbox has been completely renewed. What do you think? Share your feedback
Paste a JSON response and get the TypeScript types to go with it. Nested objects become their own interfaces, and keys that are missing in some array items become optional.
Runs in your browser. Nothing is uploaded.
Loading the JSON to TypeScript…
Paste an example of your JSON.
Choose the name of the root type and whether to write interfaces or type aliases.
Copy the generated TypeScript.
All items are merged into one type. A key that is missing in some items becomes optional, and a key with values of different types gets a union type such as string | number.
null. When the same key holds a value in another item, the type becomes a union such as string | null.
Format, validate and minify JSON, and explore it in a collapsible tree with a filter for keys and values. Errors are shown by line and column.
Turn a JSON array into a table you can sort and filter, and download it as CSV for Excel or Google Sheets. Converts CSV back to JSON too.
Query JSON with JSONPath: select fields, filter arrays on conditions and sort the results. Includes examples and a cheat sheet.
Compare two JSON documents and see every added, removed and changed value with its path. The order of keys does not matter. Runs locally.
May Toolbox count visits with Google Analytics, to see which tools are used and what to improve? A cookie is stored only if you allow it, and what you enter in the tools is never part of it. Read more about privacy