File Types Explained: PDFs, Images, Documents, and Archives
A document arrives as a PDF, a photo ends in JPG and a folder of files comes as a ZIP. These short endings are clues about how information is stored and which apps may be able to open it. They can also help you choose the right format before sharing a file.
You do not need to memorize every extension. Understanding a handful of common types, the difference between viewing and editing, and a few safety checks will make everyday file handling much less confusing.
What is a file type?
A file is stored information: it might be a document, picture, audio recording, video or a package of several files. A file format defines how that information is organized. An application needs to understand the format to display or edit the contents correctly.
Many file names end with an extension, such as .pdf, .jpg or .docx. The extension is a useful hint, not a guarantee that the file is safe or that its contents match its name. Some operating systems hide extensions by default, so what you see in a file list may not be the entire name.
Renaming the extension does not normally convert the contents. Changing photo.jpg to photo.pdf changes the name, not the underlying format. To convert a file, use an application or service that can open the original and save or export it in the desired format.
Documents: PDF, DOCX and plain text
PDF is often used when the sender wants the page layout to appear consistently across devices. It is useful for forms, statements and documents meant primarily for reading. Some PDFs allow editing or form filling, but not every PDF is designed for easy editing, and accessibility depends on how the document was created.
DOCX is a common word-processing format. It is often suitable when recipients need to edit text, comments or formatting. Different applications can open many DOCX files, but complex layouts and features may not look identical in every program.
TXT is plain text without the rich formatting of a word-processing document. It is simple and broadly supported, but it does not preserve elements such as page design, images or many formatting features. Choose the format based on the task rather than assuming one is always better.
When sharing a document, check the intended recipient’s needs. If they must edit it, ask which format they can use. If they only need to read a final version, a PDF may be convenient. Before sending either, inspect comments, tracked changes, metadata and hidden content where relevant.
Spreadsheets and presentations
Spreadsheet files such as .xlsx can contain multiple sheets, formulas, charts and formatting. A file may also contain hidden rows or sheets, so review the whole workbook before sharing sensitive information. Compatibility can vary when a workbook uses advanced features or links to external data.
CSV usually stores tabular text with values separated by a delimiter. It is useful for moving simple data between systems, but it does not preserve all spreadsheet features such as formulas, multiple sheets or formatting. Opening a CSV can also change how some values are interpreted, such as leading zeros in an identifier. Keep the original and check the imported result.
Presentation formats such as .pptx are designed for editable slides. Exporting a presentation to PDF can make it easier to review the visual layout, but animations, speaker notes and editable elements may not behave the same way. Check the exported file before sending it.
Images: JPG, PNG and other formats
JPEG, commonly seen as .jpg or .jpeg, is widely used for photographs. It uses lossy compression, which can reduce file size but discard some image information. Repeatedly saving a heavily compressed JPEG can reduce quality.
PNG is useful for graphics, screenshots and images that need transparency. It uses lossless compression for image data, though a PNG is not automatically the smallest or best choice for every picture. A photograph can be much larger as a PNG than as a suitably compressed JPEG.
Other formats such as WebP and HEIC are supported by many modern tools but may not open in every older application. If a recipient cannot view an image, ask which formats their device supports and export a copy in a compatible format. Keep an original if the image matters.
Image metadata can include details such as the date, camera information or location. Before sharing a sensitive photo, review whether location or other metadata will be included. The exact controls depend on the device and sharing method.
Audio and video files
Audio files may use formats such as MP3, AAC or WAV. MP3 is widely supported and typically compressed; WAV is often used for larger, less compressed audio, although the details can vary. Choose based on quality, size and the recipient’s software.
Video files often use a container such as .mp4. A container can hold video, audio and other tracks, while the actual video and audio may use particular codecs. Two files with the same extension can behave differently if a device does not support one of the codecs.
If a video has no sound or will not play, check whether the file downloaded completely and whether the player supports its format. Use a trusted application or ask the sender for a compatible export. Avoid installing an unknown “codec pack” from a pop-up or unrelated download site.
ZIP files and archives
A .zip file is an archive that can contain one or more files and folders. It can make a collection easier to transfer and may reduce its size, depending on the contents. To use the files inside, you usually extract or unzip the archive with a built-in tool or a trusted application.
Before extracting an unexpected archive, verify the sender and purpose. A ZIP can contain ordinary documents, but it can also contain software or harmful files. The archive’s extension does not make its contents safe.
After extracting, check the destination folder and review the files before opening them. Do not run an executable from an unfamiliar source. If the archive is password-protected, obtain the password through an appropriate trusted channel rather than assuming protection proves legitimacy.
How to open an unfamiliar file
- Check the source. Were you expecting the file, and can you verify the sender independently?
- Inspect the extension. Show extensions in your operating system if needed, and look at the full name rather than only the icon.
- Identify the intended purpose. Ask the sender what the file contains and which app they expect you to use.
- Use a trusted app. Prefer a built-in viewer, an official app store or the software vendor’s verified website.
- Keep a copy. If the file is important, preserve the original before converting or editing it.
- Stop if the request is unusual. A document that unexpectedly asks you to enable macros or install software deserves extra caution.
On a work device, follow the organization’s policies for unknown files and report suspicious messages through the designated channel. A file can be harmful even when it has a familiar-looking icon or arrives from a compromised contact.
Viewing, editing and converting
Viewing a file means opening it to read or inspect it; editing changes its contents. Some viewers allow limited annotation but not full editing. A document opened in a browser may look correct while certain fonts, formulas or interactive features are missing.
Conversion creates a new file in another format. Use an app’s “Save as” or “Export” feature when supported, then open the new file and check that important formatting, images and data survived. Conversion can be lossy: a PDF exported from a presentation may not retain animations, and a CSV export can omit formatting and additional sheets.
Online converters can be convenient but may require uploading the file to another service. Do not upload confidential documents to an unfamiliar converter. Check the provider’s privacy practices and use a local or approved tool when the information is sensitive.
File size, compression and sharing
File size affects upload time, storage and attachment limits. High-resolution images and long videos can be large. Compression can reduce size, but the effect depends on the format and settings; compressing an already compressed video inside a ZIP may not save much space.
When reducing an image or video, work from a copy and check the result at the size it will actually be viewed. Excessive compression can make text unreadable or introduce visible artifacts. Keep the original if you may need a higher-quality version later.
For large files, consider a controlled sharing link rather than a large email attachment. Verify the access settings, expiration and editing permissions. Removing access later cannot guarantee that a recipient did not save a copy.
Use sensible security habits
Keep your operating system and apps updated, and use the device’s supported security protections. Be cautious with unexpected attachments, especially files that request additional permissions, macros or software installation. The CISA phishing guide describes why unexpected links and attachments deserve care.
An extension can be misleading, and malicious content is not limited to one type of file. Confirm the context and source rather than assuming that a PDF, image or archive is always harmless. For important documents, keep separate backups that you have tested.
When sharing, inspect the recipient list and the file’s contents. A spreadsheet can contain hidden data; a document can retain comments; a photo can include location information. The safest format depends on both the task and what information should be exposed.
Frequently asked questions
Why will a file not open?
The download may be incomplete, the app may not support the format or the file may be damaged. Verify the source, try a trusted compatible app and ask the sender for another format if needed.
Does a PDF always look identical everywhere?
PDF is intended to preserve layout, but fonts, interactive features and accessibility behavior can vary. Open the exported file and check it on a suitable viewer before relying on it.
Can I convert a file by changing its name?
No. Renaming an extension does not usually change the file’s internal format. Use a compatible app’s export or conversion feature and verify the result.
Is a ZIP file automatically smaller?
Not always. Text documents may compress well, while already compressed images or videos may shrink very little. The main benefit can be packaging several files together.
A quick rule for choosing formats
Ask what the recipient needs to do: read, edit, analyze, print or play. Choose a commonly supported format for that purpose, check the exported result and share it with the minimum necessary access. Keep an original and a separate backup for files that would be difficult to replace.
Further reading: CISA: Recognize and report phishing. File support and conversion options vary by application and device; use the relevant vendor’s current documentation.