TapToConvert All conversions

Home / File types / .pyc

PYC file: what it is and how to open it

Python bytecode. Here is what a .pyc file contains, how to open one on any device, and a viewer that opens it right in your browser.

Open a .pyc file hereChoose fileRead in your browser. Nothing is uploaded.

What the viewer shows

  • Whether the file matches the .pyc signature
  • The first bytes as hex
  • A preview when your browser can display it

What is a .pyc file?

A .pyc file is a python bytecode. Its registered MIME type is application/x-python-bytecode, which places it in the application or document family of formats.

PYC is a binary format: the contents are not readable text, so opening it in a text editor shows scrambled characters.

Files of this type usually begin with the bytes 99 4E 0D 0A. That signature is how programs recognise the format even when the extension is wrong or missing.

The same format is also saved with the extension .pyo.

PYC file format details

Extension.pyc
FormatPython bytecode
MIME typeapplication/x-python-bytecode
CategoryApplication or document
Text or binaryBinary
File signature99 4E 0D 0A
Registered with IANANo
Other extensions.pyo

How to open PYC files

WindowsPYC files (Python bytecode) are made by specific software. The reliable way to open one is with the program that created it; a generic viewer will only show raw data.
MacThe same applies on a Mac: look for a Mac version of the program that makes PYC files.
iPhone and iPadPhones rarely open this type of file directly. The viewer above can show what is inside it without installing anything.
AndroidThe same applies on Android. The viewer above shows the first bytes of the file so you can confirm what it is.

Can you convert a .pyc file?

TapToConvert does not convert PYC files. The usual route is to open the file in the program that made it and use its Export or Save as option.

PYC file FAQ

What is a .pyc file?

A .pyc file is a python bytecode, with the MIME type application/x-python-bytecode.

How do I open a .pyc file?

With the program that created it. The viewer on this page shows what is inside without installing anything.

Is a .pyc file safe to open?

Treat it with care: PYC files can contain code that runs on your computer. Only open ones from sources you trust. Viewing one with the viewer on this page is safe, because it only reads the bytes and never runs them.

What is the MIME type of .pyc?

application/x-python-bytecode. Web servers send this type so browsers know how to handle the file.

Is PYC a text or binary format?

Binary. Its contents are not readable as text.

File type facts come from the IANA media type registry, the mime-db project and the freedesktop.org shared MIME database.

Similar file types

Try MP4 to MP3, HEIC, merge PDF or compress video.