Center text instantly by padding every line with spaces, dots, dashes, or any custom character until it sits in the middle of your chosen line width. Great for headers, titles, ASCII art, and formatted plain-text documents. Multi-line input is supported and each line is centered independently in your browser.
The Center Text Tool lets you center text online by adding balanced padding to both sides of every line until it sits exactly in the middle of a line width you choose. You can pad with plain spaces for invisible centering, or use a visible character like dots, dashes, or asterisks to create decorative headers and separators for plain-text documents.
For each line, the tool calculates how many padding characters are needed to reach the target width, then splits that padding as evenly as possible between the left and right sides. If the total padding is odd, the extra character is added to the right side so the text remains visually balanced.
Example (line width = 20, padding = space):
Input: Hello
Output: Hello
Example (line width = 20, padding = "-"):
Input: TITLE
Output: -------TITLE-------
Line width: The total character width each line should be centered within, from 10 to 300 characters.
Padding character: The character used to fill the space around your text. Use a plain space for invisible centering, or a symbol like "*", "-", "=", or "." for decorative headers, section dividers, and ASCII-style banners.