Edit your Minecraft server list (servers.dat)

Your multiplayer server list is an uncompressed NBT file. Restore a lost list, rename or reorder servers, move the list to another computer, or fix a broken entry.

The servers on the Multiplayer screen are stored in servers.dat, directly in the game directory: the folder that also contains saves. It is a small NBT file with one entry per server, and it is one of the few Minecraft files saved without compression.

What's inside

servers.dat with two servers
  • { }root
    • [ ]servers
      • { }0
        • Strname"Survival with friends"
        • Strip"play.example.net"
        • BacceptTextures1
        • Stricon"iVBORw0KGgoAAAANSUhEUgAAAEAA…"
      • { }1
        • Strname"Test server"
        • Strip"192.168.1.20:25566"
TagMeaning
StrnameThe name shown in the list. It only matters to you.
StripThe address, with :port when the server doesn't use 25565
BacceptTexturesYour answer to the server's resource pack: 1 accept, 0 decline. Without the tag, the game asks you.
StriconThe server's 64×64 icon as Base64 text. The game refreshes it when it pings the server.

The order of the list in the file is the order on screen.

Common jobs

Restore a list that disappeared

Minecraft keeps the previous version as servers.dat_old. Close the game, rename servers.dat to servers.dat_broken, copy servers.dat_old and name the copy servers.dat. Open it in the editor first to check it contains your servers.

Reorder, rename or remove servers

Open the file in the editor. Drag a server's row by the handle on its left to move it in the list, edit name to rename it, or use Remove in its ☰ menu. Download and replace the file while the game is closed.

Copy your list to another computer

Copy servers.dat into the game directory on the other computer, replacing the one there. To merge two lists instead, open one file, switch to the SNBT text view, and paste the server compounds from the other file inside the servers list, separated by commas.

Stop a resource pack prompt, or bring it back

Set acceptTextures to 1 or 0 to answer once and for all, or remove the tag to be asked again next time.

Keep it uncompressed

Most NBT files are gzip-compressed, and some tools compress every file they save. Minecraft reads servers.dat as raw NBT, so a compressed servers.dat looks broken to the game and the list shows up empty. The editor reports the compression of every file it opens: for servers.dat the bar above the tree reads uncompressed, and the download is written the same way.

If your list is empty after another tool saved it, open that servers.dat in the editor. If the bar says gzip, the servers are probably all there. Choose No compression in the menu next to the Download button, download, and replace the file: the game will read it again.

Where is the game directory?

It's %APPDATA%\.minecraft on Windows, ~/Library/Application Support/minecraft on macOS and ~/.minecraft on Linux, unless your launcher installation uses a custom game directory. The save locations guide has the details. Bedrock Edition stores its server list differently, not in a servers.dat file.

Ready to edit?Open the file in the editor: every value keeps its NBT type and the file is saved in its original format.