Skip to content
Terraria
Game Configurator

Terraria Server Configuration Generator

Use this Terraria Server Config generator to configure your Terraria server without writing serverconfig.txt by hand. Set the world, world size, seed, player count, password, difficulty and server language using the form or AI Easy Mode, then preview, copy or download the config. Free and no sign-up required, including for Easy Mode.

Built by Florian Galz

Example result

Example: the generated serverconfig.txt

You set the options using a form or AI Easy Mode, and the generator creates the finished serverconfig.txt for Terraria live. Below are the first lines of the default configuration; your file contains your values and all other settings.

Example · Default configuration

Output

serverconfig.txt
# Terraria — generated with the ZAP-Hosting Game Config Generator# zap-hosting.com/tools/terraria/config-generator # Worldworldname=ZAP Terraria Worldworld=worldautocreate=2seed= # Server identitymaxplayers=8password=motd=Welcome to our ZAP-Hosting Terraria server! # Difficulty & language
  • +6 rowsYou can copy or download the complete file in the generator; the sample lines here only show the beginning.

Settings

Settings in your Terraria Server Config

serverconfig.txt consists of simple key=value lines; comments start with #. The generator writes these settings for you using their default values:

KeyDefaultMeaning
worldnameDefault: ZAP Terraria WorldWorld name used when a new world is created automatically. Up to 100 characters.
worldDefault: worldFull path to the world file including .wld; worlds are stored in Terraria's Worlds folder. The server loads this world or creates it there if it doesn't exist yet. On a ZAP-Hosting server, the name without folder or .wld is enough, as in the default value; the server adds both itself.
autocreateDefault: 2Size of an automatically created world: 1 = Small, 2 = Medium, 3 = Large. Applies only if the world file doesn't exist yet.
seedDefault: emptySeed for automatic world creation. If left blank, Terraria uses a random seed.
maxplayersDefault: 8How many players can be connected at once, from 1 to 255.
passwordDefault: emptyPassword required to join. Leave blank for a public server. It's masked in the form and never included in a share link.
motdDefault: Welcome to our ZAP-Hosting Terraria server!Welcome message players see when they connect. Up to 300 characters.
difficultyDefault: 00 = Classic, 1 = Expert, 2 = Master, 3 = Journey. Applies only to a newly created world; an existing world keeps its difficulty.
languageDefault: en-USLanguage of console messages. Available options: en-US, de-DE, it-IT, fr-FR, es-ES, ru-RU, zh-Hans, pt-BR and pl-PL.
secureDefault: 11 turns on additional cheat protection and is recommended; 0 leaves it off.
upnpDefault: 0Automatically forwards the port on the router. Not needed on a rented server, so the default is 0.

What the Generator Intentionally Does Not Cover

  • port: The port depends on the server's network configuration, so the generator deliberately omits it.
  • worldpath and banlist: The generator does not set file or folder paths.
  • npcstream and priority: The generator doesn't cover these advanced performance settings.
  • Additional startup parameters: This generator field is not a serverconfig.txt key and is not written to the file.

Guide

How to create your Terraria server config

From defaults to restarts: how to configure your Terraria server with serverconfig.txt.

Step 1

Open generator

The generator starts with the defaults for a serverconfig.txt: 8 players, a medium world and Classic difficulty. To import an existing serverconfig.txt, upload the file or paste its contents.

Step 2

Describe Server or Set Fields

In Easy Mode, describe your server to the AI in your own words and apply only the suggestions you confirm. In Advanced Mode, you set each field yourself.

Step 3

Set world

Enter the world name and, under world, the path to the world file including .wld. On a ZAP-Hosting server, the file name without .wld is enough. Choose Small, Medium, or Large, and optionally enter a seed. Without a seed, a random world is generated.

Step 4

Set player count, password and welcome message

Set the maximum player count from 1 to 255, add a password for a private server and write a welcome message (MOTD).

Step 5

Choose difficulty and language

Choose Classic, Expert, Master, or Journey and the language of console messages. Difficulty only applies to a newly created world.

Step 6

Check security

