Send Colored Chat Text (tellraw)
Broadcast a custom colored message in chat
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Sends a fully styled chat message that no one can reply to or mistake for a normal chat line. On Java the message is a text component in SNBT — set color, bold, italic, underline and more (e.g. {text:"...",color:red,bold:true}). Bedrock uses the {"rawtext":[...]} form and does not support per-component color keys, so use section-sign codes inside the text for color there.
/tellraw @a {text:"Server restarting soon",color:red,bold:true}63 characters
- Java: yes
- Bedrock: yes
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T on Java, / on Bedrock).
- Paste the command and edit the text and color.
- Press Enter — the message appears in every targeted player's chat.
- Add more parts by turning the value into a list, e.g. [{text:"A "},{text:"B",color:green}].
Related commands
Make chat text a clickable button that runs a command
/tellraw @a {text:"[Click to teleport to spawn]",color:green,click_event:{action:run_command,command:"/spawn"}}Display big center-screen text to a player
/title @a title {text:"Welcome!",color:gold,bold:true}Show a smaller second line under a screen title
/title @a subtitle {text:"Good luck out there",color:yellow}Display text just above the hotbar
/title @a actionbar {text:"Objective updated",color:aqua}Become nearly invincible
/effect give @p resistance 999999 255 true