Skip to content
Convertto

Text Padding Tool

Pad every line to a fixed width with any character, on the left, right or both sides.

Padding aligns lines to a fixed width by adding characters until each reaches the target length. Pad on the right to left-align, on the left to right-align, or on both sides to centre — useful for fixed-width data files, receipt printers and aligned console output.

Runs in your browser
Privacy
Runs entirely in your browser — nothing is uploaded
Cost
Free, unlimited, no sign-up

Frequently asked questions

What is a fixed-width file?

A format where each field occupies a set number of characters rather than being delimited — still common in banking, payroll and older mainframe interfaces. Padding is how you produce one, since every field must fill its column exactly.

Why does padding sometimes look wrong?

Because the count is characters, not display width. A CJK character occupies two terminal cells but counts as one, so a column of mixed scripts pads to equal length yet renders unevenly.

How to use the text padding tool

  1. 1Enter or paste your lines.
  2. 2Set the pad to width.
  3. 3Enter or paste your pad with.
  4. 4Choose the pad on the.
  5. 5Turn "Truncate lines longer than the width" on or off as needed.
  6. 6The result appears immediately — copy or download it.

Embed this tool

Put the working text padding tool on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.

Share this tool

Last updated

More text tools