Saltar al contenido
uencoder

Formateador JSON

Format, minify, or sort JSON online. Gratis, privado y 100% del lado del cliente.

Probar un ejemplo:
Local only

Historial reciente

Sin historial aún

Uso

  1. Paste JSON into the input box.
  2. Choose Format, Minify, or Sort keys mode.
  3. Copie o descargue el resultado.

Tareas que usan esta herramienta

Aplicar JSON Patch (RFC 6902) operations
JSON Patch defines un sequence de operations (añadir, eliminar, reemplazar, move, copy, probar) a modify un JSON documento atomically.
TAREA
Convertir CSV data to structured JSON
Analizar a CSV table (with headers, quoted fields, embedded commas) into an array of JSON objects for programmatic access.
TAREA
Convertir .env files to JSON
.env archivos almacenar KEY=VALUE pairs para environment configuración. Convertir a JSON para structured access, tipo casting, y validation.
TAREA
Convertir INI configuration files to JSON
INI archivos usar sections en brackets y key=value pairs. Convertir a JSON para programmatic access, validation, y interoperability con moderno herramientas.
TAREA
Generar TypeScript interfaces from JSON data
Infer TypeScript tipos de un JSON sample así que you puede tipo API responses sin hand-writing interfaces.
TAREA
Convertir JSON to YAML and back without losing data
Translate entre JSON y YAML para config archivos, preserving nested estructuras, arreglos, y scalar tipos across el round-trip.
TAREA
Convertir Apple plist files to JSON
Apple propiedad lists (plist) serialize datos en XML o binary formatear. Convertir a JSON para cross-platform usar y easier manipulation.
TAREA
Convertir Java .properties files to JSON
Java .propiedades archivos usar key=value pairs con dot-notation para nesting. Convertir a JSON para usar en JavaScript environments y structured access.
TAREA
Convertir TOML configuration to JSON
Analizar a TOML config file (used by Rust, Python projects) into JSON for tooling that expects JSON input.
TAREA
Convertir XML to JSON and back
Translate entre XML y JSON para interoperability con heredado APIs, preserving attributes, namespaces, y mixed content.
TAREA
Convertir XML to YAML
Convertir XML documents to YAML for more readable configuration files. YAML's indentation-based syntax is cleaner than XML's tags for human-authored data.
TAREA
Codificar binary data into a JSON-safe string
Convertir raw bytes (images, encrypted blobs, file contents) into a Base64 string that can be embedded inside a JSON field without breaking the structure.
TAREA
Formatear, validar, y repair malformed JSON
Tomar un JSON cadena (possibly minified, con trailing commas, o comments) y produce válido, indented JSON con error diagnostics.
TAREA
Infer un JSON Esquema de sample datos
Generar a JSON Schema that describes the structure of a JSON instance, for validation and documentation.
TAREA
Inspeccionar un JWT token: decodificar encabezado y payload sin verifying
Leer el estructura de un JSON Web Token a see its algoritmo, claims, y expiry — purely cliente-side, no servidor validation.
TAREA
Migrate configuración entre JSON y YAML
Convertir a JSON config to YAML (or back) with a formatted intermediate step, and know the type-coercion pitfalls before you commit the file.
TAREA
Aplicar JSON Fusionar Patch (RFC 7396)
JSON Fusionar Patch applies un partial JSON objeto a actualizar un documento — nulo valores eliminar claves, otro valores reemplazar them. Simpler than JSON Patch.
TAREA
Analizar JSON5 — JSON with relaxed syntax
JSON5 extends JSON con comments, trailing commas, unquoted claves, single quotes, y más. Aprender el syntax extensions y conversión a estándar JSON.
TAREA
Analizar NDJSON (Newline-Delimited JSON)
NDJSON stores one JSON objeto per línea, enabling streaming y línea-por-línea processing. Común en logs, API streaming, y big datos pipelines.
TAREA
Analizar OAuth 2.0 token responses
OAuth 2.0 returns access_token, token_type, expires_in, y optionally refresh_token. Aprender a analizar y usar el token respuesta correctly.
TAREA
Formatear minified JSON so it can be read (and diffed)
Turn un one-línea API respuesta en indented JSON, con precise error locations cuando el entrada es no válido JSON at todo.
TAREA
Stream JSON datos para memory-efficient processing
Streaming JSON parsers process datos incrementally sin loading el entire documento en memory. Essential para large JSON archivos y real-time APIs.
TAREA
Decodificar nested URL-encoded parameters (Base64 JSON in a query string)
Unwrap el común API patrón donde un URL parameter carries URL-encoded Base64 JSON — one chain, three herramientas, zero copy-pasting entre páginas.
TAREA
Usar JSON-LD para linked datos y SEO
JSON-LD (Linked Datos) serializes RDF triples en JSON, enabling search engines a understand entity relationships. Usado para Esquema.org structured datos.
TAREA
Usar JSON Pointer (RFC 6901) a referencia valores
JSON Pointer defines un cadena syntax para identifying un específico valor en un JSON documento usando slash-separated path tokens.
TAREA
Usar MQTT topic estructura para IoT messaging
MQTT topics usar slash-separated hierarchies con wildcards para subscription. Aprender topic design, QoS levels, y retained messages.
TAREA
Usar TOML arreglos y arreglo de tablas
TOML supports arreglos de primitives y arreglos de tablas. Aprender el syntax para inline arreglos, multi-línea arreglos, y [[table]] arreglos para structured datos.
TAREA

Pipelines que usan esta herramienta

Preguntas frecuentes

How do I pretty-print JSON?
Paste your JSON and choose the Format mode to get 2-space indented output with one key per line.
Can I sort object keys?
Yes. Select the Sort keys mode to recursively order object keys alphabetically while preserving array order. Nested objects are sorted too.
¿Qué hace Minify mode?
Minificar removes all optional whitespace, producing the shortest valid single-line JSON. Useful for reducing payload size before transmission.
How are syntax errors reported?
The tool catches JSON.parse errors and extracts the position to report the line and column, e.g. 'Syntax error at line 3, column 12'.
Does the tool preserve number precision?
Numbers are parsed and re-serialized by the JavaScript engine. Very large integers may lose precision beyond Number.MAX_SAFE_INTEGER (2^53 - 1); use strings for such values.
Is the output safe to embed in HTML?
The output is plain text. When embedding JSON in HTML, wrap it in a <script type="application/json"> tag or escape < and & to prevent XSS.

Herramientas relacionadas