# 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.

**URL:** https://convertto.tech/t/text-padder
**Category:** Text Tools (https://convertto.tech/c/text-tools)
**Privacy:** Runs entirely in the browser; no upload
**Cost:** Free, no sign-up
**Last updated:** 2026-08-01

## Key facts

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

## How to use

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

## FAQ

### 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.

## Related tools

- [ASCII Table Formatter](https://convertto.tech/t/ascii-table-formatter): Turn CSV or tab-separated text into an aligned plain-text, Markdown or box-drawing table.
- [Add Page Numbers to PDF](https://convertto.tech/t/add-page-numbers-pdf): Number the pages of a PDF with a custom start, position and format.
- [CSS Multi-Column Generator](https://convertto.tech/t/css-columns-generator): Flow text into balanced columns with a rule between them.
- [Date Format Converter](https://convertto.tech/t/date-format-converter): Reformat a list of dates into ISO, US, European, RFC or any custom pattern.
- [GraphQL Formatter](https://convertto.tech/t/graphql-formatter): Format or minify a GraphQL query, mutation or schema, and inspect its depth.
- [XML Formatter](https://convertto.tech/t/xml-formatter): Format messy XML with proper indentation, or minify it back down, with well-formedness checked.
- [Acronym Generator](https://convertto.tech/t/acronym-generator): Turn a phrase into an acronym or initialism, with control over small words and separators.
- [Add Line Numbers](https://convertto.tech/t/add-line-numbers): Prefix every line with a sequential number, with a custom start, separator and zero padding.
