What is JSON?
JSON (JavaScript Object Notation) is a lightweight, text-based data format for storing and exchanging structured data as key/value pairs and ordered lists. It is language-independent, easy for humans to read and machines to parse, and is the default format for web APIs and configuration.
A JSON document is built from two structures: objects (unordered key/value pairs in { }) and arrays (ordered lists in [ ]). Values can be strings, numbers, booleans, null, objects or arrays. Keys and strings use double quotes; there are no comments and no trailing commas.
JSON became the lingua franca of web APIs because it maps directly onto data structures in almost every language and parses natively in browsers. It is also widely used for configuration, logging and data storage.
JSON tools
Formateador de JSON
Formatea, valida y minifica JSON en línea. Gratis, sin necesidad de registro — tus datos nunca salen de tu navegador.
Abrir herramientaConversor de JSON a YAML
Convierte JSON a YAML directamente en el navegador. Cumple la especificación YAML 1.2.
Abrir herramientaConvertidor de JSON a CSV
Convierte un array de objetos JSON a CSV. Incluye una opción para aplanar (flatten) los datos anidados usando notación dot-path.
Abrir herramientaValidador de JSON5
Valida JSON5 con mensajes de error que incluyen número de línea y columna. Admite comentarios, comas finales, comillas simples y números hexadecimales.
Abrir herramientaPreguntas frecuentes
¿Qué es JSON5?
JSON5 es una extensión de JSON con funciones adicionales: comentarios, comas finales, cadenas entre comillas simples, claves sin comillas, números hexadecimales/Infinity/NaN, y mucho más.
¿Es JSON5 lo mismo que JSONC?
No. JSONC (el "JSON con comentarios" de VS Code) solo añade comentarios. JSON5 además agrega comas finales, claves sin comillas, comillas simples, etc.
¿Hay alguna herramienta relacionada?
<a class="text-brand-600 hover:underline" href="/json-formatter">JSON Formatter</a> para JSON estándar estricto; <a class="text-brand-600 hover:underline" href="/yaml-formatter">YAML Formatter</a> si necesitas un procesamiento completo de YAML.