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

Config ready? Rent your server and apply it directly in the panel.

terraria-terraria-vanilla

ZapX AI Agent

Explain how you want to configure your server

Briefly describe the kind of server you want — we'll suggest matching settings.

For example:

Show config file preview
terraria-terraria-vanillaserverconfig.txtLive preview
# Terraria — generated with the ZAP-Hosting Game Config Generator
# zap-hosting.com/tools/terraria/config-generator
# World
worldname=ZAP Terraria World
world=world
autocreate=2
seed=
# Server identity
maxplayers=8
password=
motd=Welcome to our ZAP-Hosting Terraria server!
# Difficulty & language
difficulty=0
language=en-US
# Security & launch parameters
secure=1
upnp=0

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:

KeyDefault valueMeaning
worldnameDefault value: ZAP Terraria WorldWorld name used when a new world is created automatically. Up to 100 characters.
worldDefault value: 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 value: 2Size of an automatically created world: 1 = Small, 2 = Medium, 3 = Large. Applies only if the world file doesn't exist yet.
seedDefault value: emptySeed for automatic world creation. If left blank, Terraria uses a random seed.
maxplayersDefault value: 8How many players can be connected at once, from 1 to 255.
passwordDefault value: emptyPassword required to join. Leave blank for a public server. It's masked in the form and never included in a share link.
motdDefault value: Welcome to our ZAP-Hosting Terraria server!Welcome message players see when they connect. Up to 300 characters.
difficultyDefault value: 00 = Classic, 1 = Expert, 2 = Master, 3 = Journey. Applies only to a newly created world; an existing world keeps its difficulty.
languageDefault value: 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 value: 11 turns on additional cheat protection and is recommended; 0 leaves it off.
upnpDefault value: 0Automatically forwards the port on the router. Not needed on a rented server, so the default is 0.

What the generator intentionally doesn't 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 the 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 your server or fill in the 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 up the 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 settings

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

Step 7

Check the 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 & applying changes

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

Server Configuration Generator

Describe your server.properties in your own words using the ZapX AI Agent or set each option manually — with a live preview to copy or download.

Built by Florian Galz

Terraria Map Viewer

Open your Terraria world file (.wld) and view the full map with biomes, ores, chests, and dungeon. Zoom, search, and save as PNG, entirely in your browser.

Built by Dimitri Heissler

Server Configuration Generator

Describe serverconfig.json to ZapX AI Agent in your own words or set the options in the form — with a live preview for your Vintage Story server.

Built by Florian Galz

Server Configuration Generator

Describe ServerConfig.json to ZapX AI Agent in your own words or set the options in the form — with a live preview for your Core Keeper server.

Built by Florian Galz

Server Configuration Generator

Describe server.cfg to ZapX AI Agent in your own words or set the options in the form — with a live preview for your Necesse server.

Built by Florian Galz

Was this tool helpful?

Your feedback helps us prioritize and improve content.

FAQ

Frequently asked questions about Terraria Server Config

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

Where is serverconfig.txt located on a Terraria server?

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.

Does the new Terraria Server Config take effect immediately?

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.

Can I change the difficulty, size or seed of an existing world?

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.

How many players can I allow on my Terraria server?

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

Why can't I set the port?

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.

Can I edit my existing 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.

What does AI Easy Mode do?

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.

Is the generator free to use without signing in?

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.

Still have questions?

Contact Support
Ready?

Get your Terraria server online today

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

4.6/5 Google32,000+ Active serversSince 2010

No setup. No risk. Online in 60 seconds.

Flexible TermCancel anytimeOnline in 60 seconds
⚡ Zyber Week: 20% off rental servers and selected Lifetime servers with code ZYBER20. Grab the deal