File Formats store a large variety of raw information in a structured format so that the data can be easily stored, processed, and harnessed. A file format is a standard way of storing data in a computer file. There are multiple types of file formats present which can be used to store and retrieve data efficiently.
- Defines how data is structured and stored in a file.
- Many types of file formats exist to serve different needs.
- Each format is designed to handle specific types of data, such as text, images, or audio.
- The right file format helps with easy storage, retrieval, and processing of data.
1. Text File Formats
Text file formats are some of the most basic and widely used formats for storing textual data. They donât include additional formatting or media. These formats are easily editable and can be opened with any text editor.
| Extension | Full Form | Description |
|---|---|---|
| .txt | Plain Text | The most basic text file format, containing only ASCII characters and carriage returns to separate lines. |
| .rtf | Rich Text Format | A more advanced text file format that allows basic formatting like bold, italics, and font styles. |
| .docx | Word Open XML Document | Commonly used by Microsoft Word for storing and saving documents |
| .csv | Comma-Separated Values | A simple format for storing tabular data, with each row representing a data record and commas separating fields. |
| .doc | Word Document | Used for word processing documents stored in Microsoft Word Binary File Format |
| .wps | WPS Office Word Document | A proprietary document file format developed by Kingsoft Office. |
| .wpd | WordPerfect Document | A document file format associated with WordPerfect, a word processing software. |
| Microsoft Outlook message format; contains email messages with formatting, attachments, and other information. |
2. Image File Formats
Image file formats determine how pictures are saved and shown. Choosing the right format affects the file size, quality, and how well it works with different devices, especially for photography, websites, and design.
| Extension | Full Form | Description |
|---|---|---|
| .jpg | Joint Photographic Experts Group | A lossy compression format that is commonly used for photographs and other images with a lot of detail. |
| .png | Portable Network Graphics | A lossless compression format that is commonly used for images with sharp edges or text. |
| .webp | Web Picture Format | It Supports both lossy and lossless image compression with support of 24-bit RGB color. |
| .gif | Graphics Interchange Format | The limited-color format is commonly used for animations and small images. |
| .tif | Tagged Image File Format | High-quality format that is commonly used for professional photography and printing. |
| .bmp | Bitmap | An uncompressed format that is commonly used by Microsoft Windows. |
| .eps | Encapsulated PostScript file | A vector format that is commonly used for print graphics. |
3. Audio File Formats
Audio files come in different formats based on how much they need to be compressed, their quality, and file size. Whether you need top-quality sound or streaming, there are many formats to pick from.
| Extension | Full Form | Description |
|---|---|---|
| .mp3 | MP3 Audio File | Commonly used for storing and distributing music. |
| .wma | Windows Media Audio | Developed by Microsoft for audio compression, often used for streaming and downloading music. |
| .snd | Sound | A generic file extension for sound files, often associated with audio data. |
| .wav | WAVE Audio File | Commonly used for storing and recording audio. |
| .ra | RealAudio | It's a playlist file format that is commonly used for storing and distributing playlists. |
Audio | Used for storing audio data, commonly associated with Sun Microsystems. | |
Advanced Audio Coding | Used as an in-vogue sound field design for packed virtual sound and tune data. |
4. Video File Formats
Video files need special formats to store both the video and audio. Knowing the different video formats can help you pick the best one for quality, file size, and compatibility.
| Extension | Full Form | Description |
|---|---|---|
| .mp4 | MPEG-4 Video File | Multimedia container format that commonly stores video and audio data. |
| .3gp | 3GPP Multimedia File | Multimedia container format that is commonly used for mobile phones. |
| .avi | Audio Video Interleave File | An older multimedia container format that is still supported by many devices. |
| .mpg | MPEG Video File | Older video compression format that is still supported by some devices. |
| .mov | Apple QuickTime Movie | The format that is commonly used by Apple devices. |
| .wmv | Windows Media Video File | Â The format that is commonly used by Microsoft devices. |
5. Program File Formats
Program file formats are used to store source code and scripts written in various programming languages. They allow developers to write, compile, and run programs.
| Extension  | Full Form | Description |
|---|---|---|
| .c | C/C++ Source Code File | General-purpose programming language developed by Dennis Ritchie at Bell Labs between 1969 and 1972. |
| .cpp | C++ source Code File | A general-purpose programming language developed by Bjarne Stroustrup as an extension to the C programming language. |
| .java | Java Source Code File | Programming language created by Sun Microsystems that is now owned by Oracle Corporation. |
| .py | Python script | Â The programming language was developed by Guido van Rossum and first released in 1991. |
| .js | JavaScript | A scripting language that is primarily used to add interactivity to web pages. |
| .ts | TypeScript | A superset of JavaScript that adds optional static typing. |
| .cs | C# Ssource Code File | A programming language developed by Microsoft as part of the .NET framework. |
| .swift | Swift Source Code File | Programming language developed by Apple for developing iOS, macOS, watchOS, tvOS, and Linux applications |
| .dta | Document Type Definition File | A data storage format commonly used by Stata, a statistical software program. |
| .pl | Perl Script | A programming language developed by Larry Wall at the University of California, Santa Cruz in the early 1980s. |
| .sh | Bash Shell Script | A shell scripting language commonly used to automate tasks on Unix-like operating systems |
Batch file | Batch file format used to automate tasks on Windows systems; contains a series of commands to be executed by the command interpreter. | |
Command file | A COM file is an executable file format used for programs on older Windows systems. COM files have limited functionality compared to modern formats. | |
Executable file | An executable file is a type of computer file that contains compiled code that can be run directly by the operating system. Executable files are commonly used to run programs. |
6. Compressed/Archive File Formats
Compressed or archive file formats reduce the size of files and group multiple files into one archive. These formats are used for file transfer and storage efficiency.
| Extension | Full Form | Description |
|---|---|---|
| .rar | WinRAR Compressed Archive | A proprietary file archiver developed by Eugene Roshal. |
| .zip | Zipped File | A lossless data compression format that packages multiple files into a single archive file. |
| .hqx | BinHex | A Macintosh binary-to-text encoding format, often used to transfer binary files through email. |
| .arj | Archived by Robert Jung | A file compression format, similar to ZIP and RAR, used to compress and archive files. |
| .tar | Compressed Tarball File | This file archiving format groups multiple files into a single archive file. |
ARC archive file | An ARC file is an archive file format used for compressing and storing files. ARC is an outdated format and has been replaced by ZIP and other newer options. | |
StuffIt archive file | A SIT file is an archive file format used on Macintosh systems. SIT is similar to ARC but is specific to Macs. | |
GZIP compressed file | A GZ file is a file format created with gzip compression. Gzip shrinks the size of files for storage and transmission. | |
Compressed file | A Z file is a compressed file format associated with the "compress" compression program on Unix systems. |
7. Web page File Formats
Web page file formats are used to create and style web pages. They include markup languages, style sheets, and scripts that determine how web pages are structured and presented.
| Extension  | Full Form | Description |
|---|---|---|
| .html | HyperText Markup Language File | HTML is the standard markup language for creating web pages. |
HyperText Markup Language File | Hypertext Markup Language (HTML) document format with the less common file extension; identical to .html files. | |
| .xhtml | Extensible Hypertext markup language File | This is a markup language that combines HTML with XML. |
| .asp | Active Server page | A web development technology that allows developers to create dynamic web pages using server-side scripting. |
| .css | Cascading Style Sheet | This is a style sheet language used to describe the presentation of a web page. |
| .aspx | Active Server Page Extended File | This allows developers to create dynamic web pages using server-side scripting in ASP.NET. |
| .rss | Rich Site Summary | This is a web feed format that allows users to subscribe to updates from websites. |
8. Features of File Formats
- Structure Data: File Formats have a basic structure of how data should be stored in the file.
- Extension: Extensions are useful so that the operating system can check which type of file is being used.
- Metadata: This is the data that stores useful information about the file such as author name, license, etc.
- Interoperability: This feature enables multiple systems to use the same file format.