jsontoolskit.org
JSON and JSON Schema utilities, in the browser
Sign in Create free accountSign up

plist to JSON

XML and binary (bplist00) · dates, data and UIDs · nothing uploaded

Open an Info.plist, a preferences file or any other property list — binary or XML, told apart by its first bytes — and read it as JSON. Binary plists are not text, so they are opened as files rather than pasted. Every plist type has a defined place in the output, including the ones JSON lacks. The reverse is JSON → plist.

Drop a .plist file here, or
Paste an XML plist, or open a .plist file (XML or binary).

How to convert a plist to JSON

  1. Open the .plist with the file button, or drop it on the left pane. Binary and XML are both detected automatically.
  2. A binary plist appears in the left pane as base64 — the file's bytes in a form a text box can hold. You can also paste base64 or hex of a binary plist yourself, or paste XML.
  3. Choose how <data> appears. Pick {"$data": …} if you mean to convert the JSON back to a plist later.
  4. Copy the JSON, or download it under the file's own name.

Type mapping

Why not plutil -convert json?

macOS has a converter built in, and for a plist of strings and numbers it works. It refuses anything else: on the Mac this page was tested against, a plist with a single <date> or <data> value stops it with “Invalid object in plist for JSON format”, and it writes <real>1.0 as a bare 1, so the real becomes an integer on the way back. This page converts every type, keeps the two kinds of number apart, and runs on any operating system.

Binary parsing follows Apple's CFBinaryPList.c, including its sanity checks on the trailer, so a truncated or corrupt file is reported as such rather than half-read. A file whose objects reference each other in a loop is rejected instead of hanging the tab.

FAQ

Which plist formats can it read?

XML plists, in UTF-8 or with a UTF-16 byte-order mark, and binary plists that start with bplist0 — the same check Apple's own reader makes. The old text format with braces and semicolons ({ key = value; }) is not read here; plutil -convert xml1 file.plist turns it into XML first.

What happens to duplicate keys?

A JSON object cannot hold the same key twice, so the last value wins, as it does when JavaScript parses JSON, and the status line lists the duplicated paths.

Can I paste a binary plist into the box?

Not as raw bytes — pasting turns them into text and corrupts them, and the page says so if it sees bplist at the start. Open the file instead, or paste the output of base64 -i file.plist or xxd -p file.plist, both of which are recognised.

Is my file uploaded?

No. The file is read by JavaScript in this tab and the parser is part of this page; there is no server step and no library to download.