Report

Help us improve this tool

Pad Lines

Left, right, or center-pad every line to a target width with a fill character, or zero-pad numeric lines.

O M T

Pad or align every line to a fixed width

Fixed-width columns help when aligning log excerpts, building simple tables in plain text, or preparing batch ID fields. Paste multi-line text, set a target character width, and pad on the left, right, or center with any fill character. Integer-only lines can be zero-padded for consistent numeric columns.

Alignment behavior

  • Left keeps text at the start and pads on the right (classic left-aligned column).
  • Right pads on the left so values line up on the right edge.
  • Center splits padding evenly when possible.

For single-string Unicode padding see Left Pad Unicode and Right Align Unicode.

Frequently Asked Questions

What happens if a line is already longer than the target width?

That line is left unchanged so you do not lose data.

How does zero-padding work?

When enabled, lines that contain only an integer (optional leading minus) are padded with zeros on the left to reach the target width, similar to spreadsheet fixed-width IDs.

Can I use a custom pad character?

Yes. The first character of the pad field is used for alignment padding (zero-padding always uses 0).