DevelopmentThis website is still under active development!

Minecraft color codes and formatting codes

All color and format codes in one place. Copy them as § or & codes, MiniMessage, JSON or hex, or paste your text to convert it.

Live editor

Input format

Preview

Edition

    Copy the code

    Section sign (§)
    For server.properties, resource packs and data packs. Hex colours become the closest standard colour.
    Ampersand (&)
    For plugin configs that read & codes.
    & with hex (&#RRGGBB)
    For plugins that read hex as &#RRGGBB, like EssentialsX.
    §x hex (Spigot and BungeeCord)
    Hex as §x§R§R§G§G§B§B. For plugins and proxies built on Spigot or BungeeCord.
    MiniMessage
    For Paper, Velocity and plugins that read MiniMessage. Keeps hex colours and gradients.
    JSON text component
    For /tellraw, /title and data packs before 1.21.5. Newer versions also read it.
    server.properties MOTD
    One line for server.properties: § written as \u00A7 and line breaks as \n.
    Bedrock
    § codes for Bedrock. Hex becomes the closest Bedrock colour; underline and strikethrough are dropped.

    Java color codes

    The 16 colours work everywhere in Java Edition. The shadow is the colour the game draws behind the text.

    ColourCode&MiniMessageJSONHexShadow
    Black #000000
    Dark Blue #00002A
    Dark Green #002A00
    Dark Aqua #002A2A
    Dark Red #2A0000
    Dark Purple #2A002A
    Gold #3F2A00
    Gray #2A2A2A
    Dark Gray #151515
    Blue #15153F
    Green #153F15
    Aqua #153F3F
    Red #3F1515
    Light Purple #3F153F
    Yellow #3F3F15
    White #3F3F3F

    Format codes

    In Java, put the colour code first: a colour code turns bold, italic and the other formats off again.

    FormatCode&MiniMessageJSONJavaBedrock
    Obfuscated Yes Yes
    Bold Yes Yes
    Strikethrough Yes No, §m is a colour there
    Underline Yes No, §n is a colour there
    Italic Yes Yes
    Reset Not needed Yes Yes

    Bedrock-only colour codes

    Bedrock Edition has extra colours. Java does not know these codes, and on Bedrock §m and §n are colours, not strikethrough and underline.

    ColourCodeHexSince
    Minecoin Gold Unknown
    Material Quartz 1.19.80
    Material Iron 1.19.80
    Material Netherite 1.19.80
    Material Redstone 1.19.80
    Material Copper 1.19.80
    Material Gold 1.19.80
    Material Emerald 1.19.80
    Material Diamond 1.19.80
    Material Lapis 1.19.80
    Material Amethyst 1.19.80
    Material Resin 1.21.50
    Party Blue 26.30

    Bedrock draws some base colours a little differently: gray, dark gray, blue and the light colours. The preview above shows the Bedrock shades when you pick Bedrock.

    Where the codes work

    server.properties

    Only § codes, written as \u00A7. No & codes and no hex. Use the server.properties output above.

    Chat

    Java players cannot type § in chat: the game kicks them. Chat plugins turn & codes or MiniMessage into colours. On Bedrock, § works in chat.

    Signs, books and item names

    In Java you cannot type codes there. Use a command with a JSON text component, made with our tellraw generator. On Bedrock, § works on signs, in books and in the anvil.

    Plugins and proxies

    Most read & codes. Paper, Velocity and many new plugins read MiniMessage, with hex colours and gradients.

    Commands

    /tellraw, /title and item names take a JSON text component. Since Java 1.21.5 that is written as SNBT.

    Resource and data packs

    The pack description in pack.mcmeta and language files read § codes.

    More tools