Beautify your JSON. Validate and format it. Indent as you wish. Remove double quotes around numbers. Remove double quotes on keys. Collapse short arrays.


Ctrl + A then Ctrl + C to copy to clipboard.

About JSON

  • JSON stands for JavaScript Object Notation. It is a lightweight data-interchange format and fully described on
  • JSON is based on Javascript but the format is stricter. JSON requires double quotes around keys whereas Javascript does not. For example, this is valid Javascript:
    {pi: 3.14159265359, e: 2.7182818284, prime: [2, 3, 5, 7, 11, 13, 17, 19]}
    However the above is not valid JSON. Double quotes must be placed around pi, e and prime.
    {"pi": 3.14159265359, "e": 2.7182818284, "prime": [2, 3, 5, 7, 11, 13, 17, 19]}
    JSON Beautifier has a toggle to drop quotes on keys. It can do so if Javascript allows it. For example, we cannot drop quotes around key "1+6".
  • Modern browsers have a built-in global object JSON with encoding and decoding functions. These are:
    • JSON.stringify to encode a Javascript object into a JSON string; and
    • JSON.parse to parse a JSON string and convert it to a Javascript object.
    To support older browsers, use JSON2 written by Douglas Crockford as polyfill.

Change Log

  • Sep 27, 2016 Bug fix: Inline short arrays bug fix and improvement. Added nesting depth option. GitHub issue #12
  • Aug 22, 2016 Bug fix: Inline short arrays was not working properly. GitHub issue #9
  • Dec 30, 2015 Bug fix: drop quotes on keys of nested objects.
  • Jun 1, 2015 Bug fix: proper support of commas inside quotes.
  • Jan 12, 2014 Initial release.


Code available on Github. Report bugs or ask for improvements either through Github issues or by writing a Disqus comment.