Tellraw Command Generator

Send a formatted chat message built from one or more colored text segments

How to use the Tellraw command generator

  1. Choose the edition and version that match your game
  2. Choose the target
  3. Add one or more text segments — each can have its own color and style
  4. Copy the command and run it in Minecraft

Bedrock generates the text as rawtext, while Java generates a JSON text component — the two formats are not interchangeable

Worked examples

The examples below come out of the same generator as the form above, so the commands and explanations always match what the tool produces. Copy one and adjust it from there

1. A two-colour chat message on one line

The point of tellraw is colouring each segment separately — use it to make a player name or a number stand out

/tellraw @a {"text":"","extra":[{"text":"[ประกาศ] ","color":"gold","bold":true},{"text":"อีก 5 นาทีจะเริ่มเกม","color":"white"}]}

What it does Will send the chat message "[ประกาศ] อีก 5 นาทีจะเริ่มเกม" to all players (2 text segment(s) in total).

2. A bold red warning

Send it to one player with @p when only the person who did something needs the warning, not the whole server

/tellraw @p {"text":"","extra":[{"text":"ห้ามเข้าพื้นที่นี้","color":"red","bold":true}]}

What it does Will send the chat message "ห้ามเข้าพื้นที่นี้" to the nearest player (1 text segment(s) in total).

3. Several segments with mixed formatting

Bold, italic, and underline can be mixed on one line — each segment is styled independently

/tellraw @a {"text":"","extra":[{"text":"ผู้ชนะ: ","color":"gray","italic":true},{"text":"ทีมแดง","color":"red","bold":true,"underlined":true}]}

What it does Will send the chat message "ผู้ชนะ: ทีมแดง" to all players (2 text segment(s) in total).

How this command differs by edition and version

This is the first example above, run through every edition and version this tool supports. Versions that produce the same result share a row

Java Edition 1.21.5 and up Java Edition 1.20.5 - 1.21.4 Java Edition 1.13 - 1.20.4 (legacy NBT)
/tellraw @a {"text":"","extra":[{"text":"[ประกาศ] ","color":"gold","bold":true},{"text":"อีก 5 นาทีจะเริ่มเกม","color":"white"}]}
Bedrock Edition (stable)
/tellraw @a {"rawtext":[{"text":"§6§l[ประกาศ] "},{"text":"§fอีก 5 นาทีจะเริ่มเกม"}]}

Before you use these