JSON Formatter & Minifier

Paste raw or minified JSON below, then click Format to beautify it or Minify to compress it. Syntax is validated on every click — invalid JSON shows a clear error instead of silently failing.

More ways to experience Recasely:

Jf

JSON Formatter / Minifier

Paste raw, minified, or messy JSON and this tool instantly validates it and produces clean, properly indented output — or, in Minify mode, strips every unnecessary character for the smallest possible payload. Everything runs in your browser; nothing you paste is ever sent to a server. Short lists of simple values (numbers, strings) stay compact on one line rather than sprawling across many, so straightforward data doesn't take up more room than it needs to — arrays that contain objects still expand one item per line for readability.

What's the difference between formatting, validating, and minifying?

They're closely related but not the same thing. Validating just checks whether the JSON is syntactically correct — this tool does that automatically every time you click Format or Minify, and shows a clear error if it isn't. Formatting (also called beautifying) takes valid JSON and adds indentation and line breaks to make it readable. Minifying does the opposite: it removes every character that isn't required, producing the smallest possible file — useful for production payloads where readability doesn't matter but size does.

What's the most common JSON syntax error?

By far the most common mistake is a trailing comma — a comma left after the last item in an object or array, like {"a": 1, "b": 2,}. It's valid in JavaScript object literals, which makes it an easy habit to carry over, but the JSON spec doesn't allow it. This tool specifically calls out trailing commas in its error message when it detects one, rather than just showing a generic parse error.

What else is different about JSON compared to a JavaScript object?

A few rules trip people up: property names must be wrapped in double quotes (single quotes aren't valid), JSON has no comments at all, and there's no way to represent undefined or a function — only strings, numbers, booleans, null, objects, and arrays.

Is there a size limit on the JSON I can format?

Not from this tool specifically — since everything happens in your browser instead of on a server, your device's own memory is the real ceiling, not a number we've imposed. Very large JSON documents may take a moment longer to process, but there's no artificial cap on length.

Last reviewed: August 2026