Plist to JSON screenshot

Plist to JSON

Convert an XML property list to JSON: dictionaries, arrays, strings, integers, reals, booleans, dates and data, with the tree checked.

Privacy First
0 Runs
Updated 2026-11-17
Runs in your browser
No sign-up, no upload

What the Plist to JSON does

The parser reads the elements, not the text: <dict> alternates <key> elements with values, <array> holds values, and <string>, <integer>, <real>, <true/>, <false/>, <date> and <data> are read as their own types. A <key> followed by a stray element is refused, and a closing tag that does not match the open one is refused with its name.

XML entities in text are decoded, so &amp; becomes & in the JSON string.

<date> becomes the ISO string it carried and <data> becomes its base64 text, because JSON has no date or binary type — the page does not invent one. Comments are stripped; a plist with two root keys is not a plist and is refused.

How to use it

Paste the property list into the Property list box, or press Run with the example already there.

Read the JSON below: a dict becomes an object and an array becomes an array, in document order.

Check a <true/> element — it becomes the JSON boolean true, not the string "true".

Worked example

Input:

<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0"><dict><key>name</key><string>Ada</string><key>tags</key><array><string>a</string><string>b</string></array><key>ok</key><true/></dict></plist>

Output:

{
  "name": "Ada",
  "tags": [
    "a",
    "b"
  ],
  "ok": true
}

Why it runs in your browser

The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.

An XML property list read into a tree and printed as JSON: `dict` becomes an object, `array` an array, and the scalar elements keep their own type.

An element the page does not know is refused by name, because a plist silently losing a value is worse than a conversion that stops.

What it does, and what it does not

The parser reads the elements, not the text: `<dict>` alternates `<key>` elements with values, `<array>` holds values, and `<string>`, `<integer>`, `<real>`, `<true/>`, `<false/>`, `<date>` and `<data>` are read as their own types. A `<key>` followed by a stray element is refused, and a closing tag that does not match the open one is refused with its name.

XML entities in text are decoded, so `&amp;` becomes `&` in the JSON string.

`<date>` becomes the ISO string it carried and `<data>` becomes its base64 text, because JSON has no date or binary type — the page does not invent one. Comments are stripped; a plist with two root keys is not a plist and is refused.

How to use Plist to JSON

Paste the property list into the Property list box, or press Run with the example already there.

Read the JSON below: a `dict` becomes an object and an `array` becomes an array, in document order.

Check a `<true/>` element — it becomes the JSON boolean `true`, not the string `"true"`.

What to Expect

Best for

  • Reading a macOS or iOS property list as JSON
  • Turning an exported plist into a fixture

Not ideal for

  • A binary plist, which needs a decoder
  • Preserving a date as a date, which JSON cannot hold

What this tool keeps

  • Dictionary key order
  • Each scalar's own type

What may need cleanup

  • A date needs converting to your own format
  • Base64 data needs decoding by the consumer

Common errors

  • The page refuses it: <widget> is not a plist value

Example use cases

  • Inspecting an app's preferences file as JSON
  • Converting an exported plist into a fixture

Sample input

Property list: <?xml version="1.0" encoding="UTF-8"?> …

Sample output

JSON: { …

Who this is for

  • macOS and iOS developers
  • Anyone handed a `.plist` and a JSON toolchain

Frequently asked questions

What happens to a date?

It becomes the ISO 8601 string the plist carried. JSON has no date type, and converting it to a number would hide the format, so the string is kept.

Can it read a binary plist?

No. A binary plist is not XML, and the parser refuses it rather than producing something that looks like a value. Convert it to XML first.

Are dictionary keys ordered?

They keep the order they appear in the plist. JSON objects are technically unordered, but every tool that prints one preserves insertion order, and so does this page.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.