FREE BROWSER-LOCAL FILE TOOLS

Format JSON into readable structure.

Open or paste JSON, inspect its structure, edit, format or minify it. Your contents stay in this browser.

Step 1: open your file

Start with a complete JSON value. Contents stay in this browser.

  1. Use Format for readable JSON or Minify for compact JSON; review the source.
  2. Download the formatted JSON.
Paste JSON

File contents stay in this browser. Download changes before refreshing or closing the tab.

Inspect nested structure

Searchable tree and raw editor views make nested objects, arrays, keys, values, and record boundaries easier to inspect.

Edit, format and validate

Pretty-print dense JSON or minify formatted JSON after the syntax passes validation. Syntax problems are reported without sending the document to a server.

Choose the matching format

Use JSON for one complete value, JSONL or NDJSON for one JSON value per line.

Frequently asked questions

Can I convert JSONC comments to strict JSON?

In the browser editor, open a .jsonc file or paste JSONC source, then choose Repair and JSONC to strict JSON. Safe JSON repairs remains the default task. Review the complete original and converted result before downloading a separate .json copy or explicitly applying one undoable edit. Only comments and trailing commas are removed; numeric and string tokens remain unchanged. Ordinary formatting still requires strict JSON. Duplicate keys and JSON5 syntax are refused. Conversion supports up to 2 Mi characters, 128 container levels and 100,000 tokens/values, with local cancellation and a five-second limit. Native file associations, installed versions and integration support can differ.

Can I convert JSON5 to strict JSON without rounding numbers?

Choose Repair and JSON5 to strict JSON in the browser editor. Review the complete original and proposal, then download a separate .json copy or explicitly Apply; Undo restores the original. Supported JSON5 data includes comments, trailing commas, unquoted keys, single-quoted strings, signed decimals and hexadecimal integers. Strict decimal number spellings are retained, including values beyond JavaScript number range; hexadecimal integers convert exactly. Strings and keys are quoted or escaped when required. NaN, Infinity, decoded duplicate keys, JavaScript expressions and unsupported syntax are refused. Limits are 2 Mi source/output characters, 10,000 characters per numeric token, 100,000 tokens/values and 128 container levels, with local cancellation and a five-second deadline. Ordinary formatting and the separate JSONC task retain their strict policies. This does not provide comment-preserving JSON5 structured editing or certify installed/integration versions.

How do I format or minify JSON?

Open or paste a complete JSON value. Choose Format for readable indentation or Minify for compact JSON, review the source, then download the result.

Will the formatter accept invalid JSON?

No. Fix syntax errors before formatting or minifying. The source stays available in the editor while you correct it.

Does my JSON file get uploaded?

Local editing processes selected and pasted contents in your browser. Optional Assistance sends your goal and only the context you explicitly prepare and include, such as a selected subtree or observed query field metadata, to OpenRouter and the configured model provider. Its preview shows exactly what is included. Ordinary page and asset requests also reach the hosting provider.