file in abyss
Back to formats

Document

XLSX Excel Open XML Workbook

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

Extensions .xlsx
MIME application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Magic numbers

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

Structure

  1. ZIP container
  2. [Content_Types].xml
  3. xl/workbook.xml
  4. xl/worksheets/*.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_xlsx(path: str) -> bool:
    with open(path, "rb") as f:
        f.seek(OFFSET)
        head = f.read(len(SIGNATURE))
    return head == SIGNATURE

Practical usage

Use cases

Excel Open XML Workbook 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 .xlsx extension alone does not prove the file contents. Upload and conversion flows should combine extension, MIME type, leading bytes, and format-specific structure checks.
  • Excel Open XML Workbook 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 XLSX

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

01-blue-sky.xlsx
Type Sample
2.4 KB
SHA-256 a63033e487d09762113edfc3457c25a2be33ce188b59f4693c5cdc513b9eeee5
Download
Doc

Flower Garden XLSX

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

02-flower-garden.xlsx
Type Sample
2.5 KB
SHA-256 b3fefd4bf0b8361ba7cb5c42745299b83cdbc04d8609f1376805d6e9725b7549
Download
Doc

Navy Blue Sky XLSX

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

03-navy-blue-sky.xlsx
Type Sample
2.7 KB
SHA-256 5d6c61220a1e37f2ba1d4daa14179eb59601261d9014df156bc63ce7b52412bd
Download
Doc

Nature of the Sky XLSX

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

04-nature-sky.xlsx
Type Sample
2.8 KB
SHA-256 d839aa08700f3d784c642a107af94f1211eb69e57292ebbe9b917da0588c7acb
Download
Doc

Sky Landscape XLSX

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

05-sky-landscape.xlsx
Type Sample
2.9 KB
SHA-256 08fd69577c2f30e7a875651effabb62b692e4e10b50a0ed1b7f7bcaea420bd8f
Download
Doc

Starry Sky XLSX

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

06-starry-sky.xlsx
Type Sample
3.1 KB
SHA-256 5635d4b0aad8e7119b389cf674bbd5da70f25f091ca85faaaef511d27dccb967
Download
Doc

Blue Night Sky XLSX

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

07-blue-night-sky.xlsx
Type Sample
3.2 KB
SHA-256 09cfab13e1ef99e9f2f0dc720994bcfa3cdbc2ac5b5d9bbb3631dde629d1798a
Download
Doc

Hibiscus Flower XLSX

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

08-hibiscus-flower.xlsx
Type Sample
3.3 KB
SHA-256 70fe0048159a8a53888680c317f584f0416c5f7b55e34b5fe841e0a1e7f509ec
Download
Doc

Arctic Sky XLSX

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

09-arctic-sky.xlsx
Type Sample
3.4 KB
SHA-256 2fecd636573dfe5cb647582e0a9427ab2533fdf296f7dc98cd0b223d3af8eaea
Download
Doc

Sunset Rays XLSX

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

10-sunset-rays.xlsx
Type Sample
3.6 KB
SHA-256 3de15266ebe3b007c7b561d935ca1d2fa4b30c46868273d0349a269cdb6cd13e
Download
Doc

NASA Blue Marble XLSX

NASA Blue Marble XLSX is a Excel Open XML Workbook 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.xlsx
Type Sample
4.0 KB
SHA-256 6b8bfb03a1846eb39c9ac9b80967304bf63905802d74d45f322eacad8d93c080
Download

Frequently asked questions

What is the magic number (file signature) of Excel Open XML Workbook?

Excel Open XML Workbook 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 Excel Open XML Workbook?

The MIME type for Excel Open XML Workbook is application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.

What file extension does Excel Open XML Workbook use?

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

Related formats