terranaut‎ > ‎

the importance of file extensions

    
    This is written to give a basic, essential understanding of one of the major things needed to be able to control your own system and files, files which you have created and you need to manage for years to come.
    Every windows file has a name you give it so you know what file it is, you already know that, and you know you can rightclick and 'rename' any file.
    After the name of a file, you see the period ( . ) and then 3 letters like .DOC or .JPG and so on.  That part of a filename is called the 'extension'.
    So far so good, yes?
    Now, whatever text is to the left of the period is so you know what the file is, and whatever is to the right of the period is so the computer knows what TYPE of file it is.
    When a computer knows what TYPE of file it is, it then knows what PROGRAM to open that file with. The EXTENSION is on the end of every file so the computer knows what kind of file it is. If it ends in .JPG and you open the file, the computer says "oh, that is a photo, I will open it with my photo program", if it ends in .DOC and you open it, the computer says "ah, this is a word document, I must open this file in Microsoft Word", and if the file ends with .HTM and you open it, the computer says "this file is a webpage, and I'll open it in Internet Explorer".
    Without an extension, your computer does not know what type of file it is, and therefore will not know what program to open it in. Try renaming any file you have and delete the extension (you can add it back after this experiment by renaming it), now try opening the file, and the computer will not open it but will ask you "what program am I supposed to open this file with?". Add the extension back and try opening it again, and the computer will open it as normal because it knows again.
    With the wrong extension, your computer may give you an error. Try renaming a photo of yours by changing the .JPG extension to a .DOC or anything else, and then try opening it. The computer will see the .DOC and say "oh this is a text document so I will open it in Microsoft Word" and then when microsoft word opens, you'll see a bunch of gibberish text. That's because the 'data' in the file is actually a photo, but because you tricked the computer into thinking it was a text document, it tried to open it as text, and that doesn't work. Now rename the file back to the normal .JPG and re-open the file. Now the computer goes back to opening it on the assumption it is a photo again.
    You can't lose information in a file by accidently removing the extension, or by giving it the wrong extension, you will just get an error like "I don't know what type of file this is and what to open it in", until you give it the right extension again. Then all is well.
 
    This is why it is very important to know some of the more common extensions you see weekly on your system, or that people email you files, or you download files; they all have extensions.
    Some programs can open more than one type of extension, like Microsoft Word can open .DOC and .TXT and even .HTM. Though a program may be able to open different types of extensions, usually one program is better than other programs at working with certain files. Like you can open an .HTM file (a webpage) in Microsoft Word and you can see it, but Internet Explorer is better to view webpages as you know.
    Because you can have different programs on your computer which can open the same type of extension (say .JPG for instance), in a computers 'control panel' there is a section to assign what program opens what extension when you open that file. Many programs will open a .JPG file, but if you want photoshop to open .JPG files, you have to go to the control panel and assign .JPG to photoshop, that way when you open the file it will open in photoshop and not another program you don't want it to open.
    One problem with installing new programs is that the new program will change your settings, and it can (without telling you) change system settings so that when you go to open a file, it opens in the new program, and you may not want that. That's when you have to go and change it back so the extension opens in the program you wanted it to. For instance, if you click on a .MP3 file and you know winamp will open, and then you install apples quicktime program, afterwards when you click on a .MP3 it may open up in quicktime instead of winamp, because quicktime went and told your computer "when they click on a .MP3 file open it in quicktime and not in winamp". Media player programs do this alot with .MP3 and .AVI and .MPG and others, so you have to know how to control your system, to control what program opens what extensions.
 
    This list below is a list of common file formats (aka extensions), and again, it is good to know what extensions are because they'll be around a long, long time and most people unfortunately have no idea what they even mean.
    Some extensions on a computer aren't meant for regular users to mess with, because the operating system needs those certain files to perform certain tasks, and programs you install also place files on your hard drive, each with an extension, and those you shouldn't mess with either. For instance, here's some file extensions not to mess with- .DLL .INI .DRV .LOG .SYS .INF .OCX .XML .REG and some others. I don't list those below because you just shouldn't touch those unless you know what they are there fore, again, those are files that 'programs' are composed of. The computer knows those extensions arent photos or movies or songs or texts or webapges, the computer knows those are actual programs instead.
    There are 1000s of extensions and every one has a meaning, again I am only listing the most common ones you'll see in daily life, go HERE to see a big list of them in case someone ever sends you a file with an extensions you aren't familiar with.
    If you don't have the program needed to open an extension, then when you try to open the file the computer will ask "what program should I try to open this file with?". For instance, people often email other people .PPS files, and those are Microsoft Powerpoint files, and many people don't have that program, so they can't open it at all until they install Microsoft Powerpoint.
 
    Lastly, some extensions are the same 'type' of file, but differ to certain ways, for instance -
        AUDIO FILES
        .WAV is a perfect copy of a sound, but .MP3 is not a perfect copy of sound. The reason .MP3 is so popular though is because a .MP3 file is about 10-20 times smaller in filesize than a perfect .WAV file. The reason it is smaller is because a .MP3 is not a perfect copy; lots of the original sound has been 'thrown away' so it fits in a smaller space on your hard drive. The people who developed the .MP3 format tried their best though to make sure the 'thrown away' information is sound that the average person couldn't hear anyways (but a good stereo you will be able to hear the difference between the same song as a .WAV file compared to a .MP3 file, that's why sometimes .MP3 files sound 'whistly' or 'chirpy')
        VIDEO FILES
        .AVI can be a perfect copy of a video, but .MPG is not a perfect copy of video. The reason .MPG is so popular, again, is because the file size is much much smaller than a .AVI file of the same exact video. And again, the reason it is smaller is because the .MPG throws away lots of the original video data so it fits in a smaller space. The people who developed the .MPG format/extension though made it so you could barely notice the missing information (but you'd be able to tell the difference if you saw a perfect .AVI video file as compared to a .MPG file of the same video, because .MPG videos can sometimes look 'blocky' or 'smeary' especially when you make the video size onscreen bigger.)
        PHOTO FILES
        .TIF is a perfect copy of a photo, but a .JPG is not a perfect copy; lots of information in the photo has been thrown away, and again it makes the size much smaller, and again the people who 'developed' the .JPG format/extension tried to make it so that you would barely be able to know what information in the photo was thrown away. If you saw a .TIF and a .JPG of the same photo, you would be able to tell the difference, especially when zooming in on the photo, you would notice the .JPG has 'blockiness' and reduced color fidelity. That's why if you have a digital camera, and if there is a setting to choose to save your photos as .TIF or .JPG, you will have much nicer photos saving them as .TIF
        ETC
        So I hope you get the point; you can have extensions that are the same 'type' of file, but often one is a better choice than another if you want a better quality. Plus, you can always 'convert' files from one type to another if you needed to, like to share them with others via email and so forth. For instance -
        - if you wanted to save a perfect original sound, you would save as .WAV, and then if you wanted to share it with someone as a smaller .MP3, you would make a copy of the .WAV and convert it to a smaller .MP3, and then you'd have two versions; one large and original, the other smaller and reduced quality.
        - if you wanted to save a perfect original video, you would save as a .AVI, and then if you wanted to make it smaller to email someone or such, you could make a copy of the file and convert it to .MPG, and you would have two versions of the same video - a high quality original, and a smaller lesser quality version.
        - if you want to save a perfect original photo, you would save it as a .TIF, and then if you needed it as a .JPG again you would just make a copy and convert it to .JPG so it was smaller (through throwing details away).
        This is why there are programs that 'convert' files from one type (or extension) to another, because sometimes you can have different needs for the same exact file. But to keep high-quality files and then only 'down convert' to lesser qualities when needed, if your best choice. Especially for photos. If you are paying someone to take photos for you, for instance, ALWAYS insist they give you the .TIF copies and not just the .JPG ones with so much information (such as sharpness, color, etc) thrown away. You can always 'down convert' those .TIFs later and still save the high quality originals. Professionals that just offer .JPGs to you aren't professionals at all and are a disgrace.
 
    So now that that's all out of the way, here is a listing I made to quickly explain file types/extensions/formats you might see, and what the most common program is that will open that extension (although again another program might've changed your settings, or you might want to change setting so another program of your choice opens it). If you need details on any certain extension, just ask me:
 
