Color Your World: How to Change Text Color in Minecraft

Jeffrey Aug 01, 2026

Ever wished to add a pop of color to your Minecraft texts? You're not alone. Minecraft, with its blocky charm, may not be known for its vibrant typography, but that doesn't mean you can't add your own flair. Here's a step-by-step guide on how to color text in Minecraft, using in-game commands and datapacks for a fun, personalized experience.

an old computer game with many different colors and numbers on the screen, as well as text
an old computer game with many different colors and numbers on the screen, as well as text

Minecraft's text coloring feature is a bit hidden, but it's surprisingly easy once you know how. We'll explore two methods: using in-game chat commands and creating a datapack for persistent, dynamic text coloring.

How to get Colored Text in Minecraft
How to get Colored Text in Minecraft

Using Chat Commands for Text Coloring

Chat commands offer a quick and simple way to color text in Minecraft. You can use them to create colorful signs, name tags, and book titles. Here's how to do it:

Minecraft
Minecraft

Minecraft uses the & character followed by a color code to modify text color. The color codes range from 0 to 15, each corresponding to a different color. Here are the codes:

  • 0 - Black
  • 1 - Dark Blue
  • 2 - Dark Green
  • 3 - Dark Aqua
  • 4 - Dark Red
  • 5 - Dark Purple
  • 6 - Gold
  • 7 - Gray
  • 8 - Dark Gray
  • 9 - Blue
  • 10 - Green
  • 11 - Aqua
  • 12 - Red
  • 13 - Light Purple
  • 14 - Yellow
  • 15 - White
the color code for text to be changed
the color code for text to be changed

Colored Signs

To create a colored sign, type the following command in the chat: /sign <color> <text>. Replace <color> with the color code and <text> with the text you want to display. For example:

/sign 12 Hello! will create a red "Hello!" sign.

Helpful Minecraft Color Codes and Format Codes
Helpful Minecraft Color Codes and Format Codes

Colored Name Tags and Books

The process for creating colored name tags and book titles is similar. For name tags, use the command: /nametag <color> <player>, where <player> is the player's display name or UUID. For books, use: /book <color> <title>, replacing <title> with the desired book title.

Creating a Datapack for Persistent Text Coloring

an image of a computer game with text on the screen and characters behind it, all in different colors
an image of a computer game with text on the screen and characters behind it, all in different colors

For a more persistent, dynamic text coloring experience, you can create a datapack. This method allows you to color text in various in-game elements, such as chat messages, item descriptions, and advancements.

Creating a datapack involves using JSON and NBT data, which can be a bit complex. However, it's well worth the effort for the level of customization it offers. Here's an overview of the process:

the color chart for different types of colors and their corresponding names in each column,
the color chart for different types of colors and their corresponding names in each column,
an old computer screen with some type of text on it
an old computer screen with some type of text on it
Minecraft colour code
Minecraft colour code
Pigmentos do Minecraft
Pigmentos do Minecraft
How to make a Colored Sign in Minecraft Bedrock Edition
How to make a Colored Sign in Minecraft Bedrock Edition
🎨 Minecraft Color Codes Guide – Every Chat Color & Formatting Code in One Place
🎨 Minecraft Color Codes Guide – Every Chat Color & Formatting Code in One Place
Tip: How to Make Colored Signs in Minecraft
Tip: How to Make Colored Signs in Minecraft
Minecraft book maker
Minecraft book maker
Minecraft Color and Format Codes
Minecraft Color and Format Codes

step 1: Setting Up Your Datapack Folder

First, create a new folder for your datapack in your Minecraft saves directory. Inside this folder, create another folder named 'data'. Inside 'data', create a folder for your mod's namespace (e.g., 'minecraft'). Finally, create a folder for the specific resource (e.g., 'signs'). Your folder structure should look like this:

saves/<usteam>/datapacks/mydatapack/data/minecraft/signs/

Step 2: Creating the Sign Text Component

In the 'signs' folder, create a new text file named 'sign_text.json'. Inside this file, define the text component with color using the following JSON structure:

{"text":"<color> <text>","color":"<color>"}

Replace <color> with the desired color code and <text> with the text you want to display. Save the file and close it.

Finaly, reload your datapack using the /datapack reload command in-game. Your colored signs should now appear, and you can adjust the colors as needed.

A World of Color Awaits

From quick chat commands to complex datapacks, Minecraft's text coloring features offer a wealth of opportunities to personalize your gaming experience. Experiment with different colors and combinations to create a unique, vivid Minecraft world that's truly your own.

Happy crafting, and remember, the possibilities are almost as endless as the Minecraft landscape itself!