Plist JSON XML Converter
Convert Apple Property Lists to JSON or generate XML plist files locally
About
Parse and generate Apple XML property lists entirely in your browser. Nested dictionaries and arrays, numbers, booleans, ISO dates, and base64 data are supported with precise line-aware errors.
Examples
Dates and base64 decode to JSON
<dict><key>when</key><date>2024-01-02T03:04:05Z</date><key>payload</key><data>SGVsbG8=</data></dict>{ "when": "2024-01-02T03:04:05.000Z", "payload": "SGVsbG8=" }Dates normalize through toISOString (.000Z) and data strips whitespace to the raw base64 string.
Integers and reals stay distinct
jsonToPlist('{"i": 4, "r": 4.5}')<integer>4</integer> … <real>4.5</real>Number.isInteger picks the tag, so 4 and 4.5 round-trip as integer and real respectively.
About this tool
Plist JSON/XML Converter parses Apple property lists with parsePlist(source) into plain JSON values: dict becomes an object, array a list, string stays a string, true/false tags become booleans, integer and real become numbers (validated by ^-?\d+$ and float/exponent patterns), date becomes an ISO string via new Date(text).toISOString(), and data becomes a whitespace-stripped base64 string (validated against the base64 alphabet). XML entities decode (& → &), comments, processing instructions, and DOCTYPE are skipped, and a <plist> wrapper is required.
Emission goes the other way with jsonToPlist(json) and plistToJson(xml): numbers split by Number.isInteger into <integer>/<real>, ISO-shaped strings (YYYY-MM-DDTHH:MM:SS[.ms]Z) become <date>, values under data/bytes/blob/base64-named keys with base64 content become <data>, booleans become <true/>/<false/>, and everything else becomes entity-escaped <string>. plistToJson pretty-prints with 2-space indent, jsonToPlist wraps output in the XML prolog plus Apple PLIST 1.0 DOCTYPE, and normalizePlist(source) parses any plist back to its canonical value so formatting-only differences compare equal.
Errors fail loudly with position: every failure throws PlistParseError whose message appends (line N) computed from newlines before the cursor — e.g. a missing </string> on the second line reports line 2. Invalid integer, real, date, and base64 payloads each throw their own message rather than coercing silently.
How to use this tool
Parse a plist
Paste <plist> XML and call parsePlist(source): nested dict-in-array structures, ISO dates, and base64 data decode to plain JSON values.
Convert either direction
Use plistToJson(xml) for JSON text or jsonToPlist(json) for XML; integers emit <integer>, floats <real>, ISO strings <date>, and data-keyed base64 <data>.
Compare canonically
Run both sides through normalizePlist before comparing so whitespace and formatting differences disappear.
Read the line number
On PlistParseError, the message and .line name the offending line (e.g. line 2) — fix the unclosed tag or bad scalar there.
Use cases
Editing iOS/macOS plists as JSON
Convert Info.plist XML to JSON, edit nested dicts and arrays comfortably, then emit valid plist XML back.
Inspecting dates and blobs
Read <date> values as ISO timestamps and <data> payloads as base64 strings without opening Xcode.
Localizing malformed plists
Use the PlistParseError line number to jump straight to the unclosed tag or invalid scalar.
Common mistakes
Mistake:Expecting any base64-looking string to emit <data>.
Fix:Only values under keys matching data|bytes|blob|base64 with base64 content become <data>; otherwise they emit <string>. Name the key accordingly.
Mistake:Feeding a bare <dict> without the <plist> wrapper to parsePlist.
Fix:parsePlist requires the <plist> element — wrap the fragment or the parser throws Expected <plist>.
Mistake:Comparing plist XML as raw strings.
Fix:Whitespace and quoting differ cosmetically; compare normalizePlist(a) against normalizePlist(b) instead.
Frequently asked questions
What does this tool do?
It converts Apple plists both ways with parsePlist, plistToJson, jsonToPlist, and normalizePlist: dict/array/string/boolean plus integer, real, ISO date, and base64 data scalars, with entity decoding and comment/DOCTYPE skipping, all client-side.
How do dates, base64, nested structures, and integers behave?
<date>2024-01-02T03:04:05Z</date> becomes 2024-01-02T03:04:05.000Z (and re-emits as <date>); <data>SGVsbG8=</data> round-trips through data-keyed JSON; dicts nest inside arrays; and 4 vs 4.5 emit <integer> vs <real> via Number.isInteger.
Is my plist uploaded or stored?
No. Parsing, conversion, and normalization run entirely in your browser — plist content never leaves your device.
Why did parsing throw, and where?
Every failure throws PlistParseError with the line appended — e.g. an unclosed <string> on the second line reports line 2 via both the message and the .line property. Fix the tag or invalid scalar at that line.
Related guides
References & standards
Related tools
Base64 Toolbox
Professional Base64 workspace for text, files and images with Base64URL, MIME, Data URI, strict validation, image preview and ready-to-use snippets.
C# to VB.NET Converter
Convert a subset of C# — classes, methods, variables, loops — into VB.NET
CSV Data Viewer
Paste CSV and browse rows in a sortable table with delimiter detection
CSV to Chart
Paste or upload CSV data and generate bar, line, pie, or doughnut charts. Export as PNG.
CSV to JSON Converter
Paste CSV data and convert it to pretty-printed JSON instantly — supports custom delimiters, header row toggling, and value trimming.
CSV to Markdown Converter
Convert CSV to a Markdown table and Markdown tables back to CSV