file in abyss
Back to formats

Document

PPTX PowerPoint Open XML Presentation

PowerPoint Open XML Presentation is a document format commonly identified by .pptx. Use the listed signatures, MIME types, and structure notes to validate files beyond the extension.

Extensions .pptx
MIME application/vnd.openxmlformats-officedocument.presentationml.presentation

Magic numbers

Analyze your file
offset 0 PowerPoint Open XML Presentation leading signature
50 4B 03 04
PK..

Structure

  1. ZIP container
  2. [Content_Types].xml
  3. ppt/presentation.xml
  4. ppt/slides/*.xml

Caveats

  • Do not trust the extension alone. Check the MIME type, the first bytes such as 50 4B 03 04, and format-specific structure when possible.
  • Container formats and damaged files can share the same opening bytes, so deeper validation may be required for production upload, preview, or conversion flows.

Detection example

SIGNATURE = bytes.fromhex("504b0304")
OFFSET = 0

def is_pptx(path: str) -> bool:
    with open(path, "rb") as f:
        f.seek(OFFSET)
        head = f.read(len(SIGNATURE))
    return head == SIGNATURE

Practical usage

Use cases

PowerPoint Open XML Presentation is used for data exchange, imports, exports, parser testing, and validation workflows. Encoding, delimiters, versions, and container structure often change implementation behavior.

Common detection mistakes

  • The .pptx extension alone does not prove the file contents. Upload and conversion flows should combine extension, MIME type, leading bytes, and format-specific structure checks.
  • PowerPoint Open XML Presentation can start with signatures such as 50 4B 03 04, but related containers and damaged files may require additional validation.

Security notes

Document formats may include scripts, attachments, macros, or external references. Sandbox previews and conversions, and avoid opening untrusted files directly.

Using samples

11 samples help test leading-byte detection, parser errors, upload limits, and download behavior.

Sample files

11 / 11 files
Sample Traits Size Source / license / SHA-256
Doc

Blue Sky PPTX

Blue Sky PPTX is a PowerPoint Open XML Presentation sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

01-blue-sky.pptx
Type Sample
2.5 KB
SHA-256 0ebca31a33f9e21bf2828a3684585d6151ee8233907e71b5807a11f722eb937c
Download
Doc

Flower Garden PPTX

Flower Garden PPTX is a PowerPoint Open XML Presentation sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

02-flower-garden.pptx
Type Sample
2.5 KB
SHA-256 dde44497df2e3cb6d81f43ae93a92609a40a5dc30a6d4babc57310b6422c6d01
Download
Doc

Navy Blue Sky PPTX

Navy Blue Sky PPTX is a PowerPoint Open XML Presentation sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

03-navy-blue-sky.pptx
Type Sample
2.5 KB
SHA-256 c333b669a69179a03ab19b9b8fa268bc4efb20ef11a9afb42ef85f40dc1c9174
Download
Doc

Nature of the Sky PPTX

Nature of the Sky PPTX is a PowerPoint Open XML Presentation sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

04-nature-sky.pptx
Type Sample
2.5 KB
SHA-256 f8a9a6af35f983c505ba43d2fc40ffb2fb185c561b595ceee96c43ad442ee2b1
Download
Doc

Sky Landscape PPTX

Sky Landscape PPTX is a PowerPoint Open XML Presentation sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

05-sky-landscape.pptx
Type Sample
2.5 KB
SHA-256 b84c80e20dee2314d7de406bd4784ad7357c4e54d7acf74a89281ce2d840f9e0
Download
Doc

Starry Sky PPTX

Starry Sky PPTX is a PowerPoint Open XML Presentation sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

06-starry-sky.pptx
Type Sample
2.5 KB
SHA-256 dc2e6c74968a0529575ac5b54c5d2b86d0682d85a97e2b0389ce605cf2bbf940
Download
Doc

Blue Night Sky PPTX

Blue Night Sky PPTX is a PowerPoint Open XML Presentation sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

07-blue-night-sky.pptx
Type Sample
2.5 KB
SHA-256 23590cf9727e1f04cdfbada35d448b8e9ec193bc48326649dd2931eaba7a6ab3
Download
Doc

Hibiscus Flower PPTX

Hibiscus Flower PPTX is a PowerPoint Open XML Presentation sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

08-hibiscus-flower.pptx
Type Sample
2.5 KB
SHA-256 85d6732102fa9673ff5aa3f10eebf3f6392c9accb0e0fc5a0c2088816b4173c8
Download
Doc

Arctic Sky PPTX

Arctic Sky PPTX is a PowerPoint Open XML Presentation sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

09-arctic-sky.pptx
Type Sample
2.5 KB
SHA-256 8fae1e64034354a5555a73fa059aea9477e0dd7043f4a0866cdbf3d29570c472
Download
Doc

Sunset Rays PPTX

Sunset Rays PPTX is a PowerPoint Open XML Presentation sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

10-sunset-rays.pptx
Type Sample
2.5 KB
SHA-256 cb92c209dea74dc729d59367e183c9b335d1236ec4b91c690c7e18a3a1197858
Download
Doc

NASA Blue Marble PPTX

NASA Blue Marble PPTX is a PowerPoint Open XML Presentation sample based on NASA Image and Video Library. It can be used to test downloads, parsers, previews, and file type detection.

nasa-blue-marble-2012-east.pptx
Type Sample
2.5 KB
SHA-256 d8c370f937422ed297e372778f13b997701334cd2bc481a59034a1cf3bd36bf3
Download

Frequently asked questions

What is the magic number (file signature) of PowerPoint Open XML Presentation?

PowerPoint Open XML Presentation files begin with the byte signature 50 4B 03 04 ("PK.."). Detect the format by reading these leading bytes rather than trusting the file extension alone.

What is the MIME type of PowerPoint Open XML Presentation?

The MIME type for PowerPoint Open XML Presentation is application/vnd.openxmlformats-officedocument.presentationml.presentation.

What file extension does PowerPoint Open XML Presentation use?

PowerPoint Open XML Presentation files use the .pptx extension. The extension is a convention only and does not guarantee the file contents, so combine it with signature and structure checks.

Related formats