Also known as: .pyw

Commonly opened with
  • Python interpreter
  • Visual Studio Code
  • PyCharm
  • Any text editor
Supported platforms
  • Windows
  • macOS
  • Linux
Editable?
Yes, with common software
Viewable without special tools?
Usually, yes
Inherent format risk
Use some caution
Safety guidance (not a guarantee)

Scripts can run commands on your computer when executed. Only run scripts from sources you trust, and review the contents in a text editor first if you're unsure.

Check another filename

File extension lookup

No upload, no sign-up — everything is analyzed locally in your browser.

Frequently asked questions

What is a .py file?

Source code for the Python programming language, run by the Python interpreter rather than compiled ahead of time.

Can I edit a .py file?

Yes — .py files are commonly editable with software such as Python interpreter.

Does having a .py extension mean the file is safe?

No single extension can guarantee that. Scripts can run commands on your computer when executed. Only run scripts from sources you trust, and review the contents in a text editor first if you're unsure. Always consider where the file came from, not just its name.

Privacy: The lookup above runs entirely in your browser. Nothing you type is uploaded, logged, or sent anywhere.

← Back to the file extension lookup tool