A .pptx file is a ZIP archive that follows the Open Packaging Conventions
(OPC), Part 2 of ECMA-376 and ISO/IEC 29500. Each ZIP member is a part. A part’s
relationships say which other parts it uses, and
[Content_Types].xml says what each part is. Word files use the same scheme:
see the DOCX package page for the
general rules.
The usual parts
| Part | Holds |
|---|---|
[Content_Types].xml | The media type of every part. |
_rels/.rels | The package’s relationships: the main part and the properties. |
ppt/presentation.xml | The presentation: slide order and size. |
ppt/_rels/presentation.xml.rels | Its relationships to the slides and masters. |
ppt/slides/slide1.xml | One slide each. |
ppt/slideLayouts/, ppt/slideMasters/ | Layouts and masters. |
ppt/notesSlides/, ppt/notesMasters/ | Speaker notes and their master. |
ppt/comments/, ppt/commentAuthors.xml | Comments and their authors. |
ppt/theme/theme1.xml | Themes. |
ppt/media/, ppt/embeddings/ | Pictures, audio, video and embedded files. |
ppt/presProps.xml, ppt/viewProps.xml, ppt/tableStyles.xml | Presentation and view settings and table styles. |
ppt/vbaProject.bin | The macro project. |
docProps/core.xml, docProps/app.xml, docProps/custom.xml | Document properties. |
docProps/thumbnail.jpeg | A small picture of the first slide, when one was saved. |
Writers normally use this layout, but other names are allowed, so a reader finds parts through the relationships.
Content types
The main part’s content type tells the kinds of PowerPoint file apart:
| Extension | Main part content type |
|---|---|
.pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml |
.pptm | application/vnd.ms-powerpoint.presentation.macroEnabled.main+xml |
.ppsx | application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml |
.ppsm | application/vnd.ms-powerpoint.slideshow.macroEnabled.main+xml |
.potx | application/vnd.openxmlformats-officedocument.presentationml.template.main+xml |
.potm | application/vnd.ms-powerpoint.template.macroEnabled.main+xml |
Other parts have types of the form
application/vnd.openxmlformats-officedocument.presentationml.slide+xml:
slide, slideLayout, slideMaster,
notesSlide, notesMaster, handoutMaster,
comments, commentAuthors, presProps,
viewProps, tableStyles.
Relationship types
The types used in presentations, all with the prefix
http://schemas.openxmlformats.org/officeDocument/2006/relationships/ unless
shown.
| Type | From | To |
|---|---|---|
officeDocument | Package | The presentation part. |
extended-properties, custom-properties | Package | Application and custom properties. |
http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties | Package | Core properties. |
slide | Presentation | Each slide. |
slideMaster | Presentation, layout | A slide master. |
notesMaster, handoutMaster | Presentation | The notes and handout masters. |
slideLayout | Slide, master | The layout a slide is based on. |
notesSlide | Slide | That slide’s notes. |
comments | Slide | That slide’s comments. |
theme | Master | The theme. |
image, audio, video | Slide and others | Media; may be external. |
hyperlink | Slide | A link, usually external. |
oleObject, package | Slide | An embedded object or file. |
chart | Slide | A chart. |
diagramData and related | Slide | SmartArt data. |
http://schemas.microsoft.com/office/2006/relationships/vbaProject | Presentation | The macro project. |
A relationship with TargetMode="External" points outside the package. The
explorer lists external targets and never fetches them.
Part rules in detail
Sources read: ECMA-376 5th edition Part 1 (research/ooxml/ecma376/p1/part1.txt) 13.3.1 to 13.3.13, python-pptx
opc/constants.py and Apache POI XSLFRelation.java (research/pptx/src/).
Part 1 prints its relationship types and namespaces in the Strict form (http://purl.oclc.org/ooxml/…); Transitional
files, which are the common ones, use http://schemas.openxmlformats.org/officeDocument/2006/relationships/…
(the form python-pptx and POI use).
| Part (Part 1) | Root element | How many, and the source relationship |
|---|---|---|
Presentation, 13.3.6 (presentation.main, slideshow.main or template.main) | presentation | Exactly one, target of a relationship in the package relationships (officeDocument). |
| Slide, 13.3.8 | sld | One per slide, each the target of an explicit relationship from the presentation. |
| Slide layout, 13.3.9; slide master, 13.3.10 | sldLayout; sldMaster | See the layouts page. |
| Notes slide, 13.3.5 | notes | One for each slide that has notes, an implicit relationship from the slide. |
| Notes master, 13.3.4; handout master, 13.3.3 | notesMaster; handoutMaster | Explicit relationships from the presentation. |
| Comment authors, 13.3.1 | cmAuthorLst | At most one, an implicit relationship from the presentation. |
| Comments, 13.3.2 | cmLst | One for each slide with comments, an implicit relationship from the slide. |
| Presentation properties, 13.3.7; view properties, 13.3.13 | presentationPr; viewPr | Implicit relationships from the presentation. |
Slide synchronization data, 13.3.11 (slideUpdateInfo+xml) | sldSyncPr | Zero or one per slide, an implicit relationship from the slide (it may in turn point to a slide synchronization server location, 13.4). |
User defined tags, 13.3.12 (tags+xml) | tagLst | Zero or more, explicit relationships from the presentation or a slide. Each p:tag has a name and a val. |
- Every one of these parts shall lie in the package that holds the relationship (
TargetModeInternal). - Comment authors, comments and tags shall have no relationships to other parts. Slide synchronization data may have only an implicit relationship to a slide synchronization server location (13.4).
- A presentation part may have implicit relationships to: additional characteristics, comment authors, bibliography, custom XML data storage, font, presentation properties, table styles, theme, thumbnail and view properties; explicit relationships to: notes master, handout master, slides, slide masters and user defined tags.
- A slide may have implicit relationships to: additional characteristics, bibliography, comments, custom XML data storage, notes slide, theme override, thumbnail, slide layout and slide synchronization data; explicit relationships to: audio, chart, content part, the four diagram parts (colours, data, layout definition, styles), embedded control persistence, embedded object, embedded package, hyperlink, image, user defined tags and video. A notes slide has the same explicit list without tags, and implicit relationships to additional characteristics, bibliography, custom XML data storage, notes master, theme override and thumbnail. A slide shall have no other relationship to a part defined by ECMA-376.
- Part 1 also defines a printer settings part with the presentation content type
presentationml.printerSettings(found by search at line 5892 ofpart1.txt; its section was not read in full). Part 1 has no macro project, VML drawing or diagram drawing part; python-pptx declaresPML_PRINTER_SETTINGS; POI’sXSLFRelationadds a theme manager part (application/vnd.openxmlformats-officedocument.themeManager+xml), the legacy VML drawing (vmlDrawing), the Microsoft diagram drawing (application/vnd.ms-office.drawingml.diagramDrawing+xmlwith the relationship typehttp://schemas.microsoft.com/office/2007/relationships/diagramDrawing), fonts, OLE objects, embedded workbooks and the image types (EMF, WMF, PICT, JPEG, PNG, DIB, GIF, TIFF, EPS, BMP, WPG, WDP, SVG).
Divergence from spec
Part 1 gives the relationship type of a user-defined tags part as …/tags in its header (13.3.12) but writes
…/tag in its own example; the header is the rule. python-pptx and POI name the same content types as the table above
(PML_TAGS, PML_SLIDE_UPDATE_INFO and others in constants.py), so neither contradicts the standard on names.
Parts added by Microsoft
[MS-PPTX] v20240820 (research/ooxml/ms/MS-PPTX.txt) 2.1 defines six parts that Part 1 does not. None may have relationships to other parts,
and all must be inside the package (Internal) except the media and track parts, which may be external.
| Part (MS-PPTX) | Content type | Root element, relationship type, how many |
|---|---|---|
| Media, 2.1.1 | any supported audio or video type (Part 1 15.2.2, 15.2.17) | Not XML. Relationship http://schemas.microsoft.com/office/2007/relationships/media, explicit, from a slide, slide layout or slide master; internal or external. |
| Revision information, 2.1.2 | application/vnd.ms-powerpoint.revisioninfo+xml | p1510:revInfo (http://schemas.microsoft.com/office/powerpoint/2015/10/main). Relationship http://schemas.microsoft.com/office/2015/10/relationships/revisionInfo, implicit from the presentation; zero or one. |
| Track, 2.1.3 | text/vtt (a WebVTT file) | Not XML. Relationship http://schemas.microsoft.com/office/2017/04/relationships/track, explicit, from a slide, layout or master; internal or external. |
| Changes information, 2.1.4 | application/vnd.ms-powerpoint.changesinfo+xml | chgInfo (http://schemas.microsoft.com/office/powerpoint/2013/main/command, 2.12.1.1). Relationship http://schemas.microsoft.com/office/2016/11/relationships/changesInfo, implicit from the presentation; zero or one. |
| Comment (modern), 2.1.5 | application/vnd.ms-powerpoint.comments+xml | cmLst (http://schemas.microsoft.com/office/powerpoint/2018/8/main, 2.16.1.2). Relationship http://schemas.microsoft.com/office/2018/10/relationships/comments, explicit from a slide; internal. |
| Author, 2.1.6 | application/vnd.ms-powerpoint.authors+xml | authorLst (same namespace, 2.16.1.1). Relationship http://schemas.microsoft.com/office/2018/10/relationships/authors, implicit from the presentation; zero or one. |
The prefix p1510 is used here only to name the namespace; the standard does not fix prefixes. The comment and author parts are a second comment format beside the Part 1
comment parts (13.3.1, 13.3.2); the elements inside them (2.16) are described on the Comments page.
Extensions in extLst, by uri
[MS-PPTX] 2.2 (lines 860 to 1207 of MS-PPTX.txt) adds Microsoft features to Part 1 elements as ext children of an extLst, each
identified by a uri GUID, and as mc:AlternateContent children of spTree and grpSp whose fallback is an ordinary
shape. A reader that does not know a uri skips the ext. The uris below are copied from the specification.
| Parent of extLst | uri | Child element (MS-PPTX section) |
|---|---|---|
nvPr | {DAA4B4D4-6D71-4841-9C94-3DE7FCFB9230} | media (2.3.1.18, 2.2.4) |
media | {3AFAAA56-56D3-431D-BCD4-E75A35582382} | tracksInfo (2.13.1.1, 2.2.4.1) |
showPr | {2FDB2607-1784-4EEB-B798-7EB5836EED8A}; {F99C55AA-B7CB-42B0-86F8-08522FDF87E8}; {EC167BDD-8182-4AB7-AECC-EB403E3ABB37} | showMediaCtrls (2.3.1.27); browseMode (2.3.1.2); laserClr (2.3.1.16) |
presentation | {521415D9-36F7-43E2-AB2F-B90AF26B5E84}; {EFAFB233-063F-42B5-8137-9DF3F51BA10A}; {2D200454-40CA-4A62-9FC3-DE9A4176ACB9} | sectionLst (2.3.1.25); sldGuideLst (2.4.1.6); notesGuideLst (2.4.1.3) |
sld | {3A86A75C-4F4B-4683-9AE1-C65F6400EC91}; {E180D4A7-C9FB-4DFB-919C-405C955672EB}; {6950BFC3-D8DA-4A85-94F7-54DA5524770B} | laserTraceLst (2.3.1.17); showEvtLst (2.3.1.26); commentRel (2.16.1.3) |
presentationPr | {E76CE94A-603C-4142-B9EB-6D1370010A27}; {D31A062A-798A-4329-ABDD-BBA856620510}; {4599F94E-CEE6-441E-89CC-EB005ECD8F06}; {FD5EFAAD-0ECE-453E-9831-46B23BE46B34}; {1BD7E111-0CB8-44D6-8891-C1BB2F81B7CC} | discardImageEditData (2.3.1.6); defaultImageDpi (2.3.1.5); a14:m ([MS-ODRAWXML] 2.3.1.11); chartTrackingRefBased (2.4.1.1); readonlyRecommended (2.14.1.1) |
nvPr | {D42A27DB-BD31-4B8C-83A1-F6EECF244321}; {42D2F446-02D8-4167-A562-619A0277C38B}; {386F3935-93C4-4BCD-93E2-E3B085C9AB24}; {1162E1C5-73C7-4A58-AE30-91384D911F3F}; {E7BDC344-281C-4309-B0C6-D0EE65EED2A8} | modId (2.3.1.19); isNarration (2.4.1.2); designElem (2.5.3.1); classification (2.15.1.1); designPr (2.17.1.1) |
cSld | {BB962C8B-B14F-4D97-AF65-F5344CB8AC3E} | creationId (2.3.1.4) |
cmAuthor; cm | {19B8F6BF-5375-455C-9EA6-DF929625EA0E}; {C676402C-5697-4E1C-873F-D02D1690AC5C} | presenceInfo (2.4.1.4); threadingInfo (2.4.1.7) |
sldLayout; sldMaster; handoutMaster; notesMaster | {DCECCB84-F9BA-43D5-87BE-67443E8EF086}; {27BBF7A9-308A-43DC-89C8-2F10F3537804}; {56416CCD-93CA-4268-BC5B-53C4BB910035}; {620B2872-D7B9-4A21-9093-7833F8D536E1} | each holds sldGuideLst (2.4.1.6) |
sldId | {E3EDB536-0D56-4F60-86BA-61A60CA02DAB} | designTagLst (2.17.1.2) |
The AlternateContent forms (2.2.3, 2.2.3.1, 2.2.13, 2.2.15): contentPart (Choice namespace …/powerpoint/2010/main, fallback
sp), an ink contentPart (Choice with the 2010 and 2014 inkAction namespaces, fallback pic), webextensionref
(fallback pic), and the three zoom kinds sectionZm, sldZm (fallback pic) and summaryZm (fallback grpSp).
The explorer reads the media extension, the section, show and slide extensions, and the transition and animation extensions; the other uris above are not
interpreted.
Elements behind those uris (MS-PPTX 2.4 to 2.17)
Each row below is read from MS-PPTX.txt (section and attribute names as written there). Namespaces: 2012 = http://schemas.microsoft.com/office/powerpoint/2012/main.
| Element (section) | Content |
|---|---|
sldGuideLst, notesGuideLst (2.4.1.6, 2.4.1.3; 2012) | CT_ExtendedGuideList: guide children (CT_ExtendedGuide, 2.4.3.3) with a required clr colour child and attributes id (unsignedInt, unique in the list), name, orient (ST_Direction, default vert), pos (ST_Coordinate32, from the top or left of the slide, in master units, default 0) and userDrawn (default false). |
threadingInfo (2.4.1.7, 2.4.3.2, 2.4.3.6) | Added to a legacy cm: optional parentCm with authorId and idx naming the parent comment, and timeZoneBias (int, minutes; UTC = local time + bias, applied to the dt of the comment). |
presenceInfo (2.4.1.4, 2.4.3.7) | On a legacy cmAuthor: required userId and providerId. Examples in the specification: provider None with the author's name, AD with a Windows security identifier, Windows Live with a 64-bit signed decimal CID, and Office 365 with provider AD and a user id of three values joined by ::. |
chartTrackingRefBased (2.4.1.1, 2.4.3.1) | val required: true means data point properties and data labels in every chart follow their reference; false means they follow their position in the chart. |
isNarration (2.4.1.2, 2.4.3.5) | val (default false): whether the shape is narration related. |
designElem (2.5.1.1, 2.5.3.1; 2015 namespace) | val boolean: whether the item is a design element. |
revInfo (2.7; 2015/10 namespace) | CT_RevisionInfo: revLst of client elements, each with required id (string) and dt (dateTime) and optional v and vWet (unsignedInt, default 0). v is the latest revision made by that application instance and saved by it; vWet is the latest of its revisions saved by another instance. A revision number must strictly increase; the pair of client id and number identifies a revision in a collaborative session. |
sectionZm, sldZm, summaryZm (2.8 to 2.11; 2016 namespaces) | Zoom objects. All three hold zmPr (CT_ZoomObjectProperties: required blipFill and spPr; attributes id GUID, returnToParent default true, imageType preview or cover, transitionDur as ST_UniversalTimeOffset, showBg default true). sectionZmObj has sectionId; sldZmObj has sldId and optional cId (a creation id); summaryZm holds any number of summaryZmObj (with sectionId, title, descr as alt text, offsetFactorX/Y default 0 and scaleFactorX/Y default 100000) and exactly one of gridLayout or fixedLayout, both empty. |
chgInfo and monikers (2.12; 2013/main/command namespace) | CT_ChangesInfo: docChgLst with docChg (attribute chg bits) holding sldChg, sldMasterChg and cmAuthorChg, which in turn hold shape, group, graphic frame, picture, ink and connector change records (types from [MS-ODRAWXML] 2.29) and a moniker list naming the edited object (document, then master, layout or slide, then comment). A master moniker has cId and sldId; a comment moniker has authorId and idx. |
tracksInfo (2.13) | displayLoc required (media or slide) and trackLst of track caption files with id GUID, label, optional lang, and r:embed or r:link (link wins when both are present). |
readonlyRecommended (2.14; 2017/10 namespace) | val required: whether the document opens read-only with the option to edit. |
classification (2.15; 2018/4 namespace) | val is one of none, hdr, ftr, watermark: whether the shape is a classification marking. |
designPr, designTagLst (2.17; 2020/02 namespace) | CT_DesignerDrawingProps: optional designTagLst of designTag name and value string pairs written by the Designer service, and edtDesignElem (default false): whether a design element is editable. |
| Version 2 comment monikers and changes (2.18, 2.19) | Monikers (cmMkLst, cmRplyMkLst, 2019/9 command namespace) are lists whose last item has a GUID id, after the slide moniker list. cmChg (2022/06 command namespace): chg list of add, del, mod, modTsk (task modified), modRxn (reaction modified), with cmRplyChg children whose chg list uses add, del, mod, modRxn. |
taskDetails (2.20; 2022/08 namespace) | history of event records, each with required time (UTC dateTime) and id (GUID), a required atrbtn (authorId of the person who made the change), an optional anchr (holding comment with the GUID of the comment or reply), and at most one of asgn (authorId), add, title (val), date (optional stDt and endDt, UTC; omitted means no start or due date), pcntCmplt (val, 0 to 100), unasgnAll, undo (id of the undone record) or unknown. |
reactions (2.21; 2022/03 namespace) | CT_Reactions: rxn children (CT_Reaction), each with a required type string that SHOULD be the Unicode emoji, and instance children (CT_ReactionInstance: required time, UTC dateTime, and authorId, ST_AuthorId of the 2018/8 namespace, optional extLst) for each user's reaction. Rooted in the extension list of the parent it belongs to (a comment). |
phTypeExt (2.22; 2023/02 namespace) | CT_PlaceholderTypeExtension on a placeholder: required type (CT_PlaceholderTypeACB) holding exactly one of the empty elements cameo (a cameo placeholder) or unknown (reserved for future types). |
Chapter 4 (security) says "None" for both considerations and parameters. Chapter 5 repeats the schema fragments of 2.x (5.17 and 5.20 checked against 2.21 and 2.22: identical). Chapter 6 (product behaviour) lists PowerPoint 2010, 2013, Online, 2016, 2019, 2021 and LTSC 2024, and footnotes: 2.2.3.1, 2.2.10 (not in 2010; Office 365 only for one), 2.2.11, 2.2.12 (not in 2010), 2.2.14, 2.2.16, 2.2.17, 2.2.18 (not in 2013 and earlier), 2.2.19, 2.2.20 (not in 2016 and earlier), 2.4.1.1, 2.4.1.3, 2.4.1.4, 2.4.1.6, 2.4.1.7 and 2.4.3.x (not in 2010), 2.4.1.2 and 2.4.3.5 (from the February 10, 2015 update of PowerPoint 2013), 2.4.3.7 (Office 365 value; older Online wrote an identifier followed by "@LIVE.COM"), 2.5.3.1, 2.15.3.1 (not in 2013 and earlier), 2.17.3.1 to 2.17.3.3 (not in 2016 and earlier). The explorer lists the raw values of every row of this table in the Overview ("Presentation and master extensions" and the slide extensions table): guides (sldGuideLst, notesGuideLst), chartTrackingRefBased, isNarration, designElem, revInfo clients, zoom objects, tracksInfo, readonlyRecommended, classification, designPr, chgInfo, task events, reactions, phTypeExt and threadingInfo. Guides are listed and not drawn, because ECMA-376 19.2.2.4 says guides "never appear except as an aid in editing slides". The legacy view properties part (viewProps.xml, ECMA-376 19.2.2.1 to 19.2.2.18) is listed the same way: last view, comment display, normal-view splitters and sizes, slide and notes view guides, snap flags, scale and origin, outline collapse flags, grid spacing. The Overview does not interpret the monikers inside chgInfo or the author part's presenceInfo.
Reading a package
- Read the ZIP central directory.
- Read
_rels/.relsand follow theofficeDocumentrelationship. - Check that part’s root element is
presentationin the PresentationML namespace. - Read its relationships to find the slides, masters and themes.
A password-protected PowerPoint file is not a ZIP archive: it is a Compound File with an
EncryptedPackage stream.