kiphost

Minecraft /tellraw command generator

/tellraw sends a formatted message to chat. The text is written as JSON, which is fiddly to type by hand. Add pieces of text below, style each one, and copy the finished command.

Loading the Tellraw generator…

Using the command

Paste the command into the server console, a command block or chat if you're an operator. From the console, leave off the leading slash.

TargetWho sees it
@aEveryone online
@pThe nearest player (from a command block)
@sWhoever runs the command
SteveOne player by name

How the JSON is put together

The message is a list. The first item is an empty string, so styles from one piece don't leak into the next. Every piece after that is an object with a text and its styles.

/tellraw @a ["",{"text":"Welcome ","color":"gold"},{"text":"back!","bold":true}]

Since 1.21.5, commands read text as SNBT instead of strict JSON. Plain JSON like the above is still valid SNBT, so the same command works on old and new versions.

Common mistakes

  • Smart quotes. Copying from a word processor turns " into curly quotes and the command fails. Copy from here instead.
  • Missing the empty first item, which makes the first piece's colour apply to everything.
  • Running it without permission. /tellraw needs operator level 2.

More tools

Need a server to try this on?

Kiphost servers are free. Log in with Discord and you'll have one in about a minute.

Get a free server