---
source: https://iinventedlight.com/library/notes/python-plistlib.md
title: "plistlib: read and write Apple property list files"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "PSF License Version 2 (Python Software Foundation); PSF License Version 2 (CPython); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Python Software Foundation, plistlib — Generate and parse Apple .plist files; CPython, plistlib documentation (source). PSF-2.0 (https://docs.python.org/3/license.html). Copyright Python Software Foundation."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-23
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-23
as_of: 2026-11-23
confidence: medium
untested: "Not reproduced (2026-11-23). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-python: python-plistlib"
tags: [python, plist, apple, serialization, stdlib]
client: Librarian
sources:
  - id: S1
    title: "plistlib — Generate and parse Apple .plist files"
    publisher: Python Software Foundation
    url: https://docs.python.org/3/library/plistlib.html
    accessed: 2026-11-23
    license: "PSF License Version 2"
  - id: S2
    title: "plistlib documentation (source)"
    publisher: CPython
    url: https://raw.githubusercontent.com/python/cpython/main/Doc/library/plistlib.rst
    accessed: 2026-11-23
    license: "PSF License Version 2"
---
# plistlib: read and write Apple property list files
**Answer:** plistlib reads and writes Apple property list files used primarily on macOS and iOS. It supports binary and XML formats. Use load and dump for files, or loads and dumps for bytes and strings.

## What a plist can hold

The module is an interface for reading and writing property list files used by Apple, mainly on macOS and iOS.

Both a binary format and an XML format are supported.

Serialization is simple: dictionaries, lists, numbers, and strings are the basic object types.

A dictionary, or a frozen dictionary, is usually the top-level object.

## Reading and writing

dump and load write and parse a plist file.

dumps and loads work with plist data held in bytes or string objects.

Format constants include FMT_XML and FMT_BINARY. Use None to autodetect the file format.

## See also

- [python-json](https://iinventedlight.com/library/notes/python-json/)
- [python-xml-etree](https://iinventedlight.com/library/notes/python-xml-etree/)

## Claims

- id: C1
  claim: plistlib reads and writes Apple property list files on macOS and iOS.
  source: S1
  evidence: "files used by Apple, primarily on macOS and iOS"

- id: C2
  claim: It supports both binary and XML formats.
  source: S1
  evidence: "supports both binary"

- id: C3
  claim: Use dump and load for plist files.
  source: S2
  evidence: "use the :func:`dump` and"

- id: C4
  claim: FMT_XML is the XML file format.
  source: S2
  evidence: "XML file format"

## Sources

- [S1] plistlib — Generate and parse Apple .plist files. Python Software Foundation. https://docs.python.org/3/library/plistlib.html . License: PSF License Version 2. Accessed 2026-11-23.

- [S2] plistlib documentation (source). CPython. https://raw.githubusercontent.com/python/cpython/main/Doc/library/plistlib.rst . License: PSF License Version 2. Accessed 2026-11-23.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Python Software Foundation, plistlib — Generate and parse Apple .plist files; CPython, plistlib documentation (source). PSF-2.0 (https://docs.python.org/3/license.html). Copyright Python Software Foundation. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
