JSON Formatter

Format, minify and validate JSON with clear error messages.

Loading tool…

What is the JSON Formatter?

The Convertlyst JSON Formatter formats, minifies and validates JSON in your browser, with error messages that point to the line and column of the problem. It is free and your data is not uploaded.

Quick facts about the JSON Formatter
ActionsFormat (pretty-print), minify, validate
ErrorsLine, column and a pointer to the problem
OptionsSort keys alphabetically
AcceptsStrict JSON only
Where it runsIn your browser (nothing uploaded)
PriceFree, no sign-up

About the JSON Formatter

The JSON Formatter makes JSON readable, compact or checked. Paste JSON, then format it with your preferred indentation, minify it, or just validate it. When the JSON is invalid, the tool points to the exact line and column.

Parsing happens in your browser, so your data is not sent anywhere by this tool.

How to use it

  1. Paste JSON into the input box.
  2. Choose an indentation of 2 spaces, 4 spaces or a tab, and optionally sort keys A to Z.
  3. Press Format, Minify or Validate.
  4. Copy the output.

Features

  • Pretty-print, minify and validate.
  • Error messages with line, column and a pointer to the problem.
  • Optional alphabetical key sorting.

Limits and good to know

  • Only strict JSON is accepted. Comments, trailing commas and single-quoted strings are reported as errors.
  • JavaScript stores numbers as 64-bit floating-point values, so integers with 16 or more digits can be rounded. The tool warns you when it sees any.
  • Very large documents (tens of megabytes) may be slow in your browser.
  • Sorting keys changes the order of properties in the output, but not their values.

Privacy

The JSON Formatter runs in your browser. It needs no extra processing library, and your input is not uploaded by this tool. See the Privacy Policy for the full list of third-party resources used by the site. Privacy Policy

Frequently asked questions

Why does my JSON show an error?

Common causes are a trailing comma, single quotes instead of double quotes, or an unquoted property name. The message shows where the parser stopped.

Is my JSON uploaded?

No. It is parsed locally in your browser.

Can I format JSON with comments?

No. Comments are not part of the JSON standard, so remove them first.

How do I validate JSON online?

Paste your JSON into the editor and run the validator. If the JSON is valid you get a confirmation. If not, the message shows the line and column where parsing failed.

How do I minify JSON?

Use the minify option. It removes spaces and line breaks without changing the data, which makes the text smaller for storage or transfer.

Related tools

Last reviewed: November 20, 2026

Processing…