Display Screen Titles and Messages to Players
The /title command lets you display custom text directly on a player's screen. You can place a main title in the center, add a smaller subtitle below it, or put a short message above the hotbar in the actionbar slot.
Map makers and server admins use this command to announce minigame rounds, welcome players to new areas, or show warnings without cluttering the normal chat box. You need operator permissions (level 2) or cheats enabled in single-player to run it.
/title <targets> actionbar <title>/title <targets> clear/title <targets> reset/title <targets> subtitle <title>/title <targets> times <fadeIn> <stay> <fadeOut>/title <targets> title <title>/title <targets> title <title>/title <targets> subtitle <title>/title <targets> actionbar <title>/title <targets> times <fadeIn> <stay> <fadeOut>/title <targets> clear/title <targets> reset| Argument | Type | What it means |
|---|---|---|
<targets> | target selector players only | Specifies which players will see the title, using a player name, UUID, or target selector like @a or @p. |
<title> | text component | Defines the message and formatting using a JSON or SNBT text component, such as {"text":"Hello","color":"gold"}. |
<fadeIn> | time at least 0 | Sets the time it takes for the title to appear, measured in ticks (like 100), seconds (5s), or days (2d). |
<stay> | time at least 0 | Sets how long the title remains fully visible on the screen before starting to fade away. |
<fadeOut> | time at least 0 | Sets the duration it takes for the title to completely disappear after the stay time ends. |
/title @a title {"text":"Welcome","color":"gold"}Shows the word Welcome in gold letters in the center of the screen for all players.
/title @p subtitle {"text":"Round 1 Starts Now","color":"yellow"}Prepares a yellow subtitle for the nearest player so it shows up together with their next main title.
/title @s actionbar {"text":"Zone Safe","color":"green"}Displays a green status message right above the hotbar for the player running the command.
/title Alex times 20 100 20Sets the title timing for player Alex to 20 ticks fade-in, 100 ticks stay, and 20 ticks fade-out.
/title @a[distance=..15] times 1s 4s 2sConfigures the title timers using seconds for all players within 15 blocks.
/title @r clearRemoves the active title from the screen of one random player.
/title Steve resetRestores the default fade durations and clears any stored subtitle for the player named Steve.
Measured from the game files of every Java release from 1.13 to 26.3.
Minecraft Bedrock Edition also includes the /title command with clear, reset, and times options, but its text argument takes a plain message string (<titleText: message>) rather than requiring a JSON text component, and its time values only accept integers.
A subtitle only prepares the text in the background and waits; you must run a /title <targets> title <title> command right after it to make both lines appear on the screen together.
Using clear simply removes the currently visible text from the screen, whereas reset also wipes any queued subtitle and returns the fade-in, stay, and fade-out durations back to their default values.
You need operator permission level 2 on a multiplayer server, or you must have cheats turned on in your single-player world.