Pad Text Left or Right Online

Pad every line of your text to a fixed width with any character.

Text Padder Online

Instantly pad each line of your text on the left or right until it reaches your target width.

Load an example

1. Pad side & character
Choose whether the fill characters go before or after each line.
# by default - one character only
2. Width & options
lines already longer are left unchanged
Keeps blank lines blank instead of filling them with the pad character.
Ready to pad your text.

Overview:

Text padding means growing every line of a block of text to the same number of characters by adding a repeated fill character to it. When the fill is added at the start of the line it is called left padding (useful for zero-padding numbers and right-aligning values), and when it is added at the end it is called right padding (useful for aligning the beginnings of columns and creating dotted leaders).

Our "Text Padder" tool does this automatically: paste your text, pick the pad side, the pad character and the total line width, and press "Apply". Each line is padded until it reaches your target width, while lines that are already at or beyond it are left untouched so nothing gets cut off. This tool was used to prepare every before/after example you see below, and it is handy whenever you need neatly aligned text in monospace contexts such as code comments, plain-text invoices, tables of contents, log files or CSV-style listings that a proportional font would not align on its own.


What this Tool Does?

The Text Padder processes your text line by line and, for every line shorter than your chosen width, inserts the pad character repeatedly, before the line's text for left padding or after it for right padding, until the line reaches exactly that width. You control three things: which side is padded, which single character is used as the fill, and the total width each line should reach.

You can also paste text directly, upload a .txt or .rtf file, skip blank lines so gaps between paragraphs stay untouched, and copy, download, clear, undo or redo the result using the buttons below the textarea.


Features:

Right Padding (Pad Side: Right): Adds the fill character to the end of every line. This aligns the beginnings of the lines, which is ideal for laying out a plain-text menu or report. For example, with a pad character of ".", a total line width of 24, and this input:

Espresso
Cappuccino
Mocha
Macchiato

the output becomes:

Espresso................
Cappuccino..............
Mocha...................
Macchiato...............

Left Padding (Pad Side: Left): Adds the fill character to the start of every line. This right-aligns the text, which is perfect for zero-padding numbers or order codes so they sort and compare correctly. For example, with a pad character of "0", a total line width of 6, and this input:

142
8
30057
714

the output becomes:

000142
000008
030057
000714

Any Single Pad Character: The fill is not limited to spaces. Use a space to align columns of names or product data, a dot for leader lines, a zero for numeric codes, or any other single character such as "-" or "*" for dividers and tables.

Total Line Width (1–500): Every padded line ends up with exactly this many characters. If a line is already the same length or longer, it is left unchanged; the tool never truncates or shortens your text.

Skip Empty Lines: With this switch enabled (the default), blank lines between paragraphs are left blank instead of being filled with the pad character, so the spacing of your document is preserved. Disable it if you want every line, including empty ones, padded to the full width.

Upload a File: Instead of pasting, upload a .txt or .rtf file and its contents are loaded into the textarea, ready to be padded. Files larger than 50,000 characters are truncated to that limit.

Live Mode: With the "Live mode" switch enabled (the default), the Output textarea updates automatically as you type, paste, upload a file or change any setting, so you see the padded result without pressing anything. Turn it off if you prefer to review your text first and pad only when you press "Apply".

Copy, Download, Clear, Undo and Redo: Copy the result straight to your clipboard, download it as padded-text.txt, clear the textarea to start over, and step backward or forward through your recent changes with the Undo and Redo buttons.


How to Use this Tool?

Paste or Upload Your Text: Type or paste your lines into the "Input Text" textarea, or upload a .txt or .rtf file. The textarea starts empty; click the "Load an example" link above it if you want sample text to experiment with.

Choose the Pad Side: Select "Right" to add the fill character at the end of each line, or "Left" to add it at the start.

Set the Pad Character: Enter the single character to fill with: a space, dot, zero or anything else.

Set the Total Line Width: Enter the number of characters each line should reach (between 1 and 500). If you want blank lines to stay blank, keep the "Skip Empty Lines" switch enabled.

