Terraria tool

Terraria serverconfig.txt generator

Choose a world, set its size, difficulty and seed, then copy or download a serverconfig.txt that follows the wiki's documented keys. The tool explains which settings only apply to a new world.

100% freeNo sign-upRuns in your browser
0Changed
0Settings
serverconfig.txt

                
Message of the day, password, world name, new world size and difficulty, cheat protection, port and player slots come from the Startup tab and your plan. Turn this on if the file is for a ChicagoServers server.
Import an existing file paste to load

How to use the Terraria serverconfig.txt Generator

  1. Decide: existing world or new world? To load an existing world, enter its path. To make a new one, set the world size, name, difficulty and seed, and give a path that does not exist yet.
  2. Set the basics. Player limit, port, password and a message of the day.
  3. Copy the file. Copy the text or download serverconfig.txt. Optional keys only appear if you change them.
  4. Use it. On your own machine, start the server with the config file. On ChicagoServers, use the Startup tab for the panel-managed fields and the Configs tab for the rest.

Which settings apply to what

This is where most confusion comes from. autocreate, worldname, seed and difficulty only matter when a world is being created. If world points at a file that already exists, the server loads that world and ignores those four. Changing difficulty on a server that already has a world does nothing. You need a new world for that.

World size is the autocreate value: 1 for small, 2 for medium and 3 for large. Difficulty is 0 for Classic, 1 for Expert, 2 for Master and 3 for Journey.

Keys this tool writes

The tool covers the keys the Terraria wiki documents for serverconfig.txt: world, autocreate, seed, worldname, difficulty, maxplayers, port, password, motd, worldpath, banlist, secure, language, upnp, npcstream and priority. Keys you leave alone are left out of the file, so the game uses its own defaults.

Journey mode has its own per-power permission keys. They are covered in our difficulty and Journey guide and are not in this tool.

On ChicagoServers

The panel writes several of these from the Startup tab at every start, so editing them in the file does not stick: message of the day, join password, world name, new world size, difficulty and seed, cheat protection, the port and the player slots. Use this tool for the rest, or to plan the values before you fill in the Startup tab.

Frequently asked questions

Where does serverconfig.txt go?

On your own machine it sits next to the server and is passed to it at startup. On ChicagoServers, open the Configs tab and pick Server config.

Why did changing difficulty do nothing?

Difficulty only applies when a world is created. An existing world keeps the difficulty it was made with.

What do the autocreate numbers mean?

1 creates a small world, 2 a medium one and 3 a large one. It only applies if the world file does not exist yet.

What is the default player limit?

The wiki gives 16 as the default, and 8 before version 1.4.0.1. You can set any number from 1 to 255.

Do I need upnp on a hosted server?

No. UPnP forwards ports on a home router, which is not relevant on a hosted server.

Is my file sent anywhere?

No. Everything stays in your browser.

Terraria hosting

Run your own Terraria server.

Upload your world, choose your difficulty and let friends join in minutes, with DDoS protection included.

Every difficulty modeFree world uploadsTShock supportedDDoS protection included