JSON Formatter

Format and validate JSON data with 2-space indentation

What is JSON Formatting?

JSON (JavaScript Object Notation) is a lightweight data-interchange format that is easy for humans to read and write, and easy for machines to parse and generate. Formatting adds indentation and line breaks to make JSON readable, while minifying removes all unnecessary whitespace.

When to Use This Tool

Examples

Format: {"name":"John","age":30} → {
  "name": "John",
  "age": 30
}

Minify: {
  "name": "John",
  "age": 30
} → {"name":"John","age":30}