Generate a 7 Days to Die serverconfig.xml
7 Days to Die is configured in XML, so it is the one game here that will reject the whole file over a single stray character — very often one in your server name.
Start from a preset
Visual Settings
serverconfig.xml
Advertisement
The serverconfig.xml format
Each setting is a property element carrying a name attribute and a value attribute. Since this is genuine XML, characters that mean something to XML cannot appear as-is in a value: an ampersand in the server name must be written as its escape sequence, as must angle brackets and quotes inside a quoted value. This generator handles the escaping for you.
Advertisement
The mistake that wastes an evening
A bare ampersand does not give you a useful error. The XML parse fails, the server drops back to its built-in defaults, and you end up with a running server that has none of your settings and no clue as to why. If nothing you set has taken effect, check the punctuation in your server name before anything else.
Gameplay settings moved into SandboxCode
Since V3.0, which went stable at the end of June 2026, difficulty, XP rate, day length, drop on death, loot and every Blood Moon setting are no longer separate lines in serverconfig.xml. They are all encoded in one value, SandboxCode. The old lines are not rejected; the server simply ignores them, so a config copied from an older guide runs on default rules without any error.
To change gameplay, set the rules in the game's Sandbox Options menu, copy the code it generates, and paste it into SandboxCode. The shipped default is AAAJABJACJADJARFBNC. V3.1 changed some sandbox options again, so a code made on V3.0 may need regenerating. This generator writes SandboxCode and leaves the retired lines out.
Keep your own copy of the file
The server reads whichever file it is started with through -configfile= on its launch line, serverconfig.xml in the stock start scripts. That stock file sits in the install folder, where a SteamCMD update or validate can replace it with the default. Copy it to a name of your own, point -configfile at the copy, and updates can no longer undo your settings.
Settings that start a new world
GameWorld picks the map, GameName names the save, and for random worlds WorldGenSeed and WorldGenSize define the terrain. Change any of them and the server does not alter your existing world; it starts or generates a different one, and your old save stays on disk untouched. Decide them before the first start.