Skip to content
EASE+ ToolsEASE+ Tools

JSON Formatter

Format or minify JSON privately in your browser.

Inputs

Example

Up to 5 MB. Nothing is uploaded.

Output

Result

Status
Valid JSON
Characters
70 in, 112 out
Formatted JSON

About this tool

Make an API response or a configuration file readable, or squeeze it onto one line to save space. Many online formatters upload what you paste to their servers, which is risky for data that contains customer details or API keys. This one runs entirely in your browser.

  1. Paste your JSON.
  2. Choose Format or Minify, and the indent you prefer.
  3. Copy the result or download it as a .json file.

Formula

The text is parsed with the browser's JSON parser, then written back out with the chosen indent (Format) or with no whitespace (Minify). If it is not valid JSON, the error and its line and column are shown instead.

Worked example

Formatting {"a":1,"b":[2]} gives a readable multi-line version. Minifying that result returns exactly {"a":1,"b":[2]} again.

Assumptions and limits

  • Integers larger than 9,007,199,254,740,991 lose precision when parsed; the formatter warns when it finds one.
  • Up to 5 MB of text. Very large files may feel slow on older phones.
  • Duplicate keys keep the last value, as JSON parsers do. Output is shown as plain text, never as HTML.

Questions

Is my JSON sent to a server?

No. Parsing and formatting happen in your browser, and nothing is stored.

Why did a large ID change?

JavaScript numbers are exact only up to 9,007,199,254,740,991. Larger integers are rounded when parsed; keep such IDs as strings.

Can it fix invalid JSON?

No, but it tells you exactly where the first error is. The JSON Validator gives more detail.