LOADING...

JSON tools

JSON formatter & converter

Format or minify JSON, export as PHP-style array(…) text, convert literals or CSV to JSON, with validation and tree preview — all in the browser.

Structure preview (tree)

When the input parses (JSON, PHP array(...), JS literals, etc.), lists render as Array (count), objects as Object (key count), then [key] => value lines, including nested structures.


					

What each action does

Format — Parses standard JSON, PHP array(...), JavaScript object/array literals, or simple CSV (first row = headers), then writes pretty-printed canonical JSON (indentation + validation).

Minify — Uses the same parsers as Format and outputs a single-line JSON string.

To PHP array — Uses the same parsers and converts the value to PHP array(…) text (nested arrays and keys).

To JSON — Same parsing rules as Format/Minify; outputs indented JSON text normalized to standard JSON.

Copy / Download — Copies the output, or downloads as .json when the output is valid JSON, otherwise .txt.

All processing stays in your browser (your text is not uploaded).

What is JSON?

JSON (JavaScript Object Notation) is a text format for data using { } (objects), [ ] (arrays), strings, numbers, booleans, and null. Keys must be double-quoted strings, and trailing commas are not allowed. It is widely used for APIs and config files. The Format and Minify actions on this page output text that follows these rules.