
Formatting text with bold, italic, underline, and strikethrough styles makes your Minecraft signs, books, item names, and chat messages stand out. This guide covers the exact formatting codes, ordering rules, and JSON command syntax for both Java and Bedrock Editions.
Minecraft uses the section sign (§) followed by a single letter to apply text styles. You can combine multiple styles together or pair them with color codes.
§l - Bold (makes each character 1 pixel wider because the game draws the text twice, 1 pixel apart)§o - Italic (slants the text to the right)§n - Underline (draws a line beneath the text; Java Edition only)§m - Strikethrough (draws a line through the center of the text; Java Edition only)§k - Obfuscated (rapidly cycles through random characters)§r - Reset (removes all active colors and formatting styles, returning text to normal)On Windows, you can type the § symbol by holding Alt and typing 0167 on the number pad.
When combining colors and text formats in Java Edition, you must always write the color code first and the formatting code second. In Java Edition, applying a color code automatically resets any active formatting styles back to plain text.
Here are standard Java color codes you can pair with formats:
§0 Black (#000000) | §1 Dark Blue (#0000AA) | §2 Dark Green (#00AA00) | §3 Dark Aqua (#00AAAA)§4 Dark Red (#AA0000) | §5 Dark Purple (#AA00AA) | §6 Gold (#FFAA00) | §7 Gray (#AAAAAA)§8 Dark Gray (#555555) | §9 Blue (#5555FF) | §a Green (#55FF55) | §b Aqua (#55FFFF)§c Red (#FF5555) | §d Light Purple (#FF55FF) | §e Yellow (#FFFF55) | §f White (#FFFFFF)Note that text drop shadows automatically take the text color and divide each RGB channel by 4.
Correct Order Examples:
§c§lWarning!§6§l§o§nVictory!§aStatus: §mClosed§r§a OpenIncorrect Order Example:
§l§cWarning! (This displays as plain red text because §c cancels out the §l bold code before it.)In Bedrock Edition, players can directly type the § symbol on signs, inside Book and Quill pages, in chat, and when renaming items in an anvil.
§ (using Alt+0167 on Windows or holding down the & or S key on mobile keyboards).§l for bold or §o for italic.§ code disappears once you type the code letter, showing a live preview.Important Bedrock Limitation: Underline (§n) and Strikethrough (§m) do not exist in Bedrock Edition. Instead, Bedrock assigns those letters to material colors. Specifically, Bedrock includes extra color codes: §g (minecoin_gold), §h (material_quartz), §i (material_iron), §j (material_netherite), §m (material_redstone), §n (material_copper), §p (material_gold), §q (material_emerald), §s (material_diamond), §t (material_lapis), §u (material_amethyst), and §v (material_resin). Typing §m or §n in Bedrock simply turns your text redstone-red or copper-orange.
Java Edition does not allow you to type the § character in chat, on signs, or in anvils. To use bold, italic, underline, and strikethrough in vanilla Java Edition, use JSON text components inside commands like /tellraw or /title.
In JSON text, each style is a boolean property (true or false) paired with a "color" name:
/tellraw @a {"text":"Server Rules","color":"gold","bold":true,"underlined":true}To combine multiple styles in a single sentence, use an array of text objects:
/tellraw @a [{"text":"Quest: ","color":"yellow","bold":true},{"text":"Failed","color":"red","strikethrough":true},{"text":" Completed!","color":"green","italic":true,"strikethrough":false}]Always set a format to false in subsequent array segments if you do not want the parent text object's formatting to carry over.
Whenever you rename an item in an anvil in Java Edition, the game automatically displays the custom name in italics. When creating custom items with commands, you can override this default behavior by explicitly setting "italic":false in the JSON text component.
Compare a standard italic name with a clean, bold, non-italic custom name:
{"text":"Excalibur","color":"aqua","bold":true}{"text":"Excalibur","color":"aqua","bold":true,"italic":false}Adding "italic":false is essential for map makers and server administrators who want custom gear to look like natural game items.
Because Java Edition blocks the § symbol in chat and on signs, multiplayer servers running chat or sign plugins accept the ampersand (&) as a substitute. The plugin automatically converts & into § behind the scenes.
If your server supports chat formatting plugins, use these copyable patterns:
&b&lAnnouncement&d&oWhispers in the wind&c&nDo Not Enter&7&mOut of Stock&e&l&o&n&mUltimate StyleRemember to keep the color code before the formatting codes, or the color will reset your styles.
Bedrock Edition uses §m for material_redstone color and §n for material_copper color. Because those two letters are assigned to colors, strikethrough and underline formatting do not exist in Bedrock.
In Java Edition, every color code resets all previous formatting codes. Always place the color code first and the formatting code second, such as §c§l instead of §l§c.
Java Edition blocks the § character in the chat box, anvils, and signs. You must use JSON text commands (like /tellraw) in vanilla Java, or type & on servers that use formatting plugins.
Items renamed in an anvil are always italic in vanilla Java. To create non-italic item names, generate or modify the item using commands and include "italic":false inside the item name's JSON text.