Showing 22 items
EXTENSIONTYPE of FILEOPENS WITH ...DESCRIPTION
Sort 
 
Sort 
 
Sort 
 
Sort 
 
.BMP graphic file your installed graphic program to edit, or microsofts photo viewer to view only An old format from the 80s, dont save as this unless there's a specific reason. 
.GIF graphic file your installed graphic program to edit, or microsofts photo viewer to view only An old format from the 80s, very limited (256 colors only) so do not save as this unless a specific reason to. 
.TIF graphic file your installed graphic program to edit, or microsofts photo viewer to view only BEST to save photos in this format for over 15 years, but the biggest windows weakness is there's no default program to open it; you have to install one. Go to my software section and download microsofts 'raw image viewer' a free XP add-on to view them. Or get a grpahic editing program to work with them. 
.PSD graphic file your installed graphic program to edit, this is the format photoshop saves in by default since it is their format. I save as .TIF instead though This is Photoshops native format, because it saves settings for a photo, not just the photo itself, but .TIF is a better choice unless you need to save in .PSD 
.JPG graphic file your installed graphic program to edit, or microsofts photo viewer to view only The most common photo format in the world, it's small size makes it good for webpages and to share with others. The drawback being .jpg photos throws away details in a photo to make it small as possible, but for real quality always save as .tif (read above for more info) 
.PNG graphic file your installed graphic program to edit, or microsofts photo viewer to view only This decade old format tried to replace .JPG but never caught on (it allows for transparency in photos). Don't use unless there's a specific reason to. 
.KML & .KMZ location on earth with details google earth, microsoft earth a .kml file is like a 'bookmark' to a place on earth much like people bookmark websites, so that people can exchange/save places and any details about exact places on earth, a new fast-growing format you'll see more and more over the years. These will open your 3d earth program and zoom in on the exact spot and show whatever details are attached in the file. 
.ZIP 'collection' of files in a single file viewer built into operating system This is a single file that holds many files inside it. That makes it is easy to share files or archive old files and folders. For instance, instead of someone attaching 20 photos in a email which would take alot of time for both people, they can just put the 20 files in a .zip file and just email that single file, and the receiver just has to open the zip and drag the files out of it into a normal folder. It's like a suitcase. You can zip and unzip by rightclicking on a folder and choosing which to do. 
.HTM or .HTML webpage internet explorer these files combine text, graphics, and other files all in one spot. That's how it caught on 15 years ago; it let people join lots of files and text in one page that others could see to. 
.FLA & .SWF interactive (can be almost anything) adobe flash player These files are on most webpages and allow video/audio/photos/anything to be used and joined in a single file. Flash files are everywhere online, but rarely do people save and share them with others since they are mostly on websites. 
.EXE program this doesn't open in a program; it IS a program. This is actual running code that will execute(run) when you click on it. A program can do anything it has been written to do, it can be good and serve a purpose, or it can be harmful or a virus. Never click on a .exe unless you know exactly where/why you got this program. Every program on your computer; they are are just .EXE files which execute when you click their icons telling them to open. 
.MP3 sound file windows media player or whatever sound program you installed (I use winamp) This is a reduced-quality, but small size, audio file. There are programs to play them, and programs to edit them like 'sound forge'. Lots of hardware can open .MP3 files like mp3 players and ipods. 
.WAV sound file windows media player or whatever sound program you installed the original sound format from 20 years ago, it is sound in a 'perfect' copy, whereas .mp3 'throws away' alot of sound info to make it smaller file size. People working in sound editing (like in 'sound forge')use .wav since its a perfect rendition. 
.XLS & .XLSX spreadsheet / graph file microsofts excel anyone working with numbers,charts, or graphs, already knows this #1 spreadsheet format. great for creating your own customized lists and layouts and computating numbers, even bills and grocery lists and address books, since you can do such good customizing of it. 
.TXT text file microsofts notepad or word this is the original plain-text (no formatting) file from 20 years ago, before there were fancy word processors offering bold and italics and formatting. These files open on any type of computer / operating system and is the easiest way to share plain text with anyone on anything. 
.DOC & .DOCX text file microsofts word this is a 20 year old text format, you know, like a virtual typewriter. The most common text format for everyone, but the problem is, if you share it with others, their computer and printer might view and print it differently than how your own view and print it. Any combo of text and pictures can be laid out exactly as you want it though. 
.PDF text file adobe viewer (ugh) or foxit reader (recommended). Create .PDFs with adobe pdf creator or foxit pdf creator This was created so that a person could make a custom page layout (with formatted text and photos) and then share it with anyone on any other system, so that for them it prints EXACTLY as you sent it. Other formats like .DOC, if you send it to someone else, can vary the final print based on their printer, computer, operating system, and more. .PDF ensures that what you send someone is EXACTLY what they will see and print. Very popular for manuals, books, and when exact formatting for everyone alike is needed. To create a .PDF you send anything you want converted to one to your 'virtual pdf printer' in ANY program, and it converted that to a .PDF file 
.WMV video file windows media player or whatever media player you installed This is a less-common video file, you will see them around once in awhile. 
.MOV video file apples quicktime the popular format of video on apple computers since it has always come installed by default on apples. Apple released 'quicktime' for windows so others outside of the apple realm can watch the videos too, quicktime for windows though is invasive and sneaks on others program though so one must be careful. 
.AVI video file windows media player, or whatever media player you installed the original very old video format- videos saved in this format can be played by most computers / operating systems, the only problem could be with 'codecs' which might have to be installed to open these video files, codecs are like different 'languages' the video might be created with. 
.RAR 'collection' of files in a single file winrar This is a single file that holds many files inside it, much like a .ZIP file, except with .RAR you have to install 'winrar' whereas .ZIP is built into windows for free, some people prefer to use .RAR instead of .ZIP but that's rare, read .ZIP description for details. 
.MPG video file windows media player or whatever media player you installed this is an old format that was introduced to make for smaller video files by throwing away details, but is good for basic video files. If a .mpg does not play it could be because a 'codec' also needs to be installed, which is like a 'language' for videos. 
Showing 22 items