JSON Formatter

 


This formatter allows to beautify (pretty), minify, view, validate and escape JSON code.

You can see the user guide to help you to use this JSON Formatter tool.

User guide

  • How to beautify JSON:
    Click on the "Beautify" button to beautify JSON code. It allows to easily read JSON string by human beings.
  • How to minify JSON:
    Click on the "Minify" button to minify data. This minifier removes whitespace and new line.
  • How to validate JSON:
    There is nothing to do! As soon as you edit the JSON in the editor, it is automatically parser to validate its syntax! In case of error, it indicates where the problem is located.
  • How to edit / change JSON:
    Copy and paste or directly type in the editor above. You can also upload a file containing the json code to validate (Click on the "Browse" button).
  • How to recover formatted or minified JSON:
    Click on "Download" button to download the editor content.
    Click on "Copy to clipboard" button to copy the editor content to the clipboard.
  • How to share a JSON string:
    Click on "Save" button in "Save and Share" box to save and share your JSON string.
    Your JSON string will be shared and will be accessible to everyone online via a specified url.
  • How to load JSON from a URL:
    Click on "Load from URL" button in order to enter the URL of your JSON to load in the editor.
  • How to escape JSON string:
    Click on "Escape" button in order to escape JSON string.
    Click on "Unescape" button in order to unescape JSON string.
  • How to visualize JSON code in a JSON viewer:
    Click on "Tree" button in order to view the JSON string as a tree.

JSON Validator

This JSON formatter tool was created to help debug JSON. JSON strings are not often very readable for a human (without line breaks), especially if they are bulky. This tool allows to easily read and debug JSON by human.

This tool is also a JSON checker and validator: You can check JSON online without any click. When you fill out the editor, your JSON data is automatically verified, and a message tells you whether your JSON is valid or not.

You can also minify your JSON (The opposite of pretty JSON, it removes all unnecessary characters).

Finally, you can also escape / unescape JSON data. For example, this can be useful for embedding JSON in code.

With this tool, it is fast and simple, just fill in the editor, and click on the button of the desired action. There is no need for installation or registration!

If you want compare REST API Responses, you can use our Online JSON diff tool.


About JSON

JSON (JavaScript Object Notation) is an open-standard format for storing and transporting data, it was derived from JavaScript object notation syntax. It is human readable. JSON is often used for asynchronous browser–server communication.

JSON became a very common format, many programming languages include code to generate and parse JSON-format data.

Why use JSON?

There are plenty of reasons to use JSON :)

  • It is human readable. Some people prefer the YAML format, personally I am not used to reading YAML and so I sometimes have trouble reading it.
  • It is relatively compact for a human readable
  • It is a very common format, it is easy to parse in many programming languages
  • It is easy to describe and validate with JSON Schema
  • If you code in JavaScript / NodeJS!
  • There are many JSON libraries

Save JSON string
Your JSON string has been permanently saved and you (or anybody) can access with this link:
Password
Choice a password to modify/delete this JSON string later
(Be careful, the data will be accessible to everyone)
Enter password to modify this JSON string. Enter password to delete this JSON string. Enter the new password for the fork.
Load from URL
You can report a bug or give feedback by adding a comment (below) or by clicking "Contact me" link (at the top right hand corner of the page).

Comments