Filename Extensions
If you are seeking information about file extensions, then you are in the right place at right time.

Details of extension .py

1 extension(s) and 0 alias(es) in our database

Below, you can find answers to the following questions:

  • What is the .py file?
  • Which program can create the .py file?
  • Where can you find a description of the .py format?
  • What can convert .py files to a different format?
  • Which MIME-type is associated with the .py extension?
Python Script .py file icon

Python Script

PY file is a Python Script. Python is a dynamic object-oriented programming language.
Category: Development files
Application: Python
Program name: -
Mime-type: text/x-python
Magic bytes (HEX): -
Magic string (ASCII): -
py2, py3, python, pyw
Related extensions:
Perl Script
PHP Script
Python Macro File
Python Bytecode
Python Dynamic Module
Pyrex Source
Python Optimized Code
TCL Script
Pyrex Definition File

Other types of files may also use the .py file extension. If you have helpful information about .py extension, write to us!

Is it possible that the filename extension is misspelled?

We found the following similar extensions in our database:

Plone Page Template
GNU Lilypond Document
C64 Printfox/Pagefox Document
PlantUML Document
STK Propagator File
STK Great Arc Propagator File
NewsRoom Document
MKS Source Integrity Data

The .py filename extension is often given incorrectly!

According to the searches on our site, these misspellings were the most common in the past year:

pt (25), ly (1), pu (1), pj (1), pg (1), ph (1)

Can't open a .py file?

If you want to open a .py file on your computer, you just need to have the appropriate program installed. If the .py association isn't set correctly, you may receive the following error message:

Windows can't open this file:


To open this file, Windows needs to know what program you want to use to open it. Windows can go online to look it up automatically, or you can manually select from a list of programs that are installed on your computer.

To change file associations:

  • Right-click a file with the extension whose association you want to change, and then click Open With.
  • In the Open With dialog box, click the program whith which you want the file to open, or click Browse to locate the program that you want.
  • Select the Always use the selected program to open this kind of file check box.

Supported operating systems

Windows Server 2003/2008/2012/2016, Windows 7, Windows 8, Windows 10, Linux, FreeBSD, NetBSD, OpenBSD, Mac OS X, iOS, Android

Rate this page

5 / 5 based on 58 user ratings.