<

Online JSON Validator and Editor

Validate, format, import and export JSON in your browser.

Ready
JSON Input
Result Real-time validation

How to use the JSON editor

Paste or type JSON in the input panel. On every change, the editor tries to parse it: valid JSON appears in the result panel with two-space indentation; otherwise, the browser syntax error is displayed. Format rewrites the input with indentation.

  1. Paste JSON in the input panel or use Import to open a .json file.
  2. Check the status (Valid JSON or Syntax error) and the formatted result.
  3. Correct the part indicated by the error message and check that the status turns green.
  4. Use Format to indent the input, Copy result, or Export .json to download the current tab.

Examples

Fixing invalid JSON

Input with errors
{'nome': 'Ana', "idade": 30,}
Valid JSON
{
  "nome": "Ana",
  "idade": 30
}

There are three issues: single quotes around keys and values, and a trailing comma after the last item. JSON requires double quotes and does not allow trailing commas.

Common errors and fixes

ProblemCauseHow to fix it
Trailing comma A comma after the last object property or array item. Remove the comma after the final element.
Single quotes Keys or strings enclosed in single quotes. Use double quotes (").
Unquoted key JavaScript object syntax, such as {nome: "Ana"}. Enclose the key in double quotes: {"nome": "Ana"}.
Comments Lines containing // or /* */ are not part of standard JSON. Remove comments or use a format that supports them, such as JSONC or YAML.
Invalid values undefined, NaN, Infinity and unquoted dates are not JSON. Use null, a valid number or a quoted string.
Line break inside a string A literal line break inside a quoted value. Replace it with \n inside the string.

What this tool does and does not do

Privacy and storage

Your input is processed in your browser and is not sent to Novemax. Each tab is saved in your browser local storage (localStorage), so you can return to it later. On a shared computer, clear your tabs before leaving. The site uses Google Analytics and Google AdSense according to your cookie preferences; these services do not receive the text you type in the editor.

Frequently asked questions

Is my data sent to a server?

No. Validation and formatting run in your browser using JavaScript. Your input is not sent to Novemax. It is saved only in browser local storage until you clear the tab or delete the site data.

Can I paste JSON containing sensitive data?

The text stays in your browser but is saved locally. On a shared computer, clear your tabs before leaving. Avoid pasting production keys and passwords into any online tool.

What is the difference between validating and formatting?

Validation checks syntax. Formatting reorganizes spaces and line breaks and only works with valid JSON.

Why does the editor accept JSON that my API rejects?

Your API may require a particular schema, including required fields and types. This editor checks syntax only.

Is there a size limit?

The tool has no fixed size limit, but large files depend on your browser memory and may slow down the page.

Keep learning

Updated on October 27, 2026 · Tool maintained by Novemax. Found an issue or have a suggestion? Contact us.