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.
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.
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.