Put a Box Around Text in Word: Borders, Text Box, Table

Last updated on November 11th, 2026 at 07:22 pm

One line in your Word document, a warning or a deadline, needs a box so nobody skims past it. Select the text, go to Home, open the arrow next to Borders, and choose Outside Borders. For a box snug around only the words, open Borders and Shading from the same menu and set Apply to to Text. These steps are for Word on Windows; Mac and web notes come at the end.

Box a sentence with Outside Borders

Take Priya, who is sending a team memo with the line “Timesheets are due by 5 p.m. Friday.” She wants that line boxed and nothing else.

  1. Put the line in its own paragraph (press Enter before and after it if it’s buried in other text).
  2. Select the line. Triple-click inside it to select the whole paragraph.
  3. On the Home tab, in the Paragraph group, select the small arrow next to the Borders button (a square split into four panes).
  4. In the Borders gallery, choose Outside Borders.

Word draws a thin black box around the paragraph. Microsoft’s help page on how to add a border to some text in Word describes this same menu and notes that a border is often simpler than a text box or a one-cell table.

What you get depends on what you select. When the whole paragraph is selected, Word applies a paragraph border, which runs the full width between the margins even if the sentence is short. When you select just a few words inside a paragraph, Word usually boxes only those words. If you’re not sure which one you got, the next section lets you choose on purpose.

Example: Box Around One Paragraph

In Word for Microsoft 365 on a Windows 11 laptop, with the cursor in one paragraph, Home > the Borders arrow > Borders and Shading opened on the Borders tab. I picked Box under Setting, kept the single line at ½ pt, and Apply to showed Paragraph.

Word Borders and Shading dialog with Box selected and a paragraph boxed margin to margin
Borders and Shading with Box (top) and the boxed paragraph (bottom).

After OK, the box ran from the left margin to the right margin, not just around the words. That full-width box is what a paragraph border does, which is why the next section covers a tighter box.

Get a tight box around only the words

Here’s how to keep the frame from stretching across the page:

  1. Select only the words you want boxed (drag across them, not past the last character).
  2. Open the Borders arrow on the Home tab and choose Borders and Shading at the bottom of the menu.
  3. On the Borders tab, under Setting, select Box (or another frame style such as Shadow).
  4. In the bottom-right corner, set Apply to to Text.
  5. Check the Preview, then select OK.

With Text, the box hugs the words like a highlighter would and wraps with them if they run onto a second line. With Paragraph, it surrounds the whole paragraph block. For a deadline inside a sentence (“Reply by June 3“), Text is the right choice. For a standalone warning line, Paragraph usually looks cleaner.

Narrow a paragraph box without boxing each line

A text border can look ragged when the words wrap over several lines, because each line gets its own edge. If you want one neat rectangle that’s narrower than the page, keep Paragraph and bring the sides in:

  1. Click inside the boxed paragraph.
  2. Turn on the ruler if needed (View > Ruler).
  3. Drag the left indent marker right and the right indent marker left. The box follows the indents.

To put the shorter box in the middle of the page, center the paragraph; centering text in Word covers the alignment buttons and shortcut.

Change the box style, color, thickness and fill

The same Borders and Shading dialog controls how the box looks:

  1. Select the boxed text and open Borders > Borders and Shading.
  2. Pick a line Style (solid, dotted, dashed, double and more).
  3. Choose a Color and a Width (thickness in points).
  4. To remove one side or add another, click the edges in the Preview diagram or use the side buttons around it.
  5. For a background color, open the Shading tab and choose a Fill, keeping Apply to the same as on the Borders tab.
  6. Select OK.

For a quick fill without the dialog, use the Shading button next to Borders on the Home tab, as Microsoft explains in its page on how to apply shading to words or paragraphs.

A pale fill with a darker border of the same color reads well on screen and in print. Keep enough contrast between the text and the fill: dark text on a light background is the safe choice for readers with low vision.

Add space between the text and the box

On the Borders tab, select Options (if your version shows it) to set the distance from the text to each side of the border, in points. This padding applies to paragraph borders; with a text border the box stays tight to the letters, and the option may not be available. A few extra points on the left and right stop the text from touching the line.

Use a text box when the box needs to move

Borders keep the box in line with your text. If you want a boxed note you can drag beside a paragraph, like a sidebar or callout, use a text box: Insert > Text Box, then draw or choose a design and type inside. The full process, including drawing and resizing, is in inserting a text box in Word.

