Align & Pad Text
Local ProcessingCentre, right-align or justify text to a fixed width, pad it, or wrap long lines.
How It Works & Processing Standards
Centre, right-align or justify text to a fixed width, pad it, or wrap long lines.
Tool processing runs in your browser. If you create a calculator or conversion share link, its values are included in the URL. See the privacy policy for account, analytics and advertising data.
Current Limits
- Maximum input length: 2,000,000 characters
Aligns text for fixed-width settings like plain-text editors and terminals. Also pads numbers with leading zeros.
What You Can Do
- Center and right align
- Within a set width, with a choice of fill character.
- Justify
- Widens spaces between words so both ends line up.
- Pad left or right
- Fills to the width with a character, as in "7" → "007".
- Word wrap
- Breaks long text at word boundaries within the width.
How to Use Align & Pad Text
- 1Choose a taskAn alignment or padding.
- 2Width and fillCharacters per line and the fill character.
- 3CopyCopy the aligned text.
Examples
Center (width 10, "*")
Input: 제목
Result: ****제목****
Zero-pad numbers (width 3)
Input: 7 / 42
Result: 007 / 042
Wrap at 15
Input: The quick brown fox jumps over the lazy dog
Result: The quick brown / fox jumps over / the lazy dog
Common Use Cases
- Zero-padding file names or codes to a fixed width
- Centering headings in text reports or READMEs
- Wrapping email text or comments to a line length
Frequently Asked Questions (FAQ)
Aren’t Korean characters double width?
This tool counts characters. In monospaced fonts Korean takes two columns, so lines mixing Korean and English may not line up.
Leading zeros vanish in Excel.
Excel reads them as numbers. Set the cells to Text before pasting.
