← Back to Home

Text Alignment

Align text to left, center, or right with custom width

Frequently Asked Questions

What text alignment options are available?

You can align text to the left, center, or right within a specified width. Justification distributes extra spaces evenly between words to fill the entire line width.

How does the padding character work?

The padding character fills empty space when aligning text. For left alignment, padding is added to the right. For right alignment, padding is added to the left. For center alignment, padding is distributed on both sides.

What is text justification?

Justification adjusts spacing between words so that each line extends to the full specified width. Extra spaces are distributed as evenly as possible between words to create straight margins on both sides.

When is text alignment useful?

Text alignment is useful for creating formatted reports, code comments, ASCII art, terminal output, data tables, and any situation where consistent text positioning is required for visual appeal.