Herramientas JSON
A single place to format, minify and validate JSON, plus convert between JSON and CSV. Everything runs in your browser — no upload.
Input
Output
A complete JSON workbench in your browser
JSON is everywhere — API responses, config files, NoSQL exports, log entries. This page bundles the operations developers and analysts need every day:
Formatear (pretty-print)
Turn a one-line minified blob or messy hand-written JSON into a clean, indented document. Choose 2 spaces, 4 spaces or a real tab character. Useful for reading API responses, sharing snippets in bug reports, or pasting into documentation.
Minificar
Strip every unnecessary character from JSON to ship the smallest possible payload. Typical savings are 20-40% on real-world data; on heavily indented configs the savings can hit 60%. The status bar shows the exact byte difference and percent saved.
Validar
Verify your JSON parses cleanly. On error, we display the engine's message plus a guessed line and column number with a 2-line snippet showing exactly where parsing broke. This works even in browsers and runtimes that no longer include positions in error messages — we figure it out ourselves.
JSON ↔ CSV
Convert an array of objects to CSV with one click. Nested objects are flattened with
dot-notation (so {"user":{"name":"Alice"}} becomes a column user.name).
Nested arrays are serialized as JSON strings inside their cells. Rows with different keys produce
the union of all columns — missing fields become empty cells. The CSV → JSON direction handles
quoted fields, embedded commas, and escaped quotes correctly (we use the battle-tested
PapaParse library).
Privacidad
Everything runs locally. Your JSON, your CSV, your secrets — none of it leaves the browser tab. The only network request is the one-time CDN load of PapaParse. We don't even see file sizes.
Casos de uso frecuentes
- Pretty-print an unreadable API response from
curl. - Minify a config file before embedding it in a script.
- Validate a JSON Schema document or LLM-generated structured output.
- Export a spreadsheet to JSON for use in a frontend app.
- Convert API results to CSV for analysis in Excel or Google Sheets.
Preguntas Frecuentes
- ¿Cómo formateo JSON en línea?
- Pega tu JSON en el campo de entrada y haz clic en Formatear. La herramienta lo embellece instantáneamente con la indentación elegida (2 espacios, 4 espacios o tabulaciones). Todo se ejecuta completamente en tu navegador — no se sube ningún dato a ningún servidor.
- ¿Esta herramienta JSON sube mis datos a un servidor?
- No. Todo el formateo, minificación, validación y conversión ocurre completamente en la pestaña de tu navegador usando JavaScript. Tu JSON nunca sale de tu dispositivo. La única solicitud de red es la carga única de la librería PapaParse desde CDN para la conversión CSV.
- ¿Puedo convertir JSON a CSV y CSV a JSON?
- Sí. Haz clic en JSON a CSV para convertir un array de objetos en un archivo CSV descargable. Los objetos anidados se aplanan con notación de puntos. Para la operación inversa, pega datos CSV y haz clic en CSV a JSON — maneja campos entre comillas, comas incrustadas y comillas escapadas correctamente usando la librería PapaParse.
- ¿Qué pasa cuando mi JSON tiene un error de sintaxis?
- La función Validar detecta errores de sintaxis y te muestra el número exacto de línea y columna donde falló el análisis, junto con un fragmento de código de 2 líneas. Esto funciona incluso en entornos que ya no incluyen información de posición en los mensajes de error — nuestra herramienta lo calcula independientemente.
- ¿Este formateador de JSON es realmente gratis?
- Sí, completamente gratis sin límites. No hay registro, no hay cuenta, no hay límite de tamaño de archivo y no hay nivel premium. Puedes formatear, minificar, validar y convertir tantas veces como quieras. La herramienta se mantiene solo con anuncios opcionales.