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

ExtensionFormatOpens With
.pdfPortable Document FormatAdobe Reader, browser, Preview
.docxMicrosoft Word DocumentMicrosoft Word, Google Docs
.txtPlain TextAny text editor
.mdMarkdownMarkdown editors, code editors
.xlsxMicrosoft Excel SpreadsheetExcel, Google Sheets
.csvComma-Separated ValuesExcel, text editors, databases

Images

ExtensionFormatBest For
.jpg/.jpegJPEG ImagePhotos, web images (lossy compression)
.pngPNG ImageScreenshots, graphics with transparency
.gifGIF ImageSimple animations, small graphics
.svgScalable Vector GraphicsLogos, icons, illustrations
.webpWebP ImageModern web images (smaller file sizes)

Audio & Video

ExtensionFormatNotes
.mp3MP3 AudioUniversal audio format, lossy
.mp4MP4 VideoUniversal video format
.wavWAV AudioUncompressed, high quality
.mkvMatroska VideoSupports multiple tracks

Archives & Code

ExtensionFormatNotes
.zipZIP ArchiveUniversal compressed archive
.htmlWeb PageOpens in any web browser
.jsJavaScriptWeb programming language
.jsonJSON DataStructured data format

When Should You Change a File Extension?

There are several legitimate reasons to change file extensions:

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:

  1. Open File Explorer.
  2. Click the "View" tab in the ribbon.
  3. Check the "File name extensions" checkbox.

Now you can see and edit extensions directly when renaming files.

Rename a single file

  1. Right-click the file and select "Rename" (or select it and press F2).
  2. Change the extension after the dot.
  3. 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

  1. Open Finder, then go to Finder β†’ Settings (or Preferences).
  2. Click the "Advanced" tab.
  3. Check "Show all filename extensions".

Rename a single file

  1. Click the file to select it, then click the name again (or press Return) to enter edit mode.
  2. Change the extension and press Return.
  3. 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:

  1. Open the Batch Change Extensions tool.
  2. Select the files whose extensions you want to change.
  3. Enter the new extension (e.g., "jpg") or choose a casing option (lowercase/uppercase).
  4. Preview all changes in a table β€” spot-check that everything looks correct.
  5. 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 Changer

Frequently 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.