How-to

How to Identify an Unknown File Type

· 5 min read · By the Drop and Open team

Sometimes a file arrives without an extension, with a strange one, or with a name that does not match its contents. You can usually work out what it is.

1. Look at the extension

Start with the obvious. Check our list of file formats for the common ones. Make sure your system shows full extensions.

2. Check the magic bytes

Many formats begin with a fixed signature. You can see it in a hex editor or with the file command on Mac and Linux.

Starts withFormat
%PDFPDF
PKZIP-based: DOCX, XLSX, PPTX, ODT, EPUB, JAR
\x89PNGPNG image
\xFF\xD8\xFFJPEG image
GIF8GIF image
ID3MP3 with tags
RIFFWAV, WebP or AVI

3. Is it text?

Open it in a text viewer. Readable words suggest a text-based format such as JSON, XML, CSV or a log. Unreadable symbols suggest a binary format.

4. Try adding an extension

If you suspect a PDF, copy the file, add .pdf and open the copy. If you suspect an Office file, add .docx or .xlsx. If the file is that format, it will open.

5. Be careful

An unknown file might be harmful. Do not run it. Preview it in a browser and scan it with antivirus software. Our safety checklist explains more.

Peek inside a file

Drop it here and see whether it displays.

Open the viewer

Related file guides

Keep reading

How-to

How to Open a DOCX File Without Microsoft Word

Five free ways to read a Word document when you do not have Word, including a private option that never uploads it.

5 min read
How-to

How to View XLSX and CSV Files Without Excel

Read spreadsheets and data exports on any device, without a Microsoft Office licence.

5 min read
How-to

How to Open a PPTX File Without PowerPoint

Free ways to view PPTX slides on Windows, Mac, Android and iPhone, plus an honest note on browser previews.

4 min read