JSON Formatter
Indent JSON so you can read it, or squeeze it onto one line. Syntax errors are reported with the line they are on.
Input
Result
How to use
Paste JSON into the box on the left and the formatted result appears on the right. An API response copied straight out of the network tab works fine.
Indentation can be two or four spaces. The minify button strips it all out, which is what you want before sending JSON over the wire.
When the syntax is wrong you get the line and column of the problem along with a message. A missing comma or an unbalanced quote is quick to find that way.
Nothing you paste is sent to a server. It is processed inside your browser, so JSON containing internal data is safe to work with here.
Tools people use next
YAML ⇄ JSON Converter
Convert YAML to JSON and JSON to YAML in your browser. Auto-detects the input, handles multi-document YAML, and reports syntax errors with the line number.
JSON ↔ CSV Converter
Turn a JSON array into CSV, or a CSV back into JSON. Choose the delimiter and say whether the first row holds column names.
SQL Formatter
Beautify SQL with consistent indentation and keyword casing, or minify it onto one line. Supports MySQL, PostgreSQL, SQLite, SQL Server, BigQuery, Snowflake and Oracle.
Text Diff
Highlights what changed between two blocks of text. Compare line by line or word by word.