इस टूल में कोई समस्या है?

«JSON फ़ॉर्मेटर ऑनलाइन» के बारे में

यह टूल JSON दस्तावेज़ों को फॉर्मेट और मिनिफाई करता है। Pretty-print मोड में यह पठनीय बनाने के लिए indentation और लाइन ब्रेक जोड़ता है। Minify मोड में यह सभी व्हाइटस्पेस को हटाता है।

अतिरिक्त विकल्पों में object keys को alphabetically sort करना शामिल है — version control में stable diff के लिए उपयोगी।

फॉर्मेटर output वापस करने से पहले JSON संरचना को server-side पर validate करता है।

इस टूल का उपयोग कैसे करें

How to format or minify JSON

  1. Paste your JSON

    Paste any JSON text — an object, array, or primitive — into the JSON field. The tool validates the structure on the server and returns an error message if the input is not valid JSON.

  2. Choose output mode

    Select Pretty-print to add indentation and line breaks so the structure is human-readable, or Minify to remove all unnecessary whitespace and produce a compact single-line payload. The default is pretty-print.

  3. Adjust indent and options (pretty only)

    For pretty-print, set the indent to 2, 4, or 8 spaces, or use tabs. Optionally enable Sort object keys to produce alphabetically stable output (useful for diffs), or enable Trailing newline for tools that require it.

  4. Run and copy the result

    Press Run. The formatted or minified JSON appears in the output area. Click Copy to grab the result. If you need a file, paste into a text editor and save as .json.