tools
Ejecución local

Formateador JSON

Procesado en tu dispositivo · Sin subidas

Formatea o minifica tus datos JSON al instante.

Entrada JSON
Formatear / Minificar
Sangría
Resultado

Cómo formatear JSON

  1. Pega tus datos JSON en el área de entrada de la izquierda.
  2. Elige la sangría (2 espacios, 4 espacios o tabulador) y el modo de formateo o compresión.
  3. Revisa el resultado formateado a la derecha y haz clic en Copiar para copiar al portapapeles.

The JSON formatter neatly indents JSON that's crammed onto one line, or does the opposite and minifies it by stripping whitespace. It's especially handy for developers inspecting API responses, tidying config files, or hunting down syntax errors.

Format vs minify

Formatting adds indentation and line breaks so the structure is easy to scan; minifying removes unnecessary whitespace to shrink the file and speed up transfer. Choose 2 spaces, 4 spaces, or tabs for indentation.

Finding syntax errors

Paste invalid JSON and it tells you where the problem is, catching common mistakes like missing quotes or stray commas. Everything runs in your browser, so even sensitive data stays safe.

Preguntas frecuentes

¿Qué pasa si mi JSON no es válido?
Aparecerá un mensaje de error indicando exactamente dónde ocurrió el error de sintaxis.
¿Qué es la compresión (Minify) de JSON?
La compresión elimina todos los espacios y saltos de línea innecesarios, comprimiendo el JSON en una sola línea. Útil para reducir el tamaño de archivos o cargas de API.
¿Se envían mis datos a un servidor?
No. Todo el procesamiento ocurre localmente en tu navegador — tus datos nunca salen de tu dispositivo.
Is my data sent to a server?
No. All formatting and validation happens entirely in your browser and is never transmitted.
Can it handle large JSON?
Yes. Typical sizes are no problem; very large files may be a little slower depending on your device.

Herramientas relacionadas