Presentation Layer
The presentation layer is responsible for transforming data between the application layer and the lower layers.
Data in the application layer may use a different data encoding than the lower layers. E.g., text could be encoded or decoded into different text formats, such as ASCII to UTF-8 and vice versa.
data could be compressed or decompressed
data could be encrypted or decrypted
Note
HTTP doesn’t make a distinction between application and presentation layer. The header information contains the information needed for encoding and decoding the content.