How to Use the Left Pad Text Online with Custom Fill
- 1Paste the lines to pad, with one value per line when processing a list.
- 2Set Target Length to a number from 1 to 200.
- 3Enter a single padding character, such as 0, or keep the default space.
- 4Check the result in a monospaced editor or in the field that expects the padded value.
Input & Output Examples
Set Target Length to 4 and Padding Character to 0 to align the numbers as four-position codes.
Input Sample
7
42Expected Output
0007
0042Use length 4 and a period. The existing leading space counts toward the first line, and the longer line stays intact.
Input Sample
A
longerExpected Output
.. A
longerPractical Developer Workflows
- Add leading zeroes to short record identifiers in a fixed-width fixture.
- Bring the right edge of several plain-text numbers to the same position.
- Add visible fill before a label to check how many positions a text import reserves.
Zero Server Uploads & Complete Privacy
Runs 100% in your browser; no data is uploaded to any server.
Notice a bug, calculation error, or outdated info?
Let us know directly so our engineering team can fix it.
Frequently Asked Questions
A line at or above the target length passes through unchanged. Pad a mixed list if you only need a minimum length. Review the longer entries separately when the receiving format has a firm maximum.