Keep the additional cheat protection (secure=1) enabled. Leave UPnP disabled on a rented server.

Step 7

Check preview and export

Check serverconfig.txt in the live preview. Then copy it, download it or share a link that doesn't contain your password.

Step 8

Apply the config to your server

Self-hosted server: Enter the full path to your world file including .wld under world; otherwise, the server creates a new world instead of loading yours. Put the file anywhere on your server and start the Terraria server with the -config startup parameter followed by the path to serverconfig.txt. Otherwise, it ignores the file. Terraria reads it only at startup, so restart the server after each change. ZAP-Hosting server: The server regenerates the file from the startup parameters at every startup. Set the values in the startup parameters in the panel and restart the server. UPnP has no startup parameter and is lost at the next startup.

Setup

File location & usage

Two ways to get the config onto a server: upload it yourself or apply it directly in our panel.

The manual method

On a self-hosted server

  1. 1

    Download file

    Download the generated serverconfig.txt using the button above.

  2. 2

    Upload via file manager or FTP/SFTP

    A self-hosted server has no fixed location for it: the server loads the file that the -config startup parameter points to.

  3. 3

    Apply changes

    Start the Terraria server with the -config startup parameter followed by the path to serverconfig.txt. Otherwise, it ignores the file. Terraria reads it only at startup, so restart the server for changes to take effect.

The ZAP-Hosting way

Startup parameters in the panel

On a ZAP-Hosting server, the server image regenerates serverconfig.txt from the startup parameters at every startup. Set the values in the startup parameters in the panel. Settings without a startup parameter, such as UPnP, are lost at the next startup.

  • Startup parameters directly in the panel
  • No FTP client required
  • Online in 60 seconds

More tools

Useful tools for your Terraria server

FAQ

Frequently asked questions about Terraria Server Config

Quick answers about file location, restarting, world settings, player count, port, import, Easy Mode and passwords.

On a ZAP-Hosting server, it's in the config folder: config/serverconfig.txt on Linux or config\serverconfig.txt on Windows. It's regenerated from the startup parameters in the panel at every startup, so your edits to the file won't be saved. On a self-hosted server, you choose the path and pass it to the server with the -config startup parameter.

No. Copying or downloading doesn't change your server. On a self-hosted server, upload serverconfig.txt, specify its path with the -config startup parameter and restart the server. Terraria reads the file only at startup and ignores it without -config. On a ZAP-Hosting server, the file is regenerated from the startup parameters in the panel at every startup. Set the values there and restart the server. Values without their own startup parameter, such as UPnP, can't be set there.

No. difficulty, autocreate and seed apply only when Terraria automatically creates a new world because the specified world file doesn't exist yet. An existing world keeps its difficulty. The values are: difficulty 0 = Classic, 1 = Expert, 2 = Master, 3 = Journey; autocreate 1 = Small, 2 = Medium, 3 = Large. If you leave the seed blank, Terraria uses a random seed. Terraria creates the world at startup, not the generator.

The generator accepts maxplayers values from 1 to 255; the default is 8 players.

The port depends on the server's network configuration. The generator therefore deliberately omits it and doesn't write a port entry to serverconfig.txt.

Yes. You can upload a .txt or .properties file of up to 2 MB or paste its contents. The generator adds recognized settings to the form; other lines are preserved and placed at the end of the exported file. Comment lines starting with # are dropped.

Describe the server you want in your own words, such as “small private Expert server with a password for friends,” or click one of the examples. The AI suggests suitable values, explains each change and applies only what you confirm. Your server password is not sent to the AI.

Yes. The form, Easy Mode, import, copy, download and share link all work without an account. Easy Mode is briefly rate-limited to prevent excessive requests. The password is masked in the form and never included in a share link, which contains only your changed, non-secret values.

Any more questions?

Contact Support
Ready?

Get your Terraria server online today

Rent your Terraria server now and apply this config directly in the panel.

4.4/5 Trustpilot32,000+ Active serversSince 2010

No setup. No risk. Online in seconds.

Flexible TermCancel anytimeOnline in 60 seconds