DAT files are used by various programs to store text, graphics, video, or binary data. The most common DAT file you may encounter on a Mac is a malformed email attachment sent from Microsoft Outlook. These files usually come as winmail.dat or ATT0001.dat . Because DAT files have such broad functionality, it can be difficult to determine what program to use to open them. You can open DAT files in a text editor like TextEdit to determine what program to use, or use an app specifically for opening DAT files attached to emails. Read on to learn how to open them, with tips from computer specialist Yaffet Meshesha.
Opening DAT Files on Mac
Most DAT files contain plain text. To open them, right-click or Ctrl-click the file and select Open With > TextEdit . If the file contains something other than text, your Mac might suggest an alternative app, such as a media player. You can also try an app designed to open winmail.dat files, like TNEF’s Enough.
Steps
Opening DAT Files in TextEdit
-
Right-click or Ctrl -click the DAT file. Right-clicking or Ctrl -clicking a file will display a pop-up menu for that file.
- If you are using an Apple Magic Mouse or a MacBook with a trackpad, you can right-click by clicking with two fingers on the trackpad or magic mouse.
- You can use this method for most DAT files that contain plain text.
-
Hover the over Open With… . This will display a list of applications that the file can be opened up with.
-
Click TextEdit . TextEdit can read most text-based files on your computer. You may be able to read the text to ascertain what program the DAT file is used in or to read its contents to see if it was originally an email message formatted as RTF. If TextEdit cannot open the DAT file, it isn't a text-based file.
- You probably won’t see TextEdit as an option if your DAT file doesn’t contain text. In these cases, you might see something like VLC, Preview, or QuickTime instead.
- Some DAT files are locked and cannot be manipulated.
-
Look for any text mentioning the program it might be associated with. DAT files have no set structure or layout and are often lines of code or instructions meant for a specific program. If you see mention of any software, there is a good chance that the DAT file was intended to be used with that program. Try opening the DAT with the program mentioned.
Opening DAT Files in Excel
-
1Open the file in a text editor first. Opening a DAT file in Excel can be useful if you need to visualize or manipulate the data in the file. Depending on how the data is formatted in the DAT file, exporting it into Excel or a similar spreadsheet app may be a pretty simple matter. To start, right-click or Ctrl-click the file and select Open With > Text Edit (or your text editor of choice).
- This will work best if the data in the file is comma- or tab-separated. If the data isn’t already delineated this way, you might wish to do so manually before you try to import it.
- Use this method for DAT files that contain text data.
-
2Copy the data to a new file if necessary. Some DAT files are locked so you can’t edit or duplicate them. In these cases, you may be unable to import the data from the original file to Excel since Excel may not recognize the file format. You can get around this by selecting the text in the file, copying it, and pasting it into a new text file in the same text editor. Give the new file a name you can easily recognize and save it to a convenient location on your Mac.
- If you can do so, you can also select Duplicate or Save As from the File menu and simply save a copy of the DAT file as a text file.
-
3Open Excel. Once you’ve made any desired edits to the text in your DAT file, launch the Excel app.
-
4Click File > Import . Click File in the Excel menu bar at the top of the screen, then select the Import option.
-
5Select “Text file” and click Import . A window will open, prompting you to select a type of file to import. Click the radio button next to Text file and then click the Import button.
-
6Choose your file and click Get Data . A file browser will open. Locate the text file you created from the DAT file and click Get Data .
-
7Follow the prompts in the Text Import Wizard. This wizard will help ensure that your data is imported in a helpful way.
- On the first page, select whether to import your data in “Delimited” format (e.g., as values separated by tabs or commas) or “Fixed width” (use this for data formatted as columns with spaces between them in the original document). You can also choose your starting row if you don’t want to import all the data from the DAT file. Click Next to continue.
- Choose the right kind of delimiter for your data on the next page. For example, if your data is separated by commas in the text file, click the checkbox next to “Comma.” You can also choose “Other” if none of the default options match. Click Next .
- Choose the column data format. For example, you can choose to import each column as general data, text, or a date. Click Finish .
-
8Choose how you want to view the data in Excel. Next, you’ll be prompted to import your data into an existing sheet or create a new sheet. This window may also allow you to change how the data is formatted (e.g., in a table, PivotTable, or PivotChart). Click Import when you’ve made your selections.
- You can now view and manipulate the data from the DAT file in spreadsheet format.
Expert Q&A
Tips
References
About This Article
1. Right-click the file.
2. Hover the cursor over Open With
.
3. Click TextEdit
.