Guide

File Extensions Explained: .pdf, .docx, .xlsx and More

· 7 min read · By the Drop and Open team

The letters after the last dot in a file name tell your computer which program should open it. They are called file extensions. Knowing the common ones saves time and keeps you safer.

What an extension actually is

An extension is only a label. It does not change what is inside the file. Rename a photo from .jpg to .pdf and the content stays a photo, but now the wrong program will try to open it. The real format is determined by the file's internal structure.

Common extensions by type

TypeExtensionsTypical program
Documents.pdf, .docx, .rtf, .txtReader, word processor, text editor
Spreadsheets.xlsx, .xls, .csvExcel, Sheets, Calc
Images.jpg, .png, .gif, .webpPhoto viewer, browser
Audio.mp3, .wav, .flacMusic player
Video.mp4, .mov, .webmVideo player, browser

Why the extra letter in .docx and .xlsx?

Microsoft added an x to Office files in 2007 when it moved from binary formats (.doc, .xls, .ppt) to Office Open XML. The x means the file is a zipped bundle of XML. You can rename a .docx to .zip and look inside.

Extensions that deserve caution

What to do with an unknown file

  1. Check the full name and extension.
  2. Do not double-click it if you were not expecting it.
  3. Preview it in a sandboxed environment such as your browser, which does not run macros or programs.
  4. Scan it with your security software.

Browse every format we support

Guides for 30 file types, each with a private preview.

See all formats

Related file guides

Keep reading

Guide

Online File Viewer or Desktop Software: Which Should You Use?

When a browser-based viewer is enough and when you need an installed program, with a simple decision guide.

5 min read
Guide

JSON vs CSV vs XML: Which Format Should You Use?

A clear comparison of three common data formats, with examples of when each one fits and how to read them.

6 min read
Guide

WebP vs PNG vs JPG vs AVIF: Which Image Format Should You Use?

A practical comparison of the four most common web image formats, with advice on when to pick each one.

6 min read