Imagine a huge library filled with many books. Each book has a cover that tells you what kind of story or information is inside. Some covers are colorful and show pictures of adventures, others have plain covers with charts and numbers. The cover is like the file extension on a computer file--it tells you what type of content is inside and how to open it.
Inside the library, books are organized by their type: novels, cookbooks, manuals, or magazines. This organization helps you find the right book quickly and know what to expect. Similarly, file formats are the way information is organized inside a file, like a recipe book or a photo album. The file extension is the label on the book cover that helps your computer know which program to use to read it.