Formateur JSON
Format, minify, or sort JSON online. Gratuit, privé et 100% côté client.
Essayer un exemple:
Local only
Historique récent
Aucun historique
Utilisation
- Paste JSON into the input box.
- Choose Format, Minify, or Sort keys mode.
- Copiez ou téléchargez le résultat.
Tâches utilisant cet outil
Appliquer JSON Patch (RFC 6902) operations
JSON Patch defines un sequence de operations (ajouter, supprimer, remplacer, move, copy, tester) en modify un JSON document atomically. TÂCHE
Convertir CSV data to structured JSON
Analyser a CSV table (with headers, quoted fields, embedded commas) into an array of JSON objects for programmatic access. TÂCHE
Convertir .env files to JSON
.env fichiers stocker KEY=VALUE pairs pour environment configuration. Convertir en JSON pour structured access, type casting, et validation. TÂCHE
Convertir INI configuration files to JSON
INI fichiers utiliser sections en brackets et key=value pairs. Convertir en JSON pour programmatic access, validation, et interoperability avec moderne outils. TÂCHE
Générer TypeScript interfaces from JSON data
Infer TypeScript types de un JSON sample donc you peut type API responses sans hand-writing interfaces. TÂCHE
Convertir JSON to YAML and back without losing data
Translate entre JSON et YAML pour config fichiers, preserving nested structures, tableaux, et scalar types across le round-trip. TÂCHE
Convertir Apple plist files to JSON
Apple propriété lists (plist) serialize données en XML ou binary formater. Convertir en JSON pour cross-platform utiliser et easier manipulation. TÂCHE
Convertir Java .properties files to JSON
Java .propriétés fichiers utiliser key=value pairs avec dot-notation pour nesting. Convertir en JSON pour utiliser en JavaScript environments et structured access. TÂCHE
Convertir TOML configuration to JSON
Analyser a TOML config file (used by Rust, Python projects) into JSON for tooling that expects JSON input. TÂCHE
Convertir XML to JSON and back
Translate entre XML et JSON pour interoperability avec hérité APIs, preserving attributes, namespaces, et mixed content. TÂCHE
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. TÂCHE
Coder 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. TÂCHE
Formater, valider, et repair malformed JSON
Prendre un JSON chaîne (possibly minified, avec trailing commas, ou comments) et produce valide, indented JSON avec erreur diagnostics. TÂCHE
Infer un JSON Schéma de sample données
Générer a JSON Schema that describes the structure of a JSON instance, for validation and documentation. TÂCHE
Inspecter un JWT jeton: décoder en-tête et payload sans verifying
Lire le structure de un JSON Web Jeton en see its algorithme, claims, et expiry — purely client-side, aucun serveur validation. TÂCHE
Migrate configuration entre JSON et 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. TÂCHE
Appliquer JSON Fusionner Patch (RFC 7396)
JSON Fusionner Patch applies un partial JSON objet en mettre à jour un document — nul valeurs supprimer clés, autre valeurs remplacer them. Simpler than JSON Patch. TÂCHE
Analyser JSON5 — JSON with relaxed syntax
JSON5 extends JSON avec comments, trailing commas, unquoted clés, single quotes, et plus. Apprendre le syntax extensions et conversion en standard JSON. TÂCHE
Analyser NDJSON (Newline-Delimited JSON)
NDJSON stores one JSON objet per ligne, enabling streaming et ligne-par-ligne processing. Commun en logs, API streaming, et big données pipelines. TÂCHE
Analyser OAuth 2.0 token responses
OAuth 2.0 returns access_token, token_type, expires_in, et optionally refresh_token. Apprendre en analyser et utiliser le jeton réponse correctly. TÂCHE
Formater minified JSON so it can be read (and diffed)
Turn un one-ligne API réponse en indented JSON, avec precise erreur locations quand le entrée est non valide JSON at tout. TÂCHE
Stream JSON données pour memory-efficient processing
Streaming JSON parsers process données incrementally sans loading le entire document en memory. Essential pour large JSON fichiers et real-time APIs. TÂCHE
Décoder nested URL-encoded parameters (Base64 JSON in a query string)
Unwrap le commun API motif où un URL parameter carries URL-encoded Base64 JSON — one chain, three outils, zero copy-pasting entre pages. TÂCHE
Utiliser JSON-LD pour linked données et SEO
JSON-LD (Linked Données) serializes RDF triples en JSON, enabling search engines en understand entity relationships. Utilisé pour Schéma.org structured données. TÂCHE
Utiliser JSON Pointer (RFC 6901) en référence valeurs
JSON Pointer defines un chaîne syntax pour identifying un spécifique valeur en un JSON document utilisant slash-separated path tokens. TÂCHE
Utiliser MQTT topic structure pour IoT messaging
MQTT topics utiliser slash-separated hierarchies avec wildcards pour subscription. Apprendre topic design, QoS levels, et retained messages. TÂCHE
Utiliser TOML tableaux et tableau de tables
TOML supports tableaux de primitives et tableaux de tables. Apprendre le syntax pour inline tableaux, multi-ligne tableaux, et [[table]] tableaux pour structured données. TÂCHE
Pipelines utilisant cet outil
Comparer deux configs YAML via JSON
PIPELINE
Coder une charge utile JSON pour transport URL
PIPELINE
HJSON en format JSON
PIPELINE
Formater JSON et calculer une somme de contrôle d'intégrité
PIPELINE
Minifier et valider JSON
PIPELINE
Formater JSON et générer une interface TypeScript
PIPELINE
Valider, formater, puis convertir JSON en YAML
PIPELINE
JSON5 en format JSON
PIPELINE
JSONC en format JSON
PIPELINE
Décoder et formater une charge utile JWT
PIPELINE
Analyser chaîne de requête et formater JSON
PIPELINE
Convertir TOML en JSON
PIPELINE
Convertir TOML en YAML via JSON
PIPELINE
Decoder un parametre URL imbrique (Base64 JSON)
PIPELINE
Generer des interfaces TypeScript depuis YAML
PIPELINE
Questions fréquentes
- 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.
- Que fait Minify mode ?
- Minifier 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.
Outils associés
Validateur JSON
Validate JSON and pinpoint syntax errors by line and column. Gratuit, privé et 100% côté client. OUTIL
Convertisseur YAML
Convert between YAML and JSON online. Gratuit, privé et 100% côté client. OUTIL
Convertisseur CSV
Convert between CSV and JSON online. Supports comma, semicolon, and tab delimiters. Gratuit, privé et 100% côté client. OUTIL
Encodeur Base64
Encode text or binary data to Base64 online. Gratuit, privé et 100% côté client. OUTIL
Convertisseur de casse
Convert text between upper, lower, title, camel, pascal, snake, kebab, constant, and sentence cases. Gratuit, privé et 100% côté client. OUTIL