A Microsoft Word text box is a floating container you add from the Insert tab, resize like a shape, and fill with a paragraph of independent text that wraps inside its own borders instead of the page margins. Once the box is on the page, the text inside it behaves like ordinary body text — Word wraps it at the box's edges, applies your paragraph formatting, and lets you change font, size, and color through the normal Home and Drawing Tools tabs. The container itself is a shape, so you can move it anywhere, layer it above or below other objects, and control how surrounding text flows around it through the Layout Options button.
Many practical uses for text boxes, however, need the text inside them to be an exact character count: a fixed-width header banner, an ASCII-art border, a centered badge line, an aligned label, or a monospaced-style code listing where columns must line up. Word has no built-in command that pads text to a specific character count, so you need an outside utility to produce the characters, then paste the result back into the box. That utility is Text Padder, which adds a repeating pattern of your choice to the left side, the right side, or split evenly on both sides of your source string until the whole string reaches a target length counted in Unicode code points, then lets you preview and download the padded result as a UTF-8 TXT file before you paste it into Word.

Add a Text Box in Microsoft Word Step by Step
Word ships with a built-in text box command that covers every desktop and web version of the application, so you can produce the floating container itself in a few clicks without installing anything extra.
- Place the cursor where you want the text box to appear on the page.
- Open the Insert tab on the ribbon and click Text Box in the Text group.
- Pick one of the pre-formatted text boxes from the gallery, choose More Text Boxes for additional built-in styles, or select Draw Text Box to draw a custom rectangle.
- Click and drag on the page to define the box's size and position.
- Click inside the new box and type or paste your content.
- Resize by selecting the box and dragging any corner or edge handle until the height and width match what you need.
- Move the box by clicking its border and dragging it to a new position anywhere on the page.
- Format the box using the Drawing Tools Format tab, where Shape Fill sets the background color, Shape Outline sets the border, and other shape controls change rotation and effects.
- Control how surrounding body text wraps around the box by selecting the box, clicking Layout Options, and choosing a wrapping style such as Square, Tight, Top and Bottom, or Behind Text.
Once the box exists, the content inside it is just text, which is where padding comes in.
Prepare Exact-Length Padded Text With Text Padder
When you want the text inside a Word text box to read like a banner, a centered title, a code-style listing, or a row in a printed table of fixed widths, the simplest approach is to pad the text before you paste it in. Padded text means filling the empty space on either side of your real content with a repeating pattern — dashes, equals signs, periods, asterisks, brackets, or even emoji — until the whole line hits an exact character count.
Word itself can simulate this with justified alignment or tab stops, but those tools depend on the font's visual width and on the box's pixel size, so the result drifts the moment you change typeface, font size, or box width. Padding in plain characters is portable: paste the same line into a 12-point Calibri box or a 9-point Courier box and the column count stays the same, because the count is measured in code points rather than in pixels.
Text Padder handles that exact job. You paste your source text, set a target length up to one million Unicode code points, supply any nonempty padding pattern, choose a side, and the tool repeats and truncates the pattern until the result is exactly the requested length. The whole operation runs in your browser tab, the source text is never uploaded, and the finished string is shown in a preview along with the reported code-point count so you can verify it before downloading it as a UTF-8 TXT file or copying it straight into your Word text box.
How to Pad Text to a Target Length in Your Browser
The padder has a small, fixed set of controls, so the workflow is short and predictable.
- Paste the source string into the editor. The original text stays in place so you can compare it against the result.
- Type the exact target length as a whole number between 0 and 1,000,000 Unicode code points. Decimal, negative, missing, or nonnumeric values are rejected.
- Enter a nonempty padding pattern. Spaces, punctuation, symbols, emoji, and multi-character strings are all accepted; an empty pattern is rejected only when characters actually need to be added.
- Pick a side: Left, Right, or Both. Both splits the missing length evenly between the two edges, and any odd remainder goes to the right side.
- Click Pad and inspect the preview plus the reported code-point length.
- Click Download to save the result as a UTF-8 TXT file, or select the preview text and copy it into the Word text box.
The same source, target, pattern, and side always produce the same output, so the result is reproducible and easy to revisit later.
Padding Modes Compared: Left, Right, and Both Sides
The side you choose changes where your real content ends up inside the padded line, which matters when the text box has a different alignment or when the surrounding lines expect a fixed anchor on one edge.
| Padding mode | Where the pattern lands | What changes about your source |
|---|---|---|
| Left | Before the source | The original text shifts to the right; its characters stay in their original order at the end of the padded string. |
| Right | After the source | The original text stays at the start; new characters extend the right edge. |
| Both | Split between the two edges | The original text centers approximately; an odd remainder goes to the right side, which is a fixed rule. |
For a concrete look at the Both mode, the tool documents the rule directly: padding the source cat from length 3 to length 8 with the pattern -_ on both sides produces the 8-character string -_cat-_-, with two padding characters before the source and three after, because the pattern repeats from its first character and is truncated exactly at the target.
Where Exact-Length Padding Does Not Apply
Padding by code points is precise, but it is not the same as padding by bytes, by visual width, or by characters of some other definition. Knowing the boundary keeps the tool useful instead of misleading.
- Bytes, not code points. UTF-8 represents a single code point as one to four bytes, so a target length of, say, 16 code points is not the same as a target length of 16 bytes. Use a byte-oriented utility when a format, database column, or protocol specifies storage length rather than text length.
- Visual width, not code points. East Asian wide characters, emoji, tabs, and combining sequences can occupy a visual width that does not match their code-point count. Padding to 20 code points does not guarantee a 20-monospaced-column line in a proportional or East Asian font.
- No truncation. If the source already meets or exceeds the target, the tool returns the source unchanged. Set a larger target when you actually need padding, because the tool will never shorten text to fit a smaller length.
- Empty patterns when padding is required. The padding field must be nonempty whenever the tool has to add characters. Spaces, punctuation, emoji, and multi-character patterns are all valid; only a completely empty string is rejected in that situation.
- No network round-trip. All padding, previewing, and TXT download creation happen locally in the browser, so you can pad sensitive drafts without sending them to a server.
Putting It Together in Word
The simplest workflow is to build the content in Text Padder, copy the preview, then drop it into the text box you added with the steps above. For a header banner, pad with an equals-sign pattern on both sides; for a left-aligned label, pad on the right; for a centered callout, pad on both sides and let Word's center alignment inside the text box do the rest. If the text needs to break onto multiple lines inside the box, set a fixed width on the text box and use a wrap width that matches the padded line length so the break happens at the right edge instead of mid-pattern.