OSI Model·Lesson 9 of 12
Layer 6 — Presentation
The Translator
Two computers might store and represent data in different ways — different ways of encoding text, different image formats, different internal layouts. If one machine sent its data in its own private format, the other might not make sense of it. The Presentation layer (Layer 6) solves this by acting as a translator: it converts data into a common form both sides understand. It's also where data gets encrypted for safety and compressed to save space.
The one-liner
Layer 6 handles the representation of data: translation (so both sides read it the same way), encryption and decryption (for security), and compression (to shrink it). It's sometimes called the syntax layer.
An interpreter at a meeting
Picture two officials at a meeting, one speaking French and one speaking Japanese. Neither understands the other, so an interpreter in the middle translates each way. Both officials just speak naturally and trust the interpreter to bridge the gap. The Presentation layer is that interpreter for computers — it makes sure data leaving one system is in a form the other can understand.
What It's Responsible For
The Presentation layer has three main jobs, all about the form of the data rather than its delivery:
Presentation layer responsibilities
- Translation — converting data between an application's format and a common format, so different systems interpret it identically
- Encryption and decryption — scrambling data before it's sent and unscrambling it on arrival, so eavesdroppers can't read it
- Compression — reducing the number of bits to save bandwidth and speed up the transfer
Translation in Everyday Terms
The clearest example of translation is — the agreed way of turning letters into numbers. If one system wrote text using one encoding and the other read it with a different one, you'd get garbled characters. The Presentation layer makes sure both sides agree, for example on Unicode, so an 'A' means an 'A' everywhere. The same idea covers image and video formats like JPEG or MPEG: standard formats so any device can display them.
Encryption and Compression
This layer is also where data can be secured and shrunk. Encryption turns readable data into scrambled data that only the intended receiver can unlock — the well-known used to secure websites is commonly associated with this layer. Compression squeezes data into fewer bits, so a photo or video takes less bandwidth and arrives faster. Both are about transforming the data's representation, which is exactly this layer's specialty.
“"The Presentation layer is about how an app looks on screen — its user interface."”
Q:What does the Presentation layer do?
A: It handles the representation of data so both sides interpret it the same way. Its three jobs are translation (converting between formats and character encodings), encryption and decryption (for security), and compression (to reduce size). It's known as the syntax layer, its PDU is data, and things like TLS encryption, Unicode, and JPEG map to it.
Quick Revision Cheat Sheet
Layer number: 6
Job: Translate, encrypt, and compress data
PDU (data unit): Data
Also called: The syntax layer
Translation: Character encoding (ASCII, Unicode), file formats
Security: Encryption / decryption, e.g. TLS
Not about: The visual look of an app or its UI