Minecraft server.properties Generator

Build a correctly formatted server.properties file for a Minecraft Java server. Set gameplay, world, network and performance options with a form, then copy or download the file and restart the server.

Loading generator...

What is server.properties?

server.properties is the main configuration file of a Minecraft Java server. It holds the gameplay rules (game mode, difficulty, PvP), the world settings (seed, type, spawn protection), the network settings (port, online mode, whitelist, player limit) and the two values that matter most for performance: view distance and simulation distance. The server reads it once at startup, so every change needs a restart.

It is a plain key=value file. Most problems come from typos, invalid values or edits made while the server was running. The generator writes valid values for every key so the file loads on the first try.

The settings people change most

KeyDefaultWhat it does
server-port25565TCP port the Java server listens on. On a hosting panel, use the port the panel assigned; changing it here does not open it.
max-players20Player slot limit. Raising it does not add CPU or RAM; size the plan for the players you expect.
online-modetrueVerifies accounts with Mojang. Keep true on any public server. Set false only behind a proxy that authenticates for you.
difficultyeasypeaceful, easy, normal or hard. Peaceful removes hostile mobs entirely.
gamemodesurvivalDefault mode for new players: survival, creative, adventure or spectator.
view-distance10Chunks sent to each player (3–32). Costs RAM and bandwidth; caps the client's render distance.
simulation-distance10Chunks that actually tick around each player (3–32). The main CPU lever on a busy server.
motdA Minecraft ServerText shown in the multiplayer list. Colour codes use \u00A7 escapes in this file.
spawn-protection16Radius around spawn that non-operators cannot modify. 0 disables it.
white-list / enforce-whitelistfalseOnly listed players may join; enforce-whitelist also kicks players removed while online.
pvptrueWhether players can damage each other.
level-seed(empty)World seed for a new world. Ignored once the world exists.
level-typeminecraft:normalminecraft:normal, flat, large_biomes or amplified for a new world.
allow-flightfalseLets survival players fly without being kicked. Needed by some plugins; otherwise leave false.
enable-command-blockfalseAllows command blocks to run.
enforce-secure-profiletrueRequires signed chat profiles. Set false only if a proxy or plugin needs it.

Defaults are the values a fresh Vanilla server writes. Paper, Purpur, Fabric and Forge servers use the same file; their extra options live in their own configuration files.

View distance and simulation distance

These two keys decide how much of the world the server loads and how much of it it simulates. View distance costs memory and bandwidth; simulation distance costs CPU, because only chunks inside it run mobs, crops and redstone. A common starting point for a busy survival server is a view distance of 8 to 10 with a simulation distance of 5 or 6. The full explanation, with starting values by server type, is in view distance vs simulation distance; if the server already lags, follow the Minecraft server lag guide.

Common mistakes

  • Editing while the server runs. The server rewrites the file on shutdown and discards your edit. Stop first, or restart immediately after saving.
  • Setting online-mode=false to "fix" login problems. It disables account verification. Fix the actual error instead; use false only behind an authenticating proxy.
  • Quoting values. motd="My Server" shows the quotes in the server list. Values are unquoted.
  • Changing server-port on a hosting panel. The panel assigns the port and the firewall rule; changing the file to a port you were not given makes the server unreachable.
  • Raising view-distance to 32 because the hardware "can handle it". Loaded chunks scale with the square of the distance; 32 is over ten times the chunks of 10.
  • Using § for MOTD colours. In this file colour codes must be written as § escapes, or set the MOTD from a plugin.
  • Expecting level-seed or level-type to change an existing world. They apply only when a new world is generated.

Frequently asked questions

Where is the server.properties file?

In the root folder of your Minecraft server, next to the server jar. On a hosting panel, open the file manager; some panels also expose the most common keys as form fields that write to the same file.

Do I need to restart the server after editing server.properties?

Yes. The file is read at startup only. Edit it while the server is stopped, or stop and start after saving; a running server will overwrite unsaved changes on shutdown.

What happens if I delete server.properties?

The server generates a fresh file with Vanilla defaults on the next start. Your world is not affected, but the port, MOTD, difficulty and other settings revert, so keep a copy.

What does online-mode do?

online-mode=true checks every joining account against Mojang's authentication servers. Setting it to false lets anyone join with any name, including the names of your operators. Only use false behind a proxy such as Velocity or BungeeCord that performs authentication itself, and firewall the backend so players cannot bypass the proxy.

How do I change the server port?

Set server-port to the port you want. On a dedicated machine you also need to open that port in the firewall or router; on a hosting panel you must use a port the panel has allocated to your server. To let players join with a domain and no port, add an SRV record.

Which server.properties settings affect lag?

simulation-distance has the biggest effect on CPU, followed by view-distance for memory and chunk loading. max-players does nothing on its own. Other performance settings live in spigot.yml and Paper's configuration files.