zerouploads

JSON Formatter & Validator

Format, validate and minify JSON in the browser. Errors are reported with a line and column, not a stack trace.

  • Unlimited
  • No signup
  • Private
  • Works offline

Format and validate JSON

Formatted

VALID
{ "service": "zerouploads", "version": "4.2.0", "retries": 3, "limits": { "daily": null, "fileSize": null, "signup": false }, "engines": [ "wasm", "webcodecs" ], "updated": "2026-08-25"}

15 lines · 6 keys · depth 2 · 165 B in / 223 B out / 164 B minified

How it works

  1. 01

    Paste it

    A response body, a config file, a log line. Nothing is uploaded, so a production payload is safe to paste.

  2. 02

    Read the error

    If it will not parse, you get the rule that was broken, in plain words, with a line and column. A trailing comma or a comment is fixed for you, with a note.

  3. 03

    Format or minify

    Two, four or tab indentation, optional key sorting, then copy or download the result.

What the validator checks

The validator reads strict JSON: keys and strings in double quotes, commas between values, every bracket closing in the order it opened. Before it hands the text to the parser, it looks for the common mistakes. A single quote, an unquoted key or value, a curly quote, a string that runs past the end of its line. Each one has a name, and a named mistake is faster to fix than a character offset.

When one turns up, you get the rule that was broken and the line and column of the character that broke it. Two mistakes can be fixed without guessing: a trailing comma and a comment. The tool removes those, formats the result, and tells you what it changed. It also warns you when an object repeats a key.

Input size
No fixed limit. Your browser's memory is the ceiling.
Indent
Two spaces, four spaces, or tabs.
Also handles
Arrays and top-level primitives, not just objects.
Errors
Plain-language line and column references, not parser stack traces.

Keyboard

Use Ctrl in place of Cmd on Windows and Linux.

Cmd+Enter
Format
Cmd+Shift+M
Minify
Cmd+/
Toggle sort keys
Cmd+Shift+K
Clear
Cmd+Shift+C
Copy output

Frequently asked questions

Is it safe to paste production data here?
Yes. Parsing and formatting happen in your browser. Nothing is sent anywhere, there is no logging, and the page keeps working with your network disconnected.
Why does it reject my file when other tools accept it?
It is probably JSON5 or JavaScript, not JSON. Single quotes, unclosed strings and unquoted keys or values are common and all invalid, and the error tells you which one it found and where. Trailing commas and comments are invalid too, but the tool fixes those and says so.
Is there a size limit?
No fixed one. Up to 100 KB, the page checks your JSON as you type. Above that, press Validate, and a worker does the work so the page stays responsive. The real limit is how much memory your browser tab has.
What does sorting keys do to my data?
It reorders object keys alphabetically at every level, which makes two payloads comparable in a diff. Array order is never touched, because in JSON array order is meaningful.
Does formatting change my values?
No. Formatting and minifying change whitespace only. The parsed values are identical either way, so minifying a formatted document returns you to where you started.
Browse all developer tools