JSON Formatter
Format, minify, and validate JSON text in your browser.
Infer TypeScript types from JSON samples, including nested objects, optional properties, arrays, unions and null.
Updates as you type or change an option
Infer TypeScript types from JSON samples, including nested objects, optional properties, arrays, unions and null.
Paste a representative JSON sample and choose a type name. Copy the generated export or download a .ts file. Array samples are combined: properties missing from some objects become optional and different value types form unions.
Empty arrays use unknown[] and empty objects use { [key: string]: unknown }. A sample cannot describe values it does not contain, so review the type against your API contract. Duplicate keys are rejected. Limits: 2 MiB, 30,000 values and 80 nested levels.
Format, minify, and validate JSON text in your browser.
Convert Unix seconds or milliseconds into local, ISO, and UTC time.
Edit HTML, CSS, and JavaScript with a network-enabled sandbox preview.
Convert UTF-8 text to Base64 and back instantly, with standard and URL-safe formats and full support for Unicode and emoji.
Comments
0