Format

JSON Formatter & Validator

Beautify and validate JSON, or minify it down to one line. Errors are reported with a clear message so you can find the problem fast — all in your browser.

Format, validate, and minify

Format pretty-prints your JSON with two-space indentation so it’s easy to read. Minify strips every unnecessary space and newline to produce the smallest valid JSON, handy for shrinking API payloads. Either way, the tool first parses your input, so if anything is malformed you get an error pointing at the problem.

Common JSON mistakes

Strict JSON is stricter than most people expect. These all make it invalid:

Everything is parsed locally in your browser with the native JSON engine — your data never leaves your device, so it’s safe to paste private payloads.

Frequently asked questions

Is my JSON sent to a server?

No. Formatting and validation happen entirely in your browser with the native JSON parser. Your data never leaves your device, so it is safe to paste sensitive payloads.

What does "minify" do?

Minifying removes all unnecessary whitespace and line breaks, producing the smallest valid JSON. That is useful for reducing payload size in API requests or configuration files.

Why does it say my JSON is invalid?

Common causes are trailing commas, single quotes instead of double quotes, unquoted keys, or comments — none of which are allowed in strict JSON. The error message points to where parsing failed so you can fix it.

More tools

Verification

Checksum & Hash Calculator

MD5, SHA-1, SHA-256 & SHA-512 of any file or text. Verify a download against its published checksum.

Bandwidth

Download Time Calculator

Estimate transfer time from a file size and your connection speed.

Units

File Size Converter

Convert between B, KB, MB, GB, TB and binary KiB / MiB / GiB units.

Encoding

Base64 Encoder / Decoder

Encode text to Base64 or decode it back, with full UTF-8 support.

Encoding

URL Encoder / Decoder

Percent-encode text for URLs, or decode an encoded URL back to text.

Generate

QR Code Generator

Make a QR code from any text or link; download as PNG or SVG.