Local-first tools. Your files and text stay in your browser.

Text & Data

JSON Formatter & Validator

Paste JSON to validate it and produce a clean, readable version. The formatter runs entirely in your browser, so configuration files, API payloads and tokens are never transmitted.

Local processing
JSON workbench Runs in your browser
0 characters

Strict JSON only. No comments or trailing commas. Limit 1 MiB.

Formatted output
Choose Format, Minify or Validate to see the result here.

How it works

  1. Paste or type JSON into the input area, or load a .json file from your device.
  2. Choose an indentation, then select Format, Minify or Validate.
  3. Copy the result or download it as a .json file. Invalid input keeps your original text and shows where parsing failed.

Supported input and limits

InputJSON text
OutputFormatted JSON, Minified JSON, Validation result
Size limit 1 MiB
OfflineVerified after the page and its script are cached
  • Strict JSON only: no comments, trailing commas or JavaScript expressions.
  • Maximum input is 1 MiB of UTF-8 text.
  • Formatting normalizes whitespace and does not reorder keys.

Privacy

This tool runs entirely in your browser. Your input is processed in memory and is not uploaded, logged or stored by TinkerFern. There is no account, no server-side processing and no analytics payload containing your content.

Client-side processing reduces data transfer, but it does not protect against bugs in your browser or in a file you choose to open. Keep backups of important files.

Frequently asked questions

Does the formatter change my data?

Only whitespace between tokens is normalized. Values, key order and types are preserved as parsed by your browser. Duplicate keys are resolved the same way JSON.parse resolves them: the last value wins.

Why is my JSON rejected even though it looks fine?

Standard JSON does not allow trailing commas, comments, unquoted keys or single-quoted strings. This tool follows the strict JSON grammar, so those common JavaScript-style affordances produce a parse error with a location.

Is there an input size limit?

Input is limited to 1 MiB of text so the tab stays responsive. A warning appears above 256 KiB. Larger payloads should be handled with a command-line tool or a streaming parser.

Continue with a task that often follows this one.

All tools →