Python Bytecode — Compiled Python bytecode cache file.
Quick facts
What is .pyc
A .pyc file is a Python Bytecode — Compiled Python bytecode cache file.
In the mime-db registry it has no registered standard MIME type. When serving this file over HTTP, use a Content-Type that matches its actual format.
How to open .pyc files
Developer info
When served over HTTP, responses should set the following header:
# No standard MIME type is registered for .pyc
Common software that reads/writes .pyc:
Relation chain
Related extensions
Common uses
How to edit .pyc files
How to create .pyc files
Frequently asked questions
Common options include Python. You can also open many of these files with built-in viewers or a browser.
Create a new file in any text editor or the app that owns the format and save it with the .pyc extension.
Sources & standards
Updated 2026-08-18
Explore this reference