1. Open xml to json converter tool.
  2. Just paste your xml data in the left side panel.
  3. You see your converted json data in the right side panel.
  4. If XML syntax is not proper it shows an alert on the top side.

What are XML and JSON languages?

JSON is short for JavaScript Object Notation and it is a way to store information in an organized, easy-to-access manner.Json gives us a human readable code of data that human can access in a logical manner.

The following topics are addressed here:

  1. JSON Syntax.
  2. Data Type.

JSON defines two data structures: arrays and objects.
An object is a set of key and value pairs, and array is a list of values. JSON defines seven value types: object,array, string, number, true, false, and null.

The given example for JSON for the object that contains key and value pairs. The value for the name "firstName" is an object with the value "John" and The value for the name "phoneNumbers" is an array whose elements are two objects.

Sample JSON

            "firstName": "John",
            "lastName": "Smith",
            "isAlive": true,
            "age": 27,
            "address": {
              "streetAddress": "21 2nd Street",
              "city": "New York",
              "state": "NY",
              "postalCode": "10021-3100"
            "phoneNumbers": [
                "type": "home",
                "number": "212 555-1234"
                "type": "office",
                "number": "646 555-4567"
            "children": [],
            "spouse": null


Use of JSON

JSON is often used as common format to serialize and deserialize data in applications that communicates with each other via Internet. These applications are created using different programming languages and can be run in different suitable environments. JSON is suited to this scenario because it is an open standard, Json is easy to read and write and it is more compact than other representations.

RESTful web services use JSON as the format for the data inside requests - responses. The HTTP header is used to indicate that the content of a request or a response is JSON data is:

Content-Type: application/json

JSON representations are usually more compact data than XML representations because JSON does not have closing tags. Unlike XML, JSON does not have a widely accepted schema for defining and validating the structure of JSON data. Thus effectively reduces the length of data.

What Is XML?

Extensible Markup Language (XML) is a markup language that defines a set of rules for encoding documents in format that is both machine-readable and human-readable. The World Wide Web Consortium's XML 1.0 Specification of 1998 and several other related specifications all of them are free open standards—define XML.

  1. XML stands for eXtensible Markup Language.
  2. XML is a markup language much like HTML.
  3. XML is platform-independent and language-independent.
  4. XML tags are not predefined. You must define your own tags.
  5. XML was designed to store and transport data.
  6. XML was designed to be self-descriptive.
  7. XML became a W3C Recommendation on February 10, 1998.

Sample XML

Features we provide for xml to json converter ?

Code Converter

Simple and Free xml to json converter tool.


Format your Code.

Data History

Restore Code from History.

Data Import

Import Code from URL or File.


Download your data file just by one click!

Try Sample

Quickly load sample data.

Totally free

Code Compare tools and converter are absolutely free.

Fully responsive

All pages are compatible with all devices.

* Note: xml to json converter supports all browsers in window, Mac, Linux. Best use in IE11 + or Chrome.