Skip to content
Calciyums

JSON Formatter

Format, minify and validate JSON, and see where the error is when it's invalid.

Developer

Input

Calculated in your browser; what you enter is never sent to a server.

Result

Formatted JSON

{
  "name": "Calciyums",
  "tools": [
    1,
    2,
    3
  ],
  "free": true
}
Type
Object
Keys
3
Size
79 characters

How does it work?

The JSON Formatter processes your JSON three different ways: formatting (pretty-printing) adds line breaks and indentation to make it easy to read, minifying strips all unnecessary whitespace and line breaks between key-value pairs to shrink the output, and validating checks whether the JSON is syntactically valid. You can choose 2 spaces, 4 spaces or a tab for indentation; that choice only appears in format mode. Example: paste {"name":"Calciyums","tools":[1,2,3],"free":true} and run Format with 2-space indentation — each key-value pair lands on its own line and the nested array is indented to show the structure; the result also tells you it's an Object with 3 keys. Switch the same input to Minify and every space and line break disappears, giving you a single-line, smaller output. Use this tool to make a compressed API response readable, shrink a configuration file before sending it, or quickly check whether a JSON file is actually still valid after you hand-edited it.

Example

{
  "name": "Calciyums",
  "tools": [
    1,
    2,
    3
  ],
  "free": true
}

Similar Tools

Toolbox Get your Toolbox ready.

Star the tools you use most and, with an account, they follow you to every device.

Create account

Frequently asked questions

Is my data sent to a server?

No. The JSON is processed in your browser and never leaves your device.

Why is my JSON invalid?

The usual culprits are trailing commas, single quotes, unquoted keys and missing brackets.

When is minifying useful?

Before sending a JSON file over the network, or when you want to shrink a configuration file's size; minifying trades readability for a smaller size.

Why can I change the indent (2 spaces, 4 spaces, tab)?

Different projects follow different style conventions — some teams prefer 2 spaces, others 4 spaces or a tab. This choice only appears in Format mode and doesn't affect Minify or Validate.

Can I paste a very large JSON?

Yes, the box accepts up to 2,000,000 characters, which is enough for most API responses and configuration files.