Determine the file type of an unknown file (2024)

Recovered files.

This guide will help you determine the file type of an unknown file in the Windows operating system. You will need to do this if you ever come across a file that no longer has a useful file name which could happen as the result of a recovered deleted file or a file that was found during a Check Disk scan (a possible problem if you remove a USB device improperly).

If you don't already have Show file extensions turned on, do so. Each major release of Windows has changed how to do this, so I'll write an additional guide for that in the future.

Contents

  • 1 Option 1: Use an Online Tool
  • 2 Option 2: Search the File's Signature Online
  • 3 Option 3: Guess from the File's Contents
  • 4 Links

Option 1: Use an Online Tool

There are online web pages designed to determine the file type of an unknown file. I have found checkfiletype.com to be easy and effective. For this site, do the following:

  1. Click Browse to open the File Upload dialog.
  2. Search for your unknown file and click Open to upload the file.
  3. Click Check File Type and wait as the file is uploaded and checked.
  4. If the web site can determine the file type, it will tell you and suggest file extensions.
  5. Rename your file with one of the suggested extensions, then double-click it and see if it opens.

While online tools are usually pretty accurate, they have several short-comings as well:

  • They sometimes give false-positives.
  • They won't accept large files.
  • You can't trust them with files that may contain sensitive information like passwords or banking information.

Option 2: Search the File's Signature Online

Add a txt extension.

If the online tool fails, or you are unable to use it, you can always get the file's signature and try to find it online. Unfortunately, file signatures aren't readily available in Windows, so you'll have to determine it from the file's header. The first thing you need to do is view the file's contents. An easy way to do this is to open it in a text editor. To do this:

  1. Open a text editor.
  2. Drag-and-drop the file into the editor.
  3. If the editor doesn't support drag-and-drop, try using it's File -> Open to open the file. If it can only files with a .txt extension, rename the file and give it a .txt extension.

Viewing a file in Notepad++.

If you're uncomfortable with a hex editor, I suggest using Notepad++ instead of the Notepad program that comes with Windows. You can drag-and-drop into it, open any file from its Open menu, or right-click on the file and select Edit with Notepad++ from the context menu.

From here we can see the first portion of the file, which includes the file's header. In most file headers, the first few letters indicate the file's signature. You can search for this signature in existing lookup lists like garykessler.net/library/file_sigs.html or en.wikipedia.org/wiki/List_of_file_signatures, or even just by doing an online search with the words file signature and the letters from the file.

Renaming with a .zip extension.

For example, in the image we see a file signature of "PK". Doing a search online, we find that PK is the file signature for various compressed files like the hugely popular ZIP format. We can try that by renaming the file and replacing the .txt we added earlier with .zip.

The file now opens in a ZIP viewer.

With the new extension added, double-click the file and see if it opens. If it does, great! If you get an error when trying to open the file, that could mean we've either guessed the wrong extension, or the file is corrupt beyond opening.

Unusual file signature.

Some files will have an unusual file signature which can't be determined easily. In this case, highlight a few characters, copy them, and paste them to search with. In the example to right, you'll find that ÿØ is the file signature for JPEG images.

Option 3: Guess from the File's Contents

Viewing a file in a hex editor.

Some formats either don't have a file signature, or have such a common file signature, it becomes impossible to determine the type. While Notepad++ is good, you'll have better luck with this using a hex editor because they handle the non-printable characters found in binary files more neatly.

When guessing from a file's contents, usually the beginning and ending of the file contains the most useful data. In the example file on the left, we see that this is a media file created by Google. The word "media" indicates this file contains something like audio, images, video, etc. which narrows our search. We also see the words "moov" and a couple instances of "mp4", so we can guess that this file is an MP4 video.

Links

Determine the file type of an unknown file (2024)

FAQs

Determine the file type of an unknown file? ›

CheckFiletype.com helps you determine the true file type of any file based on the content of the file, not the extension. Simply use our online tool to upload the file and we will test it and show you the results. CheckFileType does not require an e-mail or registration.

How to figure out what file type a file is? ›

Open File Explorer; if you do not have an icon for this in the task bar; click Start, click Windows System, and then File Explorer. Click the View tab in File Explorer. Click the box next to File name extensions to see file extensions.

What helps in identifying the type of a file? ›

The correct answer is the File extension. With the help of a file extension, a user can identify the type of file.

How do you determine the unknown file type in Linux? ›

In Linux you can use the file command to determine the type of a given file. file determines the type of file using a pattern that is taken from a special pattern file named magic . To determine, it parses the content of the "unknown" file.

Which command is used to identify file type? ›

To use the file command in Linux, simply open a terminal and type file followed by the path to the file you want to determine the type of. For example, “file example. txt”. The command will then output the type of file based on its content.

How to identify the file type of an unknown file? ›

CheckFiletype.com helps you determine the true file type of any file based on the content of the file, not the extension. Simply use our online tool to upload the file and we will test it and show you the results. CheckFileType does not require an e-mail or registration.

How can you know the type of file without clicking it? ›

Yes it is possible to determine file type without using the file extension. You can do this by reading the file header also sometimes referred as file signature which occupies first few bytes of the file. How many bytes do file header/signature occupy? This depends from file type to file type.

Which typically identifies the type of file? ›

A file extension is a three or four-letter code that appears at the end of a filename and indicates the type of file it is.

What command is most effective at identifying different types of files? ›

Expert-Verified Answer. File Command is the command most effective in identifying different types of files. The file command attempts to classify each file system object (i.e., file, directory or link) that is provided to it as an input.

