← All tools
// Text

Text Pad & Justify online

Align and pad text lines left, right, center, or full-justify to a fixed column width — runs in your browser

Chunky Munster mascot
by
CHUNKY
MUNSTER
// Padded Output
Output will appear here...

Text padding and alignment is used in terminal applications, fixed-width reports, code generation, and data serialisation. This tool pads each line of text to a fixed column width using your choice of alignment: left, right, center, or full-justify.

Padding Modes

Frequently Asked Questions

How do I pad numbers to the same width?

Enter numbers one per line, select Left pad, set the pad character to 0, and set the column width to the maximum digit count. For example, to format 42 as 00042, use width 5 and pad char 0.

What is the difference between left-padding and right-aligning?

They are the same thing. Adding padding to the left of a string pushes the content to the right, achieving right-alignment. String.prototype.padStart() in JavaScript implements left-padding.