Minecraft Tellraw Generator

Write a chat message in parts, give each part its own colour and style, and add click actions (open a link, run a command) or hover text. The generator writes the /tellraw command for your version.

Free · SNBT for Java 1.21.5 – 26.3, JSON for older, Bedrock rawtext

Message

Split your message into parts to give each part its own colour, style, click action or hover text.

Settings

Chat preview
Your /tellraw command

How to use the tellraw generator

  1. Type the first part of your message and pick its colour and style.
  2. Click Add another part whenever the colour or style should change, or when only part of the message should be clickable.
  3. Open Click and hover actions on a part to make it open a link, run a command, suggest a command or copy text, and to add hover text.
  4. Choose your version, copy the command and run it in chat or a command block.

Tellraw syntax changed in Java 1.21.5

From Java 1.21.5 onwards, including 26.3, text in commands is written in SNBT rather than JSON, and the event fields were renamed. Old commands with clickEvent or hoverEvent now fail with an error.

Java 1.21.5 and newerJava 1.13 – 1.21.4
Plain text{text:"Hi",color:"gold"}{"text":"Hi","color":"gold"}
Open a linkclick_event:{action:"open_url",url:"https://…"}"clickEvent":{"action":"open_url","value":"https://…"}
Run a commandclick_event:{action:"run_command",command:"/spawn"}"clickEvent":{"action":"run_command","value":"/spawn"}
Hover texthover_event:{action:"show_text",value:"Hi"}"hoverEvent":{"action":"show_text","contents":"Hi"}

The generator writes several parts as a list that starts with an empty part, like [{text:""},{…},{…}]. That way the style of the first part doesn't spread to the rest, which is a common surprise when writing tellraw by hand.

Click actions

  • Open a website: shows a "Do you want to open this link?" screen first. Only http and https links work.
  • Run a command: runs as the player who clicks, so they need permission for that command. Great for /trigger menus that everyone can use.
  • Put a command in chat: fills the chat box so the player can edit it before sending.
  • Copy text: copies text to the player's clipboard, such as a Discord invite or server address.

Tellraw on Bedrock

Bedrock uses /tellraw @a {"rawtext":[{"text":"…"}]} with § colour codes inside the text. Click and hover actions don't exist on Bedrock, so the generator leaves them out. For the big text in the middle of the screen, use the title generator; for colour codes on their own, the colour text generator.

Frequently asked questions

What does /tellraw do?
/tellraw sends a formatted message to players' chat. Unlike /say it doesn't add your name, and the text can have colours, hover text and click actions.
Why does my tellraw command show an error in 26.x?
Since Java 1.21.5, text components in commands use SNBT and the click and hover fields were renamed (click_event, hover_event). Old JSON commands with clickEvent no longer work. Choose your version here to get the right syntax.
Can I make a clickable link in chat?
Yes. Add a click action of Open a website with a full https:// address. Players see a confirmation screen before the link opens.
Does tellraw work on Bedrock?
Yes, but Bedrock uses a rawtext format with § codes and has no click or hover events. Pick Bedrock and the generator writes that format.