Left pad list items

Left pad list items to a fixed Width using any single Pad char. Defaults are Width `8` and a space. Pad with `0` to zero-pad numeric IDs; pad with `.` for dot-leader alignment; pad with space for right-aligned numeric columns.

Input
Ready
Output
Live

One-character padding to a target width

The op is JavaScript's `String.prototype.padStart(width, char)`. Every line shorter than Width is extended on the left with the Pad char until it hits Width. Lines already at or above Width are emitted unchanged - left padding never truncates.

Only the first character of the Pad char field is used. If you type `abc`, padding uses `a`. If you leave the field blank, padding falls back to a single space.

Right-pads (trailing fill) use Right pad. For leading whitespace without a target width (all lines get the same indent), use Indent.

How to use left pad list items

  1. 1Paste your list into the input panel
  2. 2Set Width - the target character count (default `8`)
  3. 3Set Pad char - a single character used to fill (default space)
  4. 4Lines shorter than Width get the Pad char prepended until they reach Width
  5. 5Lines already at or above Width are emitted unchanged

Keyboard shortcuts

Drive ListShift without touching the mouse.

Shortcut Action
Ctrl ZUndo last input change
Ctrl Shift ZRedo
Ctrl Shift EnterToggle fullscreen focus on the editor
EscExit fullscreen
Ctrl KOpen the command palette to jump to any tool
Ctrl SSave current pipeline draft Plus
Ctrl PRun a saved pipeline Plus

What this tool actually does

Fixed-width left-fill. That is it.

Zero-pad for IDs and timestamps

Width `6`, Pad char `0` turns `1` / `23` / `456` into `000001` / `000023` / `000456`. Useful for ticket IDs, zero-padded dates, or filename-safe sort keys.

Space-pad for right-aligned numeric columns

Width `5`, Pad char space aligns numeric values by rightmost digit - great for monospace readouts or terminal output.

Dot-leader for ToC-style alignment

Width `20`, Pad char `.` produces `...........Chapter 1`. Pair with Add a suffix for `Chapter 1...page 5` layouts.

Only the first character of Pad char is used

If you paste `ab` into Pad char, padding uses `a`. Blank Pad char falls back to a space.

Lines at or above Width pass through

Left padding never truncates. A line longer than Width is emitted as-is.

Worked example

Width `5`, Pad char space. Every line padded to 5 characters from the left.

Input
1
23
456
7890
Output
    1
   23
  456
 7890

Settings reference

How each option shapes the output using the sample above.

Setting What it does Effect on the sample
Width: `5`, Pad char: space (default-ish) Right-aligns to 5 chars ` 1` / ` 23` / ` 456` / ` 7890`
Width: `6`, Pad char: `0` Zero-pads to 6 digits `000001` / `000023` / `000456` / `007890`
Width: `3`, Pad char: space Line already at or above 3 → unchanged ` 1` / ` 23` / `456` / `7890` (last two unchanged)
Pad char: `abc` Only first character used - `a` `aaaa1` / `aaa23` / … (with Width 5)
Blank-line behaviour (automatic) Empty line becomes Width × Pad char Empty line → ` ` (5 spaces, with Width 5)

FAQ

What happens if a line is already longer than Width?
It is emitted unchanged. Left padding never truncates - to shorten long lines, use trim or Replace.
Can I use multi-character pad strings like `ab`?
No - only the first character is used. The underlying `String.padStart` in this build slices Pad char to one character before applying.
Does this work for right-side padding?
No, this tool only pads on the left. Use Right pad for trailing fill.
How is this different from Indent?
Indent prepends a fixed number of spaces to every line regardless of length. Left pad fills to a target total width, so shorter lines get more padding than longer ones.
Does blank Pad char error?
No - it falls back to a single space. That matches the default behaviour so most users never notice.