Right pad list items

Right pad list items to a fixed Width using any single Pad char. Defaults are Width `8` and a space. Pad with `-` or `.` for leader-style columns (`Chapter 1........`), or pad with space for left-aligned fixed-width output.

Input
Ready
Output
Live

Trailing-fill padding to a target width

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

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

For leading-fill (numeric right-alignment, zero-padded IDs), use Left pad. Padding is not reversible - the inverse concept is trim in trailing mode, which strips trailing whitespace.

How to use right 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 appended 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 trailing-fill. That is it.

Left-aligned fixed-width columns

Width `10`, Pad char space turns variable-length names into `apple ` / `banana ` / `cherry ` - left-aligned, constant width.

ToC-style dot leader

Width `20`, Pad char `.` produces `Chapter 1...........`. Pair with Add a suffix for a page number after the leader.

Border or rule fill

Pad char `-` or `=` can extend lines to a uniform width for ASCII-style dividers.

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

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

Worked example

Width `10`, Pad char `-`. Every line padded with trailing dashes to 10 characters.

Input
apple
banana
cherry
Output
apple-----
banana----
cherry----

Settings reference

How each option shapes the output using the sample above.

Setting What it does Effect on the sample
Width: `10`, Pad char: `-` Trailing-fill with dashes to 10 chars `apple-----` / `banana----` / `cherry----`
Width: `10`, Pad char: space Left-aligned column `apple ` / `banana ` / `cherry ` (trailing spaces preserved)
Width: `4`, Pad char: space Line already at or above 4 → unchanged `apple` / `banana` / `cherry` (all unchanged)
Pad char: `abc` Only first character used - `a` `apple----` becomes `appleaaaaa` with Width 10, char `abc`
Blank-line behaviour (automatic) Empty line becomes Width × Pad char Empty line → `----------` (10 dashes with char `-`)

FAQ

What happens if a line is already longer than Width?
It is emitted unchanged. Right 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. Pad char is sliced to a single character before `padEnd` runs.
How is this different from Left pad?
Left pad fills on the left (useful for right-aligning numbers, zero-padding IDs). This tool fills on the right (useful for left-aligned columns or leader-style alignment).
Is it reversible?
Not exactly - padding becomes part of the line content. If you right-padded with spaces, trim in Trailing or Both mode strips them. For non-space padding, use Replace.
Does blank Pad char error?
No - it falls back to a single space. That matches the default behaviour.