Skip to content
BENIBIX Learn

File Extension

Development📄 Files & FormatsFiles

Also known as Filename Extension, File Suffix

The ending after the dot in a file name, like .pdf. It hints at what kind of file it is.

Think of it like

Think of it like a label on a jar. It tells you what is inside before you open it.

Example

Emma double-clicks budget.xlsx. Her computer sees .xlsx and opens it in her spreadsheet app.

Why it matters

Extensions decide which app opens a file. Some systems hide them, and that lets a fake file pass as a safe one.

Definition

A file extension is the short ending on a file name, after the last dot. In report.pdf, the extension is .pdf. It hints at the file's format. Your computer uses it to pick which app opens the file. It is only a hint, though. The real format is in the bytes inside.

Example code

console
$ ls
notes.txt  photo.png  report.pdf
Three files. The letters after each dot hint at what kind of file it is.
The .txt and the .png are the extensions. They hint at what is inside each file.

Common mistake

Renaming photo.png to photo.jpg to change its format. Only the label changed, so some apps refuse to open it.

Key takeaways

  1. 1
    After the last dot. The extension is the final part of the name.
  2. 2
    Picks the app. The system opens the matching program.
  3. 3
    Only a hint. The bytes inside are the truth.

Compare

Learn it properly