Download ArticleDownload Article

Files that end with the .dat extension are generic data files that store content like plain text, game data, or user-level data. If the contents of the DAT file are plain text, you can open and edit it in a text editor like Notepad or TextEdit. If the DAT file contains special characters, such as Minecraft level.dat files, you'll need to use a special editor. This How.com.vn teaches you how to use a text editor, or one of two NBT editors (NBTExplorer and webNBT) to modify the contents of a DAT file.

Method 1
Method 1 of 3:

Using a Text Editor

Download Article
  1. How.com.vn English: Step 1 Right-click your DAT file and select Open with.
    If your mouse doesn't have a right mouse button, hold down the Ctrl key as you click.
    • This method will only work if your DAT file contains plain text.
  2. How.com.vn English: Step 2 Select Notepad (Windows) or TextEdit (Mac).
    This opens the file for editing in your text editor.
    Advertisement
  3. How.com.vn English: Step 3 Review and edit the file.
    If the file contains plain text, you'll usually be able to tell which application was used to make it. Sometimes, even if it's filled with unreadable characters, a DAT file will include some text that provides clues as to what type of file it is.
    • If you see an application name in the DAT file, you may be able to use that application to open the file. Close Notepad or TextEdit without making changes, then right-click the DAT file again, select Open With, and choose the application.
    • If you see something about "video" in DAT file, you may be able to open the DAT with a video player like VLC Media Player.
    • If you use NotePad or TextEdit to edit a DAT file with unreadable characters and then save it, it will break the DAT file, making it unusable even if you opened it in the correct program.
  4. How.com.vn English: Step 4 Save your changes.
    If you edit the DAT file in your text editor, you can save your changes by clicking the File menu and selecting Save.
  5. Advertisement
Method 2
Method 2 of 3:

Using NBTExplorer

Download Article
  1. How.com.vn English: Step 1 Install NBTExplorer.
    NBTExplorer is a free Windows app that lets you edit the contents of some DAT files that can't be edited with text editors. This includes Minecraft files that end with the .dat file extension, such as level.dat, servers.dat, and (playername).dat.[1]
    • While NBTExplorer is technically available for macOS as well, it hasn't been updated in a long time and might not install properly on your Mac. Use webNBT instead.
    • To install on Windows, go to https://github.com/jaquadro/NBTExplorer/releases/tag/v2.8.0-win, click NBTExplorer-2.8.0.msi, and then click Save (if prompted). Then, double-click the downloaded file and follow the on-screen instructions to install.
  2. How.com.vn English: Step 2 Close the application associated with your DAT file.
    If you know which application on your computer uses this DAT file, you'll need to close the app before you can edit the DAT file. For example, if you want to edit a Minecraft DAT file, close Minecraft now.
    • Make a copy of your DAT file before you start editing in case the changes you make break the file.
  3. How.com.vn English: Step 3 Open NBTEditor.
    It's in the Start menu on your PC.
  4. How.com.vn English: Step 4 Click the File menu and select Open.
    The File menu is at the top-left corner of NBTExplorer.
  5. How.com.vn English: Step 5 Select the DAT file and click Open.
    This opens the DAT file for editing.
  6. How.com.vn English: Step 6 Edit values as needed.
    First, you can't use NBTEditor to edit the file like you would a text file. Instead, you can select values and change the numbers or text associated with them to create different outcomes in the application that uses the file. To edit a value, double-click it, replace the number with the one you want to insert, and then click OK.
  7. How.com.vn English: Step 7 Click the File menu and select Save to save your changes.
    This saves your changes to the DAT file. The next time you open the application that uses that file, it will reflect your changes.
  8. Advertisement
Method 3
Method 3 of 3:

Using webNBT

Download Article
  1. How.com.vn English: Step 1 Go to https://irath96.github.io/webNBT...
    Go to https://irath96.github.io/webNBT in a web browser. If you prefer not to download a Windows app (or are using macOS) and want to edit a Minecraft DAT file (or other NBT DAT file) online, this free online DAT editor lets you drag and drop DAT files for editing.
  2. How.com.vn English: Step 2 Close the application associated with your DAT file.
    If you know which application on your computer uses this DAT file, you'll need to close the app before you can edit the DAT file. For example, if you want to edit a Minecraft DAT file, close Minecraft now.
    • Make a copy of your DAT file before you start editing in case the changes you make break the file.
  3. How.com.vn English: Step 3 Drag your DAT file to the center of the page.
    You can also click the Choose File button and select the file from your computer.
  4. How.com.vn English: Step 4 Edit values as needed.
    It's not possible to edit the DAT file like a text file. Instead, you can select values and change the numbers or text associated with them to create different outcomes in the application that uses the file.
    • Double-click a value in the left panel to see the options inside.
    • To rename a value, right-click the value and select Rename.
  5. How.com.vn English: Step 5 Save the edited file to your computer.
    After making changes, you can save and download the edited version of your file. Just click Save at the top, and save the new version to your computer.
  6. Advertisement

Expert Q&A

Search
Add New Question
  • Question
    What programs open a DAT file?
    How.com.vn English: Yaffet Meshesha
    Yaffet Meshesha
    Computer Specialist
    Yaffet Meshesha is a Computer Specialist and the Founder of Techy, a full-service computer pickup, repair, and delivery service. With over eight years of experience, Yaffet specializes in computer repairs and technical support. Techy has been featured on TechCrunch and Time.
    How.com.vn English: Yaffet Meshesha
    Computer Specialist
    Expert Answer
    DAT files are just text, so any program that can edit text should be able to open it in most cases. If you don't have a program that does this, Notepad++ is a pretty good free option.
  • Question
    What are DAT files?
    How.com.vn English: Yaffet Meshesha
    Yaffet Meshesha
    Computer Specialist
    Yaffet Meshesha is a Computer Specialist and the Founder of Techy, a full-service computer pickup, repair, and delivery service. With over eight years of experience, Yaffet specializes in computer repairs and technical support. Techy has been featured on TechCrunch and Time.
    How.com.vn English: Yaffet Meshesha
    Computer Specialist
    Expert Answer
    DAT is just shorthand for "data file." They're just files that contain information pertinent for files.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!

      About This Article

      How.com.vn English: Yaffet Meshesha
      Co-authored by:
      Computer Specialist
      This article was co-authored by Yaffet Meshesha and by How.com.vn staff writer, Nicole Levine, MFA. Yaffet Meshesha is a Computer Specialist and the Founder of Techy, a full-service computer pickup, repair, and delivery service. With over eight years of experience, Yaffet specializes in computer repairs and technical support. Techy has been featured on TechCrunch and Time. This article has been viewed 355,794 times.
      How helpful is this?
      Co-authors: 18
      Updated: January 26, 2024
      Views: 355,794
      Article SummaryX

      1.Right-click the DAT file and select Open With.
      2.Select Notepad or TextEdit.
      3.Make changes to the file.
      4.Click the File menu and select Save.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 355,794 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement