Introduction
PPT is the binary presentation format of
Microsoft PowerPoint
97 to 2003, and the default until PowerPoint 2007 replaced it with
PPTX. PowerPoint still opens and saves it as
“PowerPoint 97–2003 Presentation”. Earlier versions of PowerPoint also used
.ppt for older formats of their own.
Microsoft publishes the format in full as [MS-PPT]. .pps is the same
format saved to open straight into the slide show, and .pot a
template. Files from before PowerPoint 97 are laid out differently: see
older versions.
Structure
The file is a compound file, which
starts with the signature D0 CF 11 E0 A1 B1 1A E1 and holds named streams.
The PowerPoint Document stream holds the presentation as a tree of
records, each with an 8-byte header: a
version and instance (2 bytes), a record type (2 bytes) and a length (4 bytes). Container
records hold other records, so slides, masters, notes and the text and shapes on them
nest inside each other. The Current
User stream points to the latest edit in the document stream, and a
persist directory maps each object to
its offset, because PowerPoint can save by appending changes. Pictures are kept in a
Pictures stream.
The pages in the side menu cover the format from the container to the text, shapes, pictures, fonts and macros, byte by byte.
cfbCurrent User points to the latest user editstreamcfbPowerPoint Document records for slides, masters, notes, text and shapesstreamcfbPictures images used on the slidesoptionalcfbSummaryInformation, DocumentSummaryInformation title, author, datesstreams
In the explorer
Drop a .ppt, .pps or .pot file on this site’s
explorer to see inside it. The file stays in your browser: nothing is uploaded.
Slides draws the first slide and lists every slide, with a page of
thumbnails; each opens on its own, and notes pages and the handout master can be drawn
too. Outline is each slide’s text and pictures in order, and
Text the same as plain text. Overview lists the
presentation’s properties, slides, masters, notes, fonts, transitions and animations.
Pictures shows the images, and Records the user edits,
persist directory and streams. Structure shows the compound file with
each record in place.
Older files saved by PowerPoint 95 and earlier are reported as such. If a file parses as records all the way through, its text atoms are shown; the layout of those versions is not published, so nothing further can be established.
Drawing is done here, not by PowerPoint, so a few things are approximate. Fonts that the viewer’s machine does not have are replaced by similar ones, so text can wrap a little differently. Shadows, reflections, 3-D, effects, texture and pattern fills are simplified, and animations are listed, not played. EMF and WMF pictures are drawn; PICT and TIFF pictures are not, because browsers cannot show them. Encrypted files are identified and not decrypted: they need the password, and this site does not ask for it. Macros are listed and never run.
What this reference covers
These pages cover the container, the records, the persist directory, the document, slides, masters, text, shapes, pictures, fonts, colours, comments, properties, the animation, interaction, show and external-object atoms, and encryption, byte by byte where the layout matters. They follow [MS-PPT] and [MS-ODRAW], which were downloaded for this work but, as no tool here can extract a PDF’s text page by page, were read through a crude text extraction and checked against real files, not read cover to cover.
Not described
Tested on 152 real files (Apache POI’s test files and the ones found on this Mac), with no failures. These items are what is still open.
Known, not yet covered
- Reference: the timing records of PowerPoint 2002 and later
(
0xF125to0xF145, the time node tree under a slide’s___PPT10tag) field by field, and the per-version binary tag extensions (___PPT9,___PPT10,___PPT12): [MS-PPT] 2.8 and 2.11. - Reference: the view atoms (
ViewInfoAtomzoom data, outline and sorter view), Kinsoku, the Office Art property values (what each number of each property means) and the 2007 round-trip atoms (themes, colour mapping, custom table styles): [MS-PPT] 2.4, [MS-ODRAW] 2.3. - Viewer: the Structure view shows about 45 kinds of atom field by
field (document, slide, notes, persist, transitions, animations, interactions, show
settings, headers and footers, colour schemes, OLE and media references, and the shape
property table with named properties). The rest are shown as labelled bytes:
StyleTextPropAtomruns,TextMasterStyleAtom,TextRulerAtom,ViewInfoAtom, binary tag data and the timing records. - Viewer: only the first adjust value of a shape is applied (and the tip of a speech balloon); other shapes with several adjust handles are drawn at their default proportions. Shapes with no outline code yet (curved, bent and circular arrows, the quad-arrow callout, action-button symbols, text-warp shapes) are drawn as rectangles. Shadows are simplified, and 3-D, reflection, glow, texture and pattern fills are not drawn. PICT and TIFF pictures are not drawn.
- Viewer: charts and graphs embedded as OLE objects (Microsoft Graph, Excel) show their preview picture, not a redrawn chart; hyperlinks are listed, not clickable on the slide; encrypted files are identified and not opened (the password is never asked for).
Unknown
- Reference: the streams of PowerPoint 95 and earlier files: [MS-PPT] does not cover them and no public description was found. The viewer identifies them and reads text atoms where the records still parse.
- Viewer: no real
.pottemplate or.ppaadd-in file was found on this Mac or in the downloaded samples, so those are only tested as renamed copies of a presentation.
Also used for
- gettext POT template – Translation template: every message of a program, with empty translations.
Links
Software
- Microsoft PowerPoint – Microsoft’s presentation program, which opens and saves “PowerPoint 97–2003 Presentation” (Windows, macOS, web, mobile)
- LibreOffice Impress – free office suite’s presentation program, which opens and saves .ppt (Windows, macOS, Linux)
- Google Slides – online presentation program that imports .ppt (web browsers)
- Apple Keynote – Apple’s presentation program, which imports .ppt (macOS, iOS)
Developers
- Apache POI – library for Office files,
.pptthrough its HSLF classes (Java)
Reference
- [MS-PPT]: PowerPoint (.ppt) Binary File Format – Microsoft’s full specification of the format
- [MS-CFB]: Compound File Binary File Format – Microsoft’s specification of the compound file container