Formatação de JSON

Formate, valide, minimize e converta dados JSON on-line. Suporta modo árvore, conversão JSON para XML/CSV/YAML. Tudo acontece no navegador — nenhum dado é enviado a servidores.

Converter para:
📁 Enviar arquivo JSON ou arraste e solte aqui

JSON de entrada

Saída


        
      

What is JSON Formatter?

JSON Formatter is a free online tool that helps you format, validate, minify and convert JSON data. Supports tree view navigation, JSON to XML/CSV/YAML conversion. All processing is done in your browser — your data never leaves your device.

Features

  • Format (Beautify) — Add indentation (2 or 4 spaces) to make JSON readable
  • Minify (Compress) — Remove all whitespace to reduce file size
  • Validate — Check JSON syntax with exact error location and line number
  • Tree View — Collapsible hierarchy display for navigating large JSON
  • Format Conversion — Convert JSON to XML, CSV, YAML
  • Copy & Download — One-click copy to clipboard or download as file
  • File Upload — Load JSON from local file

Common JSON Errors Detected

  • Missing commas between elements
  • Trailing commas before closing brackets
  • Single quotes instead of double quotes
  • Unquoted property names
  • Missing closing brackets

Tip: Click the "Sample" button to load example JSON and quickly test the formatter.