plist to JSON
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.
How to convert a plist to JSON
- Open the
.plistwith the file button, or drop it on the left pane. Binary and XML are both detected automatically. - 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.
- Choose how
<data>appears. Pick{"$data": …}if you mean to convert the JSON back to a plist later. - Copy the JSON, or download it under the file's own name.
Type mapping
<dict>→ object, keys in file order;<array>→ array;<string>→ string.<integer>→ a JSON integer with every digit, including values beyond 253 that JavaScript itself would round. Hex integers (0x1F), which Apple's parser accepts, come out in decimal.<real>→ a number that always has a decimal point or exponent, so<real>1</real>is written1.0and stays a real when converted back. NaN and infinity have no JSON form and becomenull, with a warning.<true/>/<false/>→true/false.<date>→ an ISO 8601 string,"2024-05-06T07:08:09Z". Binary plists store dates as fractional seconds, so those can carry a fraction.<data>→ base64, hex, or{"$data": "…"}, per the option.- A keyed-archiver UID (binary
NSKeyedArchiverfiles) →{"CF$UID": 7}, the same shape Apple's XML uses for it.
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.