Skip to content
BENIBIX Learn

File Format

Development📄 Files & FormatsFiles

Also known as Kind of File, Format of a File

The rules for how a file stores its data. A program must know them to open it.

Think of it like

Think of it like a language. A letter in French needs a reader who knows French.

Example

Lucy saves a drawing as a PNG and sends it to Jack. His photo app knows PNG, so the picture opens at once.

Why it matters

Formats are how programs share work. If nothing on your computer knows a format, the file is just noise.

Definition

A file format is the set of rules for how a file stores its data. It says what each byte means and in what order. A program must know the format to open the file. PNG is a format for pictures, MP3 is one for sound, and JSON is one for data. Two files can hold the same thing in different formats.
Two formats side by side. One stores letters, the other stores the bytes of a picture.

Common mistake

Thinking that renaming a file changes its format. The name changes, but the bytes inside stay the same.

Key takeaways

  1. 1
    Rules for bytes. It says what each byte means.
  2. 2
    The reader must know. A program needs the format to open it.
  3. 3
    Many for one job. Pictures alone have PNG, JPEG and more.

Learn it properly