Skip to content
Yunedia Tools

Formateur et validateur JSON

Formatez, minifiez, triez et validez du JSON dans votre navigateur, avec un signalement précis des erreurs d'analyse. Rien n'est envoyé à un serveur.

input characters: 0 / output characters: 0

Comment utiliser

Paste JSON into the input, then use Format for a pretty-printed result, Minify for a compact one, or Sort keys to order object keys alphabetically at every level (array order is preserved). Validate only checks the input without touching the output. Indentation can be 2 spaces, 4 spaces or tabs.

Remarques

Everything runs in your browser; your JSON is never sent to a server. Syntax errors show the browser's own JSON parser message. Very large documents may take a moment to format.

Questions fréquentes

Can it format JSON with comments (JSONC)?

No. It uses the standard JSON parser, so comments and trailing commas produce an error.

How are numeric-looking keys sorted?

Keys are sorted as strings, so "10" comes before "2".