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?
Why does padding sometimes look wrong?
How to use the text padding tool
- 1Enter or paste your lines.
- 2Set the pad to width.
- 3Enter or paste your pad with.
- 4Choose the pad on the.
- 5Turn "Truncate lines longer than the width" on or off as needed.
- 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
Related tools
ASCII Table FormatterTurn CSV or tab-separated text into an aligned plain-text, Markdown or box-drawing table.Add Page Numbers to PDFNumber the pages of a PDF with a custom start, position and format.CSS Multi-Column GeneratorFlow text into balanced columns with a rule between them.Date Format ConverterReformat a list of dates into ISO, US, European, RFC or any custom pattern.GraphQL FormatterFormat or minify a GraphQL query, mutation or schema, and inspect its depth.XML FormatterFormat messy XML with proper indentation, or minify it back down, with well-formedness checked.
Last updated
More text tools