File Extensions Explained: What They Are and How to Change Them
Every file on your computer has an extension β those few characters after the last dot in the filename, like .jpg, .pdf, or .docx. Extensions are a small but critical part of how your operating system understands files. This guide explains what extensions are, why they matter, and how to change them safely β whether you're dealing with one file or thousands.
What Is a File Extension?
A file extension is the suffix at the end of a filename, separated from the name by a period (dot). For example, in the
filename report.pdf, the extension is .pdf. In vacation-photo.jpg, it's .jpg.
Extensions serve as a hint to the operating system about what type of data a file contains and which application should
open it. When you double-click a .pdf file, your OS knows to open it with a PDF viewer because of the
extension. When you double-click a .jpg, it opens with an image viewer.
Important: The extension is a label, not the format itself. Renaming a file from .png to .jpg does not convert the image β it only changes what the OS thinks the file is. The actual file data remains unchanged.
Common File Extensions
Here's a reference table of the most common file extensions you'll encounter:
Documents
| Extension | Format | Opens With |
|---|---|---|
.pdf | Portable Document Format | Adobe Reader, browser, Preview |
.docx | Microsoft Word Document | Microsoft Word, Google Docs |
.txt | Plain Text | Any text editor |
.md | Markdown | Markdown editors, code editors |
.xlsx | Microsoft Excel Spreadsheet | Excel, Google Sheets |
.csv | Comma-Separated Values | Excel, text editors, databases |
Images
| Extension | Format | Best For |
|---|---|---|
.jpg/.jpeg | JPEG Image | Photos, web images (lossy compression) |
.png | PNG Image | Screenshots, graphics with transparency |
.gif | GIF Image | Simple animations, small graphics |
.svg | Scalable Vector Graphics | Logos, icons, illustrations |
.webp | WebP Image | Modern web images (smaller file sizes) |
Audio & Video
| Extension | Format | Notes |
|---|---|---|
.mp3 | MP3 Audio | Universal audio format, lossy |
.mp4 | MP4 Video | Universal video format |
.wav | WAV Audio | Uncompressed, high quality |
.mkv | Matroska Video | Supports multiple tracks |
Archives & Code
| Extension | Format | Notes |
|---|---|---|
.zip | ZIP Archive | Universal compressed archive |
.html | Web Page | Opens in any web browser |
.js | JavaScript | Web programming language |
.json | JSON Data | Structured data format |
When Should You Change a File Extension?
There are several legitimate reasons to change file extensions:
- Fixing incorrect extensions: A file saved as .jpeg that should be .jpg (they're the same format, but some systems expect one or the other).
- Standardizing casing: Converting a mix of .PNG, .Png, and .png to all lowercase .png for consistency in web projects.
- Adding missing extensions: Files downloaded without extensions that need one to open correctly.
- Changing text formats: Renaming .txt to .md when the content is actually Markdown, or .txt to .csv when it contains comma-separated data.
- Platform requirements: Some platforms or applications require specific extensions. For example, a web server might only serve .html files, not .htm.
Warning: Changing an extension does NOT convert the file. Renaming photo.png to photo.jpg does not re-encode the image as JPEG. The file's internal format remains PNG. For actual format conversion, use a dedicated converter tool.
How to Change Extensions on Windows
Show file extensions first
Windows hides file extensions by default, which can make renaming confusing. To show them:
- Open File Explorer.
- Click the "View" tab in the ribbon.
- Check the "File name extensions" checkbox.
Now you can see and edit extensions directly when renaming files.
Rename a single file
- Right-click the file and select "Rename" (or select it and press F2).
- Change the extension after the dot.
- Press Enter. Windows will warn you that changing the extension might make the file unusable β click Yes if you're sure.
Rename multiple files
For bulk extension changes on Windows, PowerShell is the most practical built-in option. Or use a browser-based tool like FileTango's Batch Extension Changer for a visual, safe approach.
How to Change Extensions on macOS
Show extensions in Finder
- Open Finder, then go to Finder β Settings (or Preferences).
- Click the "Advanced" tab.
- Check "Show all filename extensions".
Rename a single file
- Click the file to select it, then click the name again (or press Return) to enter edit mode.
- Change the extension and press Return.
- macOS will ask if you want to keep the old extension or use the new one. Choose "Use [new extension]".
Batch rename with Finder
Select multiple files, right-click, and choose "Rename Itemsβ¦". Use the "Replace Text" option to change extensions. For example, replace ".jpeg" with ".jpg".
How to Change Extensions on Linux
Linux treats extensions as part of the filename with no special significance at the OS level. Programs decide how to handle files based on their actual content (using "magic bytes"), not their extension.
To batch-change extensions in the terminal, use the rename command or a shell loop. Alternatively,
use FileTango's browser-based tool for a visual approach that works on any platform.
Batch Changing Extensions with FileTango
For changing extensions on many files at once β regardless of your operating system β FileTango provides the safest and most user-friendly approach:
- Open the Batch Change Extensions tool.
- Select the files whose extensions you want to change.
- Enter the new extension (e.g., "jpg") or choose a casing option (lowercase/uppercase).
- Preview all changes in a table β spot-check that everything looks correct.
- Download the ZIP with your updated files. Originals remain untouched.
Because FileTango runs in your browser and never uploads files, it's safe for sensitive documents and works without an internet connection after the page loads.
Change Extensions Now
Try FileTango's free, private batch extension changer β no installation needed.
Open Extension ChangerFrequently Asked Questions
Can changing a file extension corrupt the file?
No. Changing the extension only changes the filename, not the file's contents. The file data is untouched. However, using the wrong extension may cause applications to fail when opening the file, because they'll expect a different format. Changing the extension back to the correct one will fix this.
What's the difference between .jpg and .jpeg?
Nothing β they refer to exactly the same JPEG format. The .jpg extension became standard because early versions of Windows only supported three-character extensions. Modern systems handle both identically.
Can a file have multiple extensions?
Yes. Files like archive.tar.gz have two extensions. The .tar indicates a tape archive, and
.gz indicates gzip compression. Each extension layer describes a processing step.
What happens if I remove the extension entirely?
The file will still exist and contain the same data, but your operating system may not know which application to open it with. You'll need to manually choose an application or add an extension back.
Conclusion
File extensions are a simple but essential part of how computers understand files. Whether you need to fix incorrect extensions, standardize casing across a project, or convert between equivalent formats like .jpeg and .jpg, understanding extensions helps you work with files more confidently.
For bulk changes, FileTango's Batch Extension Changer provides a safe, visual way to update extensions without touching your original files. For individual files, your operating system's built-in rename feature works fine.