File Extension (.docx, .pdf, .cpp, .png, .exe)
A file extension is the short suffix after the last dot in a filename (like report.pdf). It tells the operating system what type of data the file holds and which application should open it.
How It Works & Why It Matters
Turning on visible file extensions in File Explorer is a key cyber-safety habit—a trick file named "homework.pdf.exe" is actually an executable program (.exe), not a PDF.
Simply renaming ".docx" to ".pdf" does not convert the file; always use Export or Save As.
.docx / .pdf -> Editable document / Fixed layout PDF .xlsx / .pptx -> Spreadsheet / Slide presentation .png / .jpg -> Raster images (PNG supports transparency) .sb3 / .cpp -> Scratch 3.0 project / C++ source code .html / .css -> Webpage / Stylesheet .exe / .zip -> Windows program / Compressed archive
🏫 Classroom Example
Submit school essays as .pdf so margins, Romanian/English diacritics, and fonts never shift on the teacher’s computer.
⚖️ .docx vs. .pdf
Use .docx while writing and editing; export to .pdf for final submission and printing.
Renaming a file extension manually instead of exporting, or opening double-extension executables like "game_cheat.png.exe".