Pad Text with Characters

Pad lines to fixed width for tables and fixed-width formats.

Pad text to fixed width instantly. Free pad tool with left/right/center and custom fill char.

Calculator Inputs

About Pad Text

Pad lines to fixed width for tables and fixed-width formats.

Lines shorter than width get padded; longer are truncated. Center splits padding evenly.

Where it is used

Formatting CLI tables, aligning log output, preparing fixed-width data.

How to use the Pad Text

  1. Text (one line per row) — enter the value (e.g. apple banana).
  2. Target Width (chars) — enter the value (e.g. 20).
  3. Align — enter the value.
  4. Fill Character — enter the value (e.g. ).
  5. Calculate — press the Calculate button to see the result instantly above.

Formula

Per line pad to width with fill char per alignment.

Examples

Example

inputText:hi
width:10
align:right
fill:
Result: hi

Frequently Asked Questions

Tabs counted?
Each char counts as one column; tabs count as one, not expanded.