.PKL File Extension

Python Pickle File

Developer Python
Popularity
4.0  |  38 Votes
 

What is a PKL file?

A PKL file is a file created by pickle, a Python module that enabless objects to be serialized to files on disk and deserialized back into the program at runtime. It contains a byte stream that represents the objects.

More Information

The process of serialization is called "pickling," and deserialization is called "unpickling." A PKL file is pickled to save space when being stored or transferred over a network then is unpickled and loaded back into program memory during runtime. The PKL file is created using Python pickle and the dump() method and is loaded using Python pickle and the load() method.

There are three protocols used for pickling:

  • Version 0 - The original ASCII protocol, which is backwards compatible with earlier Python versions.
  • Version 1 - The old binary format, which is backwards compatible with earlier Python versions.
  • Version 2 - Python 2.3 format, which features more efficient pickling of new style classes.

NOTE: PKL files may also have the .PICKLE extension but more commonly have the .P extension.

Open over 400 file formats with File Viewer Plus.Free Download

Programs that open or reference PKL files

Windows
Mac
Linux

Verified by FileInfo.com

The FileInfo.com team has independently researched the Python Pickle file format and Mac, Windows, and Linux apps listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified.

If you would like to suggest any additions or updates to this page, please let us know.