Formateador de JSONJSON Formatter
Formatea, valida y minifica JSON al instante. Detecta errores con la línea exacta.
Format, validate and minify JSON instantly. Detects errors with the exact line number.
Formateador y validador de JSON online gratuitoFree online JSON formatter and validator
Pega cualquier JSON —comprimido, mal indentado o recibido de una API— y fórmatelo al instante con coloreado de sintaxis. Si hay algún error, la herramienta indica la línea y columna exactas donde se produce.
Soporta indentación de 2 espacios, 4 espacios o tabulación, y permite minificar el JSON para reducir su tamaño antes de enviarlo. Todo ocurre en tu navegador: ningún dato se transmite al servidor.
Preguntas frecuentesFrequently asked questions
¿Qué es JSON?What is JSON?
JSON (JavaScript Object Notation) es un formato ligero de intercambio de datos. Es fácil de leer para humanos y de procesar para máquinas, y es el estándar de facto para APIs web.JSON (JavaScript Object Notation) is a lightweight data interchange format. It is easy for humans to read and machines to parse, and the de facto standard for web APIs.
¿Cómo sé si mi JSON es válido?How do I know if my JSON is valid?
Un JSON válido debe tener llaves y corchetes correctamente emparejados, claves entre comillas dobles y comas correctas. Esta herramienta detecta el error exacto con número de línea.Valid JSON must have properly matched braces and brackets, double-quoted keys and correct commas. This tool pinpoints the exact error with its line number.
¿Cuál es la diferencia entre formatear y minificar JSON?What is the difference between formatting and minifying JSON?
Formatear añade saltos de línea e indentación para hacerlo legible a humanos. Minificar elimina espacios innecesarios para reducir el tamaño, útil para producción y transferencia de datos.Formatting adds line breaks and indentation to make it human-readable. Minifying removes unnecessary whitespace to reduce size, useful for production and data transfer.
¿Cuál es la diferencia entre JSON y XML?What is the difference between JSON and XML?
JSON es más compacto y fácil de parsear en JavaScript. XML es más verboso pero soporta atributos, comentarios y namespaces. JSON ha reemplazado a XML en la mayoría de APIs modernas.JSON is more compact and easier to parse in JavaScript. XML is more verbose but supports attributes, comments and namespaces. JSON has replaced XML in most modern APIs.