The usual way to fix a file on a server is slow: download it with an SFTP client, edit it, upload it again, and hope you replaced the right one. You can skip all of that by making the server's folder appear on your computer like a USB drive. DAT Editor then opens that folder directly and writes your changes back to the server when you click Save to file.
The connection runs between your computer and your server. DAT Editor never sees your password, and no file passes through this website.
What you need
- Chrome or Edge on Windows, macOS or Linux. Opening a folder relies on the File System Access API, which Firefox and Safari don't offer. In those browsers, download and upload the file instead.
- SFTP access to the server: an address, a port, a username and a password (or an SSH key).
Where to find your SFTP details
On a hosting panel. Most Minecraft hosts run Pterodactyl or a panel built on it. Open your server, then its Settings tab: the SFTP Details box shows an address such as sftp://node.example.com:2022 and a username such as alex.a1b2c3d4 (your panel name, a dot, and the server's 8-character ID). The password is your panel password. The port is usually 2022, not 22. Other panels show the same information under a name like SFTP or File access.
On your own VPS or PC. Use the SSH account you log in with, port 22 unless you changed it, and the path to the server folder, for example /home/minecraft/server.
The examples below use alex.a1b2c3d4, node.example.com and port 2022. Replace them with your own.
Step 1: Mount the server folder
Windows
- Install WinFsp and SSHFS-Win, both free and open source. From a terminal you can install both at once:
winget install -h -e --id "WinFsp.WinFsp" ; winget install -h -e --id "SSHFS-Win.SSHFS-Win" - Open File Explorer, right-click This PC and choose Map network drive.
- Pick a drive letter, and in Folder type the address in this form, with
!before the port:\\sshfs.r\[email protected]!2022sshfs.rstarts at the root of what the SFTP account can see, which on a hosting panel is your server folder. On a VPS, add the path after the port, with backslashes:\\sshfs.r\[email protected]!22\home\minecraft\server. - Click Finish and enter your password. The server's files open in a new window and stay available as a drive.
To disconnect, right-click the drive in File Explorer and choose Disconnect. If you'd rather click than type addresses, SSHFS-Win Manager is a free graphical front end for the same tools.
macOS
FUSE-T mounts SFTP folders without a kernel extension, so there is nothing to approve in Recovery mode. With Homebrew installed, run in Terminal:
brew install macos-fuse-t/homebrew-cask/fuse-t
brew install macos-fuse-t/homebrew-cask/sshfs-fuse-t
Then create an empty folder and mount the server in it:
mkdir -p ~/mc-server
sshfs -p 2022 [email protected]:/ ~/mc-server -o volname=MC-Server
On a VPS, put the server path after the colon instead of /, for example [email protected]:/home/minecraft/server, and drop -p 2022 if SSH uses port 22. To disconnect, run umount ~/mc-server.
FUSE-T shows the mount as a network volume. If Chrome can't list the folder, open System Settings → Privacy & Security → Files and Folders and allow Network Volumes for Chrome. macFUSE with its sshfs build works too if you already use it.
Linux
sudo apt install sshfs # Debian, Ubuntu; use your distribution's package manager otherwise
mkdir -p ~/mc-server
sshfs -p 2022 [email protected]:/ ~/mc-server -o reconnect
Disconnect with fusermount3 -u ~/mc-server (or fusermount -u on older systems).
Step 2: Open the folder in DAT Editor
- Open the editor in Chrome or Edge and click Open folder.
- Choose the mounted drive, or a folder inside it. Choosing the world folder (usually
world) is faster than the whole server, because the editor has fewer folders to look through over the network. - Allow the browser to view and edit the folder when it asks.
The sidebar lists the files the editor can open: level.dat, the player files, game_rules.dat on Java 26.1 and later, and the rest. When the server's usercache.json is in the folder you picked, player files are labelled with the player's name instead of only their UUID. Folders that never hold editable files, such as region, logs or plugins, are skipped.
Click a file, change it in the Tree or Visual view, then click Save to file. The editor lists what you changed and asks you to confirm. With Keep previous versions ticked (the default), the version that was on the server is first copied to a hidden .dat-editor-history folder, also on the server; the last 20 are kept for each file. Untick it if you don't want that folder: the browser remembers your choice. The History button lists them, shows what differs from your current edit, and loads one back into the editor.
The editor also checks every file it lists. One that can't be read, for example after a crash during a save, is marked in red; clicking it offers to put back Minecraft's .dat_old copy or a version from the history.
When to save: server running or stopped
| File | Can you save while the server runs? |
|---|---|
A player's file (playerdata/ or players/data/) | Yes, if that player is offline. The server reads the file when they join. If they are online, it overwrites your edit at the next autosave or when they leave. |
level.dat, game_rules.dat and other world files | No. The server keeps them in memory and writes them back when it saves and stops. Stop the server, save, then start it. |
servers.dat | It belongs to the game client, not the server. Edit it on your own computer with Minecraft closed. |
If a file changed on the server after you opened it, for example because the player logged in and out, the editor warns you before saving. Reopen the file to start from the latest version.
If something goes wrong
- Connection refused or timed out. The port is usually wrong. Hosting panels use the port shown in SFTP Details, often 2022; 21 is FTP and won't work.
- The password is refused. Copy the username from the panel exactly, including the dot and the server ID, and use your panel password.
- The drive doesn't appear in the folder picker. On Windows, check that it shows in This PC. On macOS, look under Locations or use the folder you mounted in, and allow Network Volumes for Chrome as described above.
- Saving fails while opening works. The SFTP account may be read-only, or the server may refuse to replace an existing file. On macOS and Linux, remount with
-o workaround=renameadded to thesshfscommand. You can always use Download and upload the file as before. - The folder takes a long time to list. Pick the world folder instead of the whole server.
Keep it safe
A mounted drive gives full access to the server's files to anything running on your computer, so disconnect it when you're done. If your host supports SSH keys, use one instead of your panel password. Make a backup from the panel before larger changes; the history only covers files saved from DAT Editor.