How does a computer know what type of file? ›

Detecting file types

One way to detect the file format is to look for clues inside the file data itself. Many file types start with a "file header" with metadata. If a computer sees that sequence of binary data, it has a high confidence that the file is a GIF and can send it to an image viewing application.

How do I open an unknown file? ›

  1. Open the file with a hexadecimal (hex) / ASCII editor. There are several available for each operating system. ...
  2. Identify the signature and the matching file type using a list of signatures.
  3. Rename the file so that it has the appropriate file type suffix.
  4. Then open the file with a program appropriate for that file type.
Jan 30, 2023

How do you check the type of a file in Unix? ›

A file's type can be identified by the ls -l command, which displays the type in the first character of the file-system permissions field.

How do I uniquely identify a file in Linux? ›

You can use ls -li filename to see the inode number, the owner name, and group name. Or use stat filename to see the Uid and Gid, as both numeric ID and name ID. It also shows the device number and inode number. The latter pair of numbers identify the file in the file system.

How to find file type? ›

To find the registered file types on a computer running a currently supported version of Windows:
  1. Right-click the Start Menu and select Settings.
  2. When the Settings window opens, select Apps.
  3. Select Default apps.
  4. Scroll down and then select Choose defaults by file type or Choose default apps by file type.
Jan 9, 2024

What is the LS command to find the file type? ›

3. Using ls -l. The very first character indicates the file type for a given object. In this case, we can see the d character which stands for directories, the – symbol which represents regular files, and the l character representing symbolic links.

Which command is used to identify the type? ›

To organize information quickly, Linux provides a program called the file command. It's primarily used to determine the file type – either American Standard Code for Information Interchange (ASCII) text or Multipurpose Internet Mail Extensions (MIME) format.

How do I find the file type in a folder? ›

To search for a specific file extension/type.

Open File Explorer by clicking on the folder icon on your desktop/taskbar or pressing Windows+E. Navigate to the folder you want to search. Then in the upper right corner of the window, click on the Search Bar and type the extension of the file you intend to search.

How do you identify which is a file and which is a directory? ›

3 Answers. Another method: ls -l displays the files and folders with permission bits. If the line starts with a -, it's a file, if it's a directory, it starts with a d.

Which data type is a file? ›

The File/Record data type is a compound data type represented by the number 6 in the database dictionary. A file is a set of related records treated as a single unit and is stored on disk. A file is a particular kind of structure, but a structure is not a kind of file.

Top Articles
Bitcoin USD (BTC-USD) Stock Price, News, Quote & History - Yahoo Finance
New analysis by leading economists concludes that UK government should increase sustainable public investment by £26 billion a year to boost growth and productivity - Grantham Research Institute on climate change and the environment
Ups Customer Center Locations
Average Jonas Wife
Get train & bus departures - Android
Jessica Renee Johnson Update 2023
Why Is Stemtox So Expensive
REVIEW - Empire of Sin
Med First James City
Diesel Mechanic Jobs Near Me Hiring
Wilmot Science Training Program for Deaf High School Students Expands Across the U.S.
ARK: Survival Evolved Valguero Map Guide: Resource Locations, Bosses, & Dinos
Copart Atlanta South Ga
No Hard Feelings - Stream: Jetzt Film online anschauen
Popular Chinese Restaurant in Rome Closing After 37 Years
Fsga Golf
Evil Dead Rise Showtimes Near Regal Sawgrass & Imax
Bethel Eportal
MyCase Pricing | Start Your 10-Day Free Trial Today
Shoe Station Store Locator
Bento - A link in bio, but rich and beautiful.
Phantom Fireworks Of Delaware Watergap Photos
Best Middle Schools In Queens Ny
Margaret Shelton Jeopardy Age
Cosas Aesthetic Para Decorar Tu Cuarto Para Imprimir
Mercedes W204 Belt Diagram
Franklin Villafuerte Osorio
UPS Drop Off Location Finder
Solve 100000div3= | Microsoft Math Solver
Sitting Human Silhouette Demonologist
Orangetheory Northville Michigan
Montrose Colorado Sheriff's Department
Solemn Behavior Antonym
Philadelphia Inquirer Obituaries This Week
Toth Boer Goats
Gary Lezak Annual Salary
Gun Mayhem Watchdocumentaries
The Realreal Temporary Closure
Unitedhealthcare Community Plan Eye Doctors
Foxxequeen
Tableaux, mobilier et objets d'art
56X40X25Cm
Avatar: The Way Of Water Showtimes Near Jasper 8 Theatres
10 Types of Funeral Services, Ceremonies, and Events » US Urns Online
The Complete Uber Eats Delivery Driver Guide:
Headlining Hip Hopper Crossword Clue
Theater X Orange Heights Florida
Is Chanel West Coast Pregnant Due Date
Lux Funeral New Braunfels
Otter Bustr
Hkx File Compatibility Check Skyrim/Sse
Cognitive Function Test Potomac Falls
Latest Posts
Article information

Author: Dr. Pierre Goyette

Last Updated:

Views: 6125

Rating: 5 / 5 (50 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Dr. Pierre Goyette

Birthday: 1998-01-29

Address: Apt. 611 3357 Yong Plain, West Audra, IL 70053

Phone: +5819954278378

Job: Construction Director

Hobby: Embroidery, Creative writing, Shopping, Driving, Stand-up comedy, Coffee roasting, Scrapbooking

Introduction: My name is Dr. Pierre Goyette, I am a enchanting, powerful, jolly, rich, graceful, colorful, zany person who loves writing and wants to share my knowledge and understanding with you.