Text Align & Pad
Pad each line of a block of text to the same width, aligned left, right, or center, with any pad character. Optionally truncate lines that exceed the width. Set the width to a number or auto (the longest line), so a ragged block becomes flush. Great for code-comment blocks, ASCII layouts, and centered banners. Runs locally in your browser.
Input
Options
Output
Each line is padded to the chosen width with the pad character. Left appends padding on the right, Right prepends it on the left, and Center splits it with the extra character on the right when the difference is odd. With auto width, the width is the longest line after trimming, so every line ends up the same length. When truncate is on, lines longer than the width are cut to exactly the width; the marker (if it fits) is placed at the cut side. Width counts UTF-16 code units, which is exact for ASCII; complex emoji or combining marks may not pad perfectly. Pairs with the Word Wrap, Tab↔Spaces, and Line Sorter tools. Everything runs locally — nothing leaves your browser.