Python for Android script
File type: Source code and script file
A .p4a file is a Python source script intended for use with Python for Android on the Android system.
It is a plain-text source code file for Python-based Android applications.
File type category:
Source code and script file
Date updated: October 17, 2026
The p4a file extension identifies a Python script prepared for use with Python for Android. The script contains Python source code rather than a compiled Android application package.
Python for Android is a toolchain for packaging Python applications for the Android platform. A .p4a file may form part of the source code used to build an Android application, while the Python language itself is available on multiple platforms, including Microsoft Windows.
Python was created by Guido van Rossum and is a high-level programming language. The .p4a script stores Python source intended for Android systems and applications.
Open a .p4a file with a source code editor or another plain-text editor to view its contents.
A .p4a file does not normally need conversion. If the contents are ordinary Python source code, the text can be saved with a .py extension, but changing the extension alone does not convert or package the script.
To use the script in an Android application, process it with the Python for Android build workflow rather than a file-format converter.