The outline of a text box is changed in a different place from a text border. Select the box, then on the Shape Format tab (Format in some versions) open Shape Outline to pick a color, Weight or Dashes. A text box moves and wraps like a picture, so the tips on placing a picture anywhere in Word also work for positioning it. To center text vertically inside it, see changing vertical alignment in Word.

Use a one-cell table for notes and form fields

A table with one cell gives a box that grows as you type and stays in its place in the text. That makes it handy for a “Notes” area on a form or an instructions panel.

  1. Click where the box should go.
  2. Go to Insert > Table and select the single top-left square (1×1).
  3. Type inside the cell. Press Enter for more lines; the box gets taller.
  4. To style it, click in the cell and use the Table Design tab: Borders, Pen Color, line weight, and Shading.

If you later need more boxes in the same stack, add rows as described in adding a row to a table in Word.

Which kind of box to use

You wantUseWhy
A whole line or paragraph framedOutside Borders (Paragraph)Two clicks; moves with the text
A box hugging a word or phraseBorders and Shading, Apply to: TextBox follows the words only
A narrower rectangle around a paragraphParagraph border plus indentsOne clean shape, not per-line edges
A callout you can drag anywhereText boxFree positioning and text wrapping
A fill-in area on a formOne-cell tableGrows as you type, easy to style

Borders around the entire page, around pictures and around tables are separate settings, covered in adding a border in Word.

Copy the box to other text

Once one line looks right, reuse it rather than rebuilding it. Click inside the boxed text, select Format Painter (the paintbrush on the Home tab), then select the next paragraph. Double-click Format Painter to apply it to several places, and press Esc when you’re done. Format Painter copies the paragraph border along with the font and spacing.

Take the box off

  • Border on text or a paragraph: select the boxed text, open the Borders arrow and choose No Border. Or set Setting to None in Borders and Shading.
  • Text box outline only: select the box, then Shape Format > Shape Outline > No Outline. The text stays where it is.
  • Whole text box: click its edge so the outline turns solid, then press Delete. Its text goes too, so copy it out first if you need it.
  • One-cell table: select the cell, then on the Table Design tab open Borders and choose No Border, or use Layout > Delete > Delete Table.

If a line still won’t go away, it may not be the border you think; removing a border line in Word walks through the usual suspects.

Fix common box problems

The box stretches from margin to margin

You applied a paragraph border. Undo it with Ctrl+Z, select only the words, and use Borders and Shading with Apply to: Text, or keep the paragraph border and pull in the indents as shown above.

Two paragraphs share one big box

Neighboring paragraphs with identical borders join into a single frame. Select the paragraph that shouldn’t be inside, and choose No Border. Giving the boxed paragraph different indents from its neighbor also splits them.

A new box appears every time you press Enter

A new paragraph inherits the formatting of the one above, border included. After pressing Enter, choose Borders > No Border on the new line. Next time, add an empty line below before you apply the box, so you type outside it.

A line appeared after typing three dashes

That’s Word’s AutoFormat turning --- into a border line under the paragraph. Press Backspace right away to keep the dashes. To stop it, go to File > Options > Proofing > AutoCorrect Options > AutoFormat As You Type and clear Border Lines, as Microsoft’s page on how to insert a horizontal line describes. If you actually wanted a dividing line, inserting a horizontal line in Word shows the other ways.

Text sits on a line instead of in a box

If what you need is a blank line to write on, such as a signature space, a box is the wrong tool; see typing on top of a line in Word.

Boxing text in Word: questions people ask

Can I box text in Word for the web?

The browser version has a Borders button on the Home tab, but it offers fewer choices than the desktop app, and the full Borders and Shading dialog may not be there. If you need a tight text box, a custom color or padding, open the document in the desktop app; otherwise a one-cell table is a reliable option in the browser.

What about Word for Mac?

On the Home tab, select the arrow next to the Borders button there too, and Borders and Shading is in its menu, with the same Setting, Style, Color, Width and Apply to choices. Some labels and dialog layouts differ from Windows.

Can the box have rounded corners?

Not with a border. Go to Insert > Shapes, choose the rounded rectangle, draw it, then right-click it and select Add Text. Set Shape Fill to No Fill if you want just the outline.

Will the box show when I print or save as PDF?

Yes. Borders, text box outlines and table borders all print and appear in PDFs. Gridlines that show only on screen (the dotted table guides) don’t print.

Box your one key line first with Outside Borders, check whether it should hug the words, and use Format Painter to repeat the style anywhere else in the document.