Skip to main content
Technical MIME Specification & Web Server Guide

application/x-python

Technical overview, official IANA specification, header magic bytes, and server configuration snippets for .PYTHON files (PYTHON File Format).

File Extension

.python

Content-Type Header

application/x-python

Format Category

General Files

Standard Specification

IANA Registered Standard

Description & Usage

Binary or text file format identified by extension .python

HTTP Server Content-Type Configuration Code

# Nginx mime.types configuration for .python
types {
    application/x-python    python;
}

OS Compatibility Matrix

Windows
macOS
Linux
Android
iOS

Want to test header signatures or binary files?

Run binary magic byte inspection in Magic Byte Detector.

Frequently Asked Questions

The official MIME content type for .python files is "application/x-python". Web servers use this header to instruct browsers how to render or process .python data.