Loadingโฆ
Loadingโฆ
Format, validate, and minify JSON in your browser. Paste it, upload a file, or load it from a URL. Errors show the exact line and column.
Also covers: JSON validator ยท JSON minifier ยท JSON beautifier ยท JSON pretty print
Output appears here.
Paste it into the JSON input pane, drop a .json file on it, click Upload to pick a file, or click URL to fetch it from an endpoint. Click Sample to try the tool with an example payload.
With Auto update on, the output refreshes as you type. Turn it off for very large documents and click Format / Validate or Minify when you're ready. The Indent setting switches between 2 spaces, 4 spaces, and tabs.
If the JSON is invalid, the output pane shows the parser's error with its line and column. Click โjump to itโ to put the cursor at that spot in the input.
Copy the output to your clipboard, download it as a .json file, or click Expand to read a large document full-screen. Press Esc to close the expanded view.
No. Parsing, formatting, and minifying all run in JavaScript inside your browser tab. Pasted text and uploaded files never leave your machine, so the tool is safe for API responses that contain tokens or customer data. Loading from a URL is the one exception: your browser requests that URL directly, and nothing goes through our servers.
Formatting (beautifying) adds line breaks and indentation so a human can read the structure. Minifying removes all insignificant whitespace, which gives the smallest payload for sending over the network or storing in a config value. Both keep the data exactly the same.
JSON is stricter than JavaScript object syntax. The most common causes are trailing commas, single-quoted strings, unquoted keys, comments, and values such as undefined, NaN, or Infinity. None of these are allowed in JSON (RFC 8259). LLM output often contains them too, so validating model responses before you parse them in code is a good habit.
Browsers only let a page read a response from another site if that server sends CORS headers allowing it. Many public APIs and raw file hosts do, but plenty don't. If a URL fails, open it in a new tab, save the response as a file, and upload it instead.
Uploads are capped at 10 MB. Past a few thousand lines, the output switches from syntax highlighting to plain text so the page stays responsive. For multi-megabyte documents, turn off Auto update so the tool only re-parses when you click a button.
C# / .NET
Paste JSON and get C# model classes or records, ready for System.Text.Json or Newtonsoft.Json. Nested objects, arrays, nullable types, dates, and GUIDs are inferred for you.
TypeScript
Paste JSON and get TypeScript interfaces or type aliases, with nested objects named for you, optional and nullable fields detected from every array item, and union types.
SQL
Turn a JSON array into a CREATE TABLE with inferred column types and batched INSERT statements for PostgreSQL, MySQL, SQL Server, or SQLite.
SQL
Format and beautify SQL queries for SQL Server (T-SQL), PostgreSQL, MySQL, Oracle, and more. Set the indentation, keyword case, and layout, and get the exact line of any syntax error.
Data
Format, validate, and minify XML (config files, .csproj, SOAP, RSS) in your browser. Entities, CDATA, and mixed content are kept exactly as written, and errors show the line and column.
Data
Format and validate YAML (docker-compose, Kubernetes, GitHub Actions) without losing comments, or convert YAML to JSON. Errors show the exact line and column.