JSON to TypeScript
Generate TypeScript interfaces from a JSON sample.
Pretty-print, minify, sort and validate JSON. Errors point to the exact line and column, and the repair mode fixes comments, trailing commas, single quotes and unquoted keys. Your JSON never leaves your browser.
Private by design: your input is processed on this device and never uploaded. Verify it yourself.
No. Parsing and formatting use your browser's built-in JSON engine, and the page makes no network requests with your data.
It removes comments and trailing commas, converts single quotes to double quotes and quotes bare keys, so JSON5-style or hand-edited data becomes strict JSON.
Generate TypeScript interfaces from a JSON sample.
Convert JSON to YAML and YAML to JSON instantly.
Turn JSON arrays into CSV and CSV into JSON.
Compare two texts and see exactly what changed.