Apply: With Live mode switched on above the text areas (the default), the padded result appears in the Output Text field automatically as you type or change a setting. You can also press the "Apply" button at any time to pad every line to your chosen width; your Input Text stays intact either way.

Copy or Download: Use the "Copy" link to copy the padded text to the clipboard, or the "Download" link to save it as a file.

Clear The Text Area: Press the "Clear" button to empty both the Input and Output textareas and start over.

Undo and Redo: Use the "Undo" and "Redo" buttons to move backward or forward through your recent changes. Undo reverts the text to the previous state, and Redo restores a change you just undid.

Ready to align your text like a pro? Our online Text Padder is your best solution!


Examples

Every example below loads its own text and settings - click "Try it" and the tool does the rest.

1. Add dotted leaders to a menu

Right-pad each item with dots (pad character ".") until every line reaches a width of 24, so a plain-text menu or price list lines up neatly.

Input
Espresso
Cappuccino
Mocha
Macchiato
Output
Espresso................
Cappuccino..............
Mocha...................
Macchiato...............

2. Zero-pad order numbers

Left-pad short numeric codes with zeros (pad character "0") to a width of 6 so they all share one length and sort and compare correctly.

Input
142
8
30057
714
Output
000142
000008
030057
000714

3. Build dashed section labels

Left-pad a heading with dashes (pad character "-") to a width of 30 to create divider rows of a fixed width for reports, logs or README files.

Input
SHOPPING LIST
Fruits
Vegetables
Output
-----------------SHOPPING LIST
------------------------Fruits
--------------------Vegetables

4. Pad a text while keeping blank lines

With "Skip empty lines" enabled, right-padding with dots to a width of 16 fills only the text lines and the blank separators between them stay blank.

Input
Preface

Chapter 1

Chapter 2
Output
Preface.........

Chapter 1.......

Chapter 2.......

FAQs

FAQ 1: What is the difference between left padding and right padding?
Answer: Left padding inserts the fill character before each line's text, which right-aligns the content – ideal for zero-padding numbers like 000714. Right padding inserts it after the text, which left-aligns the content and keeps the line starts aligned – ideal for dotted leaders like Mocha...... in menus or tables of contents.

FAQ 2: What happens to lines that are already longer than the target width?
Answer: They are left completely unchanged. The tool only adds characters; it never truncates, wraps or shortens any line, so you cannot accidentally lose text by choosing a small width.

FAQ 3: Why does the alignment of my padded text look uneven in some fonts?
Answer: Padding counts characters, not pixel widths, so the result only looks perfectly aligned in a monospace font (like the one used in code editors) or when pasted into plain-text environments. In proportional fonts, a "W" is wider than an "i", so equal character counts can look unequal.

FAQ 4: Can I pad lines on both sides at the same time?
Answer: Not in a single pass. The tool pads one chosen side per Apply. To center text between fills, apply right padding first, then run the result through again with left padding and a larger width. For most alignment tasks, however, one side is all you need.

FAQ 5: Does the pad character have to be a single character?
Answer: Yes, the input accepts exactly one character per Apply, and that character is repeated as many times as needed to reach the target width. This keeps the behavior predictable: a width of 10 with a dot fill always produces lines of exactly 10 characters.

FAQ 6: Am I required to sign up or pay in order to use this tool?
Answer: No, our Text Padder tool is completely free and requires no sign-up.

FAQ 7: Do you save the text I insert in the tool?
Answer: No, we do not save your text. We respect your privacy, and your data remains confidential. The textarea accepts up to 50,000 characters, and uploaded files larger than that are truncated.

FAQ 8: What is Live mode, and what do the "Try it" example buttons do?
Answer: Live mode is on by default: the Output updates automatically as you type or change a setting, without pressing "Apply". The "Try it" buttons in the Examples section load a ready-made scenario, with its input text, pad side, pad character and line width, in one click; with Live mode on the result appears immediately, otherwise press "Apply".


Tools Worth Trying

TextToolz

The Ultimate Text Tools

TextToolz works seamlessly to let you convert and design your text. It is fast, reliable and secure. Trusted by thousands of users.