Introduction
Imagine you have many different types of documents, pictures, and music files on your computer. Each type needs a special way to be saved and opened so your computer knows how to handle it correctly.
Think of file formats as different types of containers, like boxes, envelopes, or jars, each made for holding specific things. The file extension is like a label on the container telling you what's inside and how to open it.
┌───────────────┐ ┌───────────────┐
│ File Name │─────▶│ File Extension│
│ example.jpg │ │ .jpg │
└───────────────┘ └───────────────┘
│ │
▼ ▼
┌───────────────────────────────┐
│ File Format │
│ JPEG image format stores │
│ compressed image data │
└───────────────────────────────┘