Encoding is a process of representation some information is optimal format for storing or transmission data. And serialization is representation some object or objects for transmission data between some computer programs. So the difference is: a. Encoding deals for some data (text, images, videos) but serialization deals with some objects (data structure) in computer program. b.