What is a file extension?
What the label after the dot is, and why it does not define the file
Every file name ends with something like .jpg, .pdf or .webp. Those few letters get ignored for years — right up until a system refuses your file. And at that moment the first fix that comes to mind is usually the wrong one: editing the name so the ending matches what was asked for.
An extension is a label. It does not state what a file is, only what it claims to be. This guide covers what that label is good for, where to make it visible on three kinds of device, and what genuinely changing it involves.
What is the extension for?
When you double-click a file, the computer does not peer inside and reason about whether it holds a photograph or a document; it reads the label on the end of the name and launches whichever program is registered for it. See .docx and it calls the word processor, see .mp3 and it calls the music player. The label is a shortcut, not a judgement.
Its second job is filtering. When an upload page says "PDF only", the file picker greys out everything else and refuses to select it — and it decides that from the name, not from the contents. Email attachments and share sheets work the same way.
So the extension is a name tag stuck on the outside of the file. As long as it agrees with the data inside, everything runs smoothly; when it does not, the system trusts the tag, opens the file expecting one thing and finds another.
The trap: renaming to .pdf does not make a PDF
This is the most common piece of bad advice online: "just right-click, type .pdf and you are done". You are not. The data inside the file is still a photograph; all you changed was the writing on the cover.
Here is what follows: the program opening the file reads the name, goes looking for pages, finds JPEG data instead, and reports a damaged or invalid file. Some application systems catch this the moment you upload; others accept the file and the problem surfaces at the other end, which is worse, because the incomplete paperwork comes back to you days later.
A notebook makes it plain: writing "dictionary" on the cover does not turn the pages inside into a dictionary. For that, the contents have to be written afresh. With files, that rewriting is called converting.
Where do you actually see the extension?
Windows and macOS both hide extensions by default, which is why so many people do not know their files have one. Turning them on takes a few seconds and the setting sticks.
Phones split into two cases: the photo app never shows a file name at all, while the file manager shows the whole thing. If you want a file's real name, look in the file manager, not in your photos.
- Windows 11: open File Explorer, click the View button on the toolbar, then Show, and tick File name extensions.
- Windows 10: in File Explorer switch to the View tab and tick the File name extensions box on the right.
- macOS: with Finder open, go to Finder > Settings in the menu bar, open the Advanced tab and tick "Show all filename extensions".
- Android: open the Files (or My Files) app; names are listed with their extensions.
- iPhone: in the Files app, press and hold the file and choose Get Info from the menu; the full name appears there.
The extensions you will actually meet
The table below gathers the labels that turn up in everyday life, what each one carries, and the trouble it typically causes. Knowing which label an upload expects heads off most rejections before they happen.
| Extension | Contents | Typical trouble |
|---|---|---|
| .jpg / .jpeg | Photograph | Official systems usually want PDF |
| .png | Screenshot, transparent graphic | Needlessly large for photographs |
| .webp | Modern web image | Older programs and office suites cannot open it |
| Paged document | Easily exceeds upload size limits | |
| .heic | iPhone photograph | Refused by Windows and many websites |
Changing it for real: conversion
Converting means decoding the data inside the file and writing it out again under the rules of the target format. A new file appears and the old one stays where it was, so nothing is lost if the result disappoints.
If you are not sure what you have, or you are holding a mixed pile of files, the Change Image Format tool sends them all to one target. If you know the direction already, going straight to that pair is quicker: JPG to PNG puts a picture into a lossless form before you start editing it, and WEBP to JPG makes a downloaded image open everywhere.
Direction matters too. Moving a lossy file into a lossless format does not recover the detail already thrown away; it only protects what happens next. Going the other way makes the file smaller but gives up some detail permanently. Which direction you want depends on the plan: uploading calls for compatibility, editing calls for losslessness.
When the extension is missing or wrong
Sometimes a file name carries no label at all — usually a file that arrived through a messaging app or came out of an old archive. Double-click it and the system, with no idea which program to use, offers you a list. Do not panic: the data is intact, only the tag is absent.
Typing the extension in afterwards can work here, but only if you know what is inside. Adding .jpg to a file straight from a camera gives the right result; guessing a label for a file of unknown origin walks you back into the trap at the top of this page.
If you cannot remember where it came from, the safest test is to hand it to an image tool: if it opens, it is an image, and converting it gives it the correct label automatically. If it does not open, it is not an image and forcing a label achieves nothing.
Frequently asked questions
Does changing a file extension convert the file?
No. The name changes and the data inside stays exactly as it was. The program opening it sees that label and contents disagree and reports a damaged file; real conversion means rewriting the data.
My extensions are hidden — how do I show them?
Windows 11: File Explorer > View > Show > File name extensions. Windows 10: the same checkbox on the View tab. macOS: Finder > Settings > Advanced, then tick "Show all filename extensions".
What do I do with a file that has no extension?
The data is fine, only the tag is missing. If you know what it is, type the correct ending; if not, hand it to an image tool — if it opens, converting it will apply the right extension for you.
Is there a difference between .jpg and .jpeg?
Not in the contents; both name the same format. The four-letter spelling survives from systems that allowed only three. If a form insists on one of them, simply rename the file to match.
How do I open a .heic file from an iPhone?
HEIC is the default photo format on recent iPhones, and plenty of Windows programs and websites do not recognise it. Converting the file to JPG before you upload is the path of least resistance.
Last updated: August 27, 2026