JSON Formatter & Validator

Validates a JSON document and shows the error message with line, column, and a safe snippet; formats with 2/4 spaces or a tab, minifies, explicitly sorts keys alphabetically, and shows statistics (objects, arrays, keys, values, depth, approximate size). Uses exclusively JSON.parse — never eval or Function — and guards against extreme depth and prototype pollution.

Processed on your device, no AIhasta 5.000.000 de caracteres, profundidad máxima 200

Drag a .json file here, or

It's read locally; it isn't uploaded to any server.

The data is processed on your device and is never sent to the server.

Use cases

How to use this tool

  1. Paste or upload the JSON
  2. Validate, format, minify, or sort keys
  3. Copy or download the result

Frequently asked questions

Does it execute the JSON as code?
No. It uses exclusively JSON.parse, which only builds data (objects, arrays, text, numbers); never eval or Function, so it can't execute code.
Does sorting the keys change the values?
No. It only changes the display order of the keys; the values stay exactly the same.

Related tools

← Back to home