
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.
ZapX AI Agent
Explain how you want to configure your server
# 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 & languagedifficulty=0language=en-US# Security & launch parameterssecure=1upnp=0
Show config file preview
# 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 & languagedifficulty=0language=en-US# Security & launch parameterssecure=1upnp=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
# 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:
| Key | Default value | Meaning |
|---|---|---|
| worldname | Default value: ZAP Terraria World | World name used when a new world is created automatically. Up to 100 characters. |
| world | Default value: world | Full 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. |
| autocreate | Default value: 2 | Size of an automatically created world: 1 = Small, 2 = Medium, 3 = Large. Applies only if the world file doesn't exist yet. |
| seed | Default value: empty | Seed for automatic world creation. If left blank, Terraria uses a random seed. |
| maxplayers | Default value: 8 | How many players can be connected at once, from 1 to 255. |
| password | Default value: empty | Password required to join. Leave blank for a public server. It's masked in the form and never included in a share link. |
| motd | Default value: Welcome to our ZAP-Hosting Terraria server! | Welcome message players see when they connect. Up to 300 characters. |
| difficulty | Default value: 0 | 0 = Classic, 1 = Expert, 2 = Master, 3 = Journey. Applies only to a newly created world; an existing world keeps its difficulty. |
| language | Default value: en-US | Language of console messages. Available options: en-US, de-DE, it-IT, fr-FR, es-ES, ru-RU, zh-Hans, pt-BR and pl-PL. |
| secure | Default value: 1 | 1 turns on additional cheat protection and is recommended; 0 leaves it off. |
| upnp | Default value: 0 | Automatically 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
Download file
Download the generated serverconfig.txt using the button above.
- 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
-configstartup parameter points to. - 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 SupportGet your Terraria server online today
Rent your Terraria server now and apply this config directly in the panel.
No setup. No risk. Online in 60 seconds.
