Text Width & Center Calculator

Because Minecraft does not use a monospace font, centering text by counting letters never aligns properly. This tool measures your text using exact in-game pixel widths and adds the right number of spaces to center it.

Loading the tool…

How to Use the Text Center Calculator

  1. Enter your text: Type or paste the message you want to measure or center into the input box. You can enter multiple lines.
  2. Pick your target: Select where the text will go in-game (Chat, MOTD, Book page, Sign line, or set a Custom pixel width).
  3. Check the pixel measurement: The tool calculates the exact pixel width of each line using real Minecraft Java Edition font glyphs (and Unifont for fallback characters).
  4. Copy the padded output: Copy the finished text, which is automatically padded on the left with the exact number of spaces needed to center it.

Centering Targets and Where to Paste

Different text areas in Minecraft have different maximum pixel widths. Pick the matching target before copying your padded text:

How Minecraft Pixel Widths Work & Tips

Counting characters fails in Minecraft because letters have different widths. Every character width includes a 1-pixel gap on the right:

Common Mistakes to Avoid

Questions

Why can't I just count characters to center my Minecraft MOTD?

Minecraft uses a variable-width font where most letters are 6 pixels wide, a space is 4 pixels, and characters like i and ! are only 2 pixels. Because widths vary, you must measure the total pixels rather than the character count.

Why did my centered text shift to the right after I made it bold?

In Minecraft, bold formatting adds 1 extra pixel of width to every character. A 10-letter bold word is 10 pixels wider than normal text, so it requires fewer leading spaces to stay centered.

What are the exact pixel widths for Minecraft chat, MOTDs, books, and signs?

Default chat is 320 pixels wide, a server MOTD is about 270 pixels, a book page is 114 pixels, and a sign line is 90 pixels wide.

Does this centering calculator work for Minecraft Bedrock Edition?

This tool measures exact glyph widths from the Minecraft Java Edition font files (including Unifont fallback characters). Because Bedrock Edition uses a different font, the pixel widths and space padding will not match identically.

More text tools

See all →