Issue 13 · Nov 2–8, 2026Editions · Glossary · Archive · Method · RSS · HU / ENG

News of the AI era, curated weekly

Glossary › Developer basics

file extension

basicwidespread

The file extension consists of a few characters after the last dot at the end of the filename, indicating the file type and what can open it.

In plain terms

A file extension is the end of a file's name: ".pdf" in "szamla.pdf", ".jpg" in "nyaralas.jpg". It is like the label on a jar: you do not need to open it to know whether it holds jam or pickles.

Your computer also looks at this label. It uses it to decide whether to open the image viewer, word processor or spreadsheet application when you click the file, and which icon to show next to it.

But a label is only a caption, not the content itself. If you write 'cucumber' on a jam jar, it still holds jam. Likewise, a file does not change just because you rename its extension.

It matters for AI tools too. A chatbot or coding agent knows partly from the extension whether an uploaded file is a spreadsheet, an image or source code, and in what format to save the finished work.

How it works

  1. When a program saves a file, it appends a symbol of its own format to the name, for example, Word adds '.docx' and an image editor adds '.jpg'.
  2. The operating system (Windows, macOS, Linux) keeps a record of which program belongs to which file extension. This is called an association, and you can change it. macOS and Linux often also examine the file content in addition to the extension.
  3. On a double click, the system checks the extension, finds the associated program, and opens the file with it.
  4. The opening program then reads the file's actual internal structure. If this does not match the extension, you receive an error message or unreadable characters.
  5. Development tools and coding agents likewise infer what is in a file from its extension: '.py' is Python code, '.json' is structured data, and '.md' is text formatted with Markdown markup.

An everyday example

A compressed (.zip) attachment received in an email contains a file named "szamla.pdf.exe". Windows by default hides known file extensions, so you only see "szamla.pdf", and the file may even have a PDF icon. In reality, however, it is an executable program that can damage your computer. If you enable the display of file extensions, the fraud is immediately revealed.

Who is affected

everyoneSuspicious email attachments can often be identified by their file extension before you click on them.
employeeIf you know the difference between .docx, .pdf, and .xlsx, there will be fewer 'I cannot open this' email exchanges with colleagues and clients. → Work & HR
developerEditors, compilers, and coding agents decide how to handle a file based on its extension. → Code
parent, student, teacherFor submissions and online uploads, file types are often required, and the system rejects work with incorrect extensions. → Education & Family

A common misconception

MythChanging a file extension also converts the file into the other format.
In realityRenaming only changes the label; the content remains the same. For a real conversion, the file must be saved or exported into the other format using a program.

Limits and risks

Similar, but not the same

Related concepts

Broader

file, filename, file system

Narrower

PDF, CSV, JSON, Markdown, executable file

On the edge

File format, MIME type, metaadat, operating system, attachment

A brief history

The extension originates from computer systems of the 1960s–70s, such as the operating systems of DEC machines and the 1974 CP/M. The MS-DOS released in 1981 adopted this pattern and popularized the format consisting of a name of up to eight characters and an extension of up to three characters. On home Windows machines, Windows 95 (1995) made long filenames common. Since then, the length of the extension has not been fixed, allowing longer variants to spread, such as .jpeg or .docx, introduced in 2007.

Where things stand

As of late 2026, every widely used operating system uses it, although phones and cloud storage often hide it from the user. With the spread of AI tools it has become important again, because chatbots and agents partly rely on it to recognize what they have received and what they need to produce.

Status: 2026 November

In the news

Appears in 7 Agent Age stories; the curve shows weekly occurrence in the news magazine.

Also known as

file extension · extension · file extension · file extension · filename extension · file extension · filename extension · file suffix

Sources

This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.