Minecraft Tellraw & Title Command Generator
Easily create colorful and interactive text in the chat or on the screen with this WYSIWYG generator for Tellraw and Title commands.
Live PreviewChat
Command Type
Tellraw (Chat)
/tellraw @a {"text":"Hello World!"}What this generator does
Set the color, style and click/hover actions for each piece of text, and the generator builds /tellraw and /title commands. The text format changed a lot in 1.16 and 1.21.5 (hoverEvent contents, then click_event, hover_event and SNBT), and the generator writes the right format for the version you pick. The live preview shows how it will look in game.
Command Usage Examples
1. Warning in the middle of the screen
Shows maintenance or boss alerts in bold red text in the center of the screen.
/title @a title {"text":"Server maintenance starts soon!","color":"red","bold":true}2. A button that gives an item
The /give runs with the clicking player's own permission, so it does not work for non-operators. Since 1.21.5 clickEvent is click_event and value is command.
1.21.5+/tellraw @p {"text":"[Claim reward]","color":"gold","click_event":{"action":"run_command","command":"/give @s diamond 1"},"hover_event":{"action":"show_text","value":"Click to get a diamond"}'}1.16 ~ 1.21.4/tellraw @p {"text":"[Claim reward]","color":"gold","clickEvent":{"action":"run_command","value":"/give @s diamond 1"},"hoverEvent":{"action":"show_text","contents":"Click to get a diamond"}'}3. Title and subtitle together
Set the fade-in, stay and fade-out ticks with times first, then show the subtitle and the title. The subtitle appears together when the title runs.
/title @a times 20 100 20
/title @a subtitle {"text":"The end is near...","color":"gray","italic":true}
/title @a title {"text":"The Dragon Awakens","color":"dark_purple","bold":true}4. Discord or website link
Opens the link in a browser when clicked. Since 1.21.5 the open_url value field is url, and it must start with http:// or https://.
1.21.5+/tellraw @a {"text":"Join our Discord","color":"blue","underlined":true,"click_event":{"action":"open_url","url":"https://discord.gg/"}'}1.16 ~ 1.21.4/tellraw @a {"text":"Join our Discord","color":"blue","underlined":true,"clickEvent":{"action":"open_url","value":"https://discord.gg/"}'}5. Status above the hotbar
actionbar shows briefly just above the hotbar without covering the center of the screen. Run it from a repeating command block to keep it visible. (1.11+)
/title @a actionbar {"text":"Area: Safe Zone","color":"green"}Useful values
Values people look up most often when styling text. All for Java Edition.
1. Color names
There are 16: black, dark_blue, dark_green, dark_aqua, dark_red, dark_purple, gold, gray, dark_gray, blue, green, aqua, red, light_purple, yellow and white. Since 1.16 hex colors like #FF8800 also work.
2. Click actions (click_event)
open_url (open a link), run_command (run a command), suggest_command (fill the chat box), copy_to_clipboard (copy text) and change_page (turn a book page). Since 1.21.5 links go in url and commands in command.
3. Hover actions (hover_event)
show_text (show text), show_item (item tooltip) and show_entity (entity info). show_entity needs the target entity's UUID to display.
/tellraw and /title changes by version (Java Edition)
When JSON text from an old tutorial fails in a current version, it is usually because of these changes.
| Version | Change |
|---|---|
| 1.7.2 | Added /tellraw. |
| 1.8 | Added /title. |
| 1.11 | Added /title actionbar. |
| 1.16 | hoverEvent value became contents, and color accepts hex colors such as #FF8800. |
| 1.21.5 | Text in commands uses SNBT instead of JSON; clickEvent and hoverEvent became click_event and hover_event, open_url value became url, and run_command and suggest_command value became command. |
How we checked: the commands and error messages on this page were run and confirmed by the site operator on our own Java server (except permission cases involving other players). The 1.21.5 changes follow the official snapshot notes (25w02a), and FAQ error messages are quoted from the game's language file (en_us). Last checked: November 2026.
Frequently Asked Questions (FAQ)
Q. I get 'Invalid chat component: ...'.
A. The text format is wrong. Usually braces or quotes do not match, a color name is misspelled (dark_purple, light_purple, etc.), or a field does not fit the version. Choosing the version in the generator formats it for you.
Q. I used clickEvent from an old tutorial and the button does nothing in 1.21.5+.
A. Field names changed in 1.21.5. Use click_event instead of clickEvent and hover_event instead of hoverEvent; run_command takes command and open_url takes url instead of value.
Q. Clicking the link does not open it.
A. Since 1.21.5 open_url only accepts addresses starting with http:// or https://. It also will not open if the player turned off web links in chat settings.
Q. The run_command button does not work for regular players.
A. Click event commands run with the clicking player's own permission. To let everyone use it, have the button run only /trigger and let a repeating command block do the actual work based on the scoreboard.
Q. Can /title have click events?
A. No. Click and hover actions only work in chat from /tellraw. Titles in the middle of the screen cannot be clicked.
Q. How long is times 20 100 20?
A. 20 ticks is one second, so it fades in for 1 second, stays for 5 seconds and fades out for 1 second. times applies to titles shown after it.