Skip to content
BENIBIX Learn

Executable File vs Binary File

A binary file is any file that is not plain text, like a photo or a zip. An executable is one kind. It is a program you can start.

Development⚙️ Compilers & Runtimes

Executable File

A file that holds a program. You can start it and it runs.

An executable file is a program the computer can start and run. Inside is machine code, or code that a runtime knows how to run. On Windows these files often end in .exe. On macOS and Linux they usually have no ending, and a setting marks them as allowed to run. A compiler or a build tool makes them from source code.

Example
Emma builds her game in C++. The compiler makes game.exe, and her friends run it without any of her source code.
Why it matters
It is how software reaches people who never see the code. It is also why you should only run executables you trust.
Full entry
Development📄 Files & Formats

Binary File

A file of raw bytes, not words. Pictures, apps and songs are all binary.

A binary file stores data as raw bytes that are not meant as text. Pictures, songs, videos, apps and ZIP files are all binary. Only a program that knows the format can make sense of one. Open it in a text editor and you see strange symbols. Binary files are often smaller and faster to read than the same data as text.

Example
Lucy opens song.mp3 in a text editor by mistake. She sees odd symbols, because the file is sound, not words.
Why it matters
Tools treat text and binary files in different ways. Git cannot show which lines changed in a picture.
Full entry

In one line

Executable File
A file that holds a program. You can start it and it runs.
Binary File
A file of raw bytes, not words. Pictures, apps and songs are all binary.