Eternalsix

JSON Formatter

Format, validate, and minify JSON — instantly, in your browser.

0 characters

How to use

Paste your JSON, then click Format to pretty-print it or Minify to compress it. Invalid JSON shows the exact error position.

About this tool

Paste messy or minified JSON and get it beautifully formatted with proper indentation, or minified to a single line. It validates as you go and points to the exact position of any syntax error. Everything runs locally in your browser — your data never leaves your device.

What you can use JSON Formatter for

Frequently asked questions

Is my JSON sent to a server?

No. All formatting and validation happen locally in your browser — nothing is uploaded, so it's safe for sensitive data.

What indentation does it use?

Format uses 2-space indentation. Use Minify to strip all whitespace into a single compact line.

Does it show where an error is?

Yes — invalid JSON reports the parser's error message, which includes the position of the problem.

More tools

Browse all →
Base64 Encode / Decode
Encode text to Base64 or decode it back — instantly, in your browser.
Basic Auth Header Generator
Turn a username and password into a Basic Authorization header.
Binary to Text Converter
Convert text to binary and binary back to text.
Case Converter
Convert text between camelCase, snake_case, kebab-case, and more.
Color Converter
Convert colors between HEX, RGB, and HSL — with a live swatch.
Cron Explainer
Decode a cron expression into plain English and see its next runs.