Search

What are file name extensions

File names in Windows Operating Systems, including Windows Server operating systems are made of two parts. First part is the name of the file and the second part is called as the file extension. The purpose of the second part is to identify the file type. The first part and the second part are separated by a period ( . ) character.

For example, the filename monthly-expenses.xlsx has a file name extension xlsx. The file extension in this case is xlsx, which shows the file is a Microsoft Excel file. When you install the Excel app in your computer, the Excel installation program will register the xlsx extension in your computer as a known extension, so that the Operating System can open the file with the relevant app.

Usually the file extensions (second part of the file name) are made of three or four characters. But single–character and five–character file extensions are also available. Examples of single–character and five–character file extensions are .c (C language file extension) and .accdb (Access 2007 database file extension).

I suggest you to visit the following links also, to learn more about the following topics.

What are known file extensions and how to view known file extensions

How to associate a file name extension with an app

Hide or Show known file name extensions in Windows Server 2025

Some important file extensions are listed in the following table.

File ExtensionShort DescriptionLength (Number of chars )
7zCompressed file extension2
accdbMicrosoft Access database file format5
aiAdobe Illustrator file extension2
batBatch commands3
bmpMicrosoft Bitmap image file3
cC programming language file1
cabWindows cabinet file3
capWireshark capture files3
classJava bytecode file extension5
comDOS executable file (A type of early executable file)3
cppC++ programming language file3
cssCascading Style Sheet file3
datData file3
dllDynamic–link library file3
docMicrosoft Word document before Word 20073
docxMicrosoft Word document4
exeWindows executable file3
flac, mp4, mov, avi, mkv, swfVideo file extensions3 to 4
gifGraphics interchange format image file3
gz, gzipUnix Gzip compressed file8
htm, htmlHypertext Markup Language file9
infSetup information file3
iniWindows initialization file3
jarJava archive file3
javaJava programming language file4
jpegJoint photographic experts group image file4
jsJavaScript file2
mdbMicrosoft Access database file format before Access 20073
mscMicrosoft console file3
msiWindows installer package files3
odbOpen Offfice Database file extension3
odgOpen Office Draw file extension3
odpOpen Office Impress file extension3
odsOpen Office Calc file extension3
odtOpen Office Document file extension3
pdfPortable document format3
pngPortable network graphics image file3
potxMicrosoft PowerPoint template4
pptMicrosoft PowerPoint format before PowerPoint 20073
pptxMicrosoft PowerPoint presentation4
psAdobe Post Script file extension2
psdAdobe Photoshop file3
pubMicrosoft Publisher file3
rarCompressed file3
rtfRich text format file extension3
tarUnix compressed file extension3
tif, tiffTagged image format9
tmpTemporary data file extension3
txtWindows text file extension3
vbsVB Script file extension3
vsdMicrosoft Visio drawing before Visio 20133
vsdxMicrosoft Visio drawing file extension4
wav, mp3, aac, m4a, ogg, oga, wma, amr, flacAudio file extensions3 to 4
xlaMicrosoft Excel add-in or macro file3
xlamMicrosoft Excel add-in after Excel 20074
xlsMicrosoft Excel document before Excel 20073
xlsxMicrosoft Excel document4
xltmMicrosoft Excel macro-enabled template after Excel 20074
xltxMicrosoft Excel template after Excel 20074
xmlExtensible markup language file extension3
xsltExtensible stylesheet language transformations file extension4
zipCompressed file extension3

 

Written by Jajish Thomas.
Last updated on 19th July, 2024.

 

Related Tutorials
Introduction to Windows Server 2025
Minimum hardware requirements for Windows Server 2025
New features of Windows Server 2025
How to download Windows Server 2025 Preview iso file
How to install Windows Server 2025
Differences between Server Core and GUI (Desktop Experience)
Default GUI tools in Server Core
How to run PowerShell as administrator
How to run PowerShell as administrator in Server Core
How to find the PowerShell version in Server Core and Desktop experience
How to add Network icon to desktop in Windows Server 2025
How to add Computer (This PC) icon to desktop in Windows Server 2025
How to rename a computer using Windows Explorer
How to rename computer using "Rename-Computer" PowerShell Cmdlet
How to configure IPv4 Address in Windows Server 2025
How to configure IPv4 address in Windows Server 2025 using PowerShell Cmdlets
How to configure IPv6 Address in Windows Server 2025
How to configure IPv6 Address in Windows Server 2025 using PowerShell
What is MMC (Microsoft Management Console) and what are MMC snapin files
Add a snapin to MMC console
What are Roles and Features and difference between Roles and Features in Windows Server
Roles in Windows Server
Features in Windows Server
How to add Roles and Features in Windows Server
How to Remove Roles and Features in Windows Server
How to add Roles and Features using PowerShell
How to remove Roles and Features using PowerShell
Different types of computer hardware devices
What is a Driver Software
What is Device Manager and how to open Device Manager
What is Plug and Play (PnP)
How to scan for hardware changes using Device Manager and pnputil.exe
How to disable a device using Device Manager
How to disable a device using PowerShell Disable-PnpDevice Cmdlet
How to enable a device using PowerShell Enable-PnpDevice Cmdlet
How to update drivers using Device Manager
What is Driver Signing in Windows Operating Systems
What is Roll back of a driver and how to Roll Back a driver
How to uninstall a device using Device Manager
What are File attributes in Windows Operating Systems
attrib command in Windows
How to hide files and folders using Windows File Explorer
How to hide files and folders using attrib.exe command
How to view hidden files using Windows File Explorer
What are file name extensions
What are known file extensions and how to view known file extensions
How to associate a file name extension with an app
Hide or Show known file name extensions in Windows Server 2025
Hide or Show protected operating system files in Windows Server 2025
What are multi–user Operating Systems (OS) and multi–task Operating Systems (OS)
What are local user accounts and local groups in Windows Server
Different types of user accounts in Windows Server
How to create a local user in Windows Server
How to create a local user in Windows Server using New-LocalUser PowerShell cmdlet
How to force a local user to change password on next login
How to enable or disable a local user account
How to allow or prevent a local user to change password
What are Security Principals and SIDs
How to find SIDs of local user accounts