How to Put a Box Around Text in Word (4 Ways)

To put a box around text in Word, select the text, go to the Home tab, select the arrow next to the Borders button in the Paragraph group, and choose Outside Borders. Word draws a box around the selected paragraphs. For a thicker or colored box, choose Borders and Shading from the same menu. If you want a box you can drag anywhere on the page, insert a text box instead.

Applies to: Word for Microsoft 365, Word 2024, 2021, 2019 and 2016 on Windows and Mac, and Word for the web. Last reviewed October 8, 2026.

Three ways to put a box around text in Word
From quickest to most flexible. This is a drawing, not a screenshot.

Method 1: Outside Borders (quickest)

  1. Select the paragraph or paragraphs.
  2. On the Home tab, select the arrow next to Borders (it looks like a square divided into four).
  3. Choose Outside Borders.

The box stretches from the left margin to the right margin. To make it narrower, drag the paragraph’s indent markers on the ruler inward.

Method 2: Borders and Shading (custom style)

  1. Select the text and choose Borders > Borders and Shading.
  2. On the Borders tab, select Box or Shadow under Setting.
  3. Choose a Style (solid, dashed, double), Color and Width.
  4. Under Apply to, choose:
    • Paragraph to box the whole paragraph from margin to margin.
    • Text to box only the selected words, wrapping tightly around them like a highlight.
  5. To add a background color, open the Shading tab and pick a Fill.
  6. Select Options to set the space between the text and the box. Then select OK.

To put a border around the whole page instead, see how to add a border in Word.

Method 3: Text box (movable)

  1. Go to Insert > Text Box > Draw Text Box.
  2. Drag to draw the box, then type or paste your text into it.
  3. Use the Shape Format tab to change the Shape Outline (border) and Shape Fill.
  4. Select Layout Options next to the box to choose how body text wraps around it.

Text boxes are good for callouts and sidebars because you can move them freely. For tips on positioning, see how to place a picture anywhere in Word; the same layout options apply.

Method 4: A one-cell table

Go to Insert > Table and select a single cell (1×1). Type inside it. Tables keep the box inside the text flow, resize automatically as you type, and are easy to style with Table Design > Borders. This works well for forms and notes that must stay in place.

Which method should you use?

  • Highlighting a key paragraph or tip: Outside Borders or Borders and Shading.
  • Boxing a word or phrase inside a sentence: Borders and Shading with Apply to: Text.
  • A callout that sits beside the text: text box.
  • A fixed area in a form: one-cell table.

Remove the box

Select the boxed text and choose Borders > No Border. For a text box, set Shape Outline to No Outline, or select the box’s edge and press Delete to remove it with its text. See how to remove a border line in Word for stubborn lines.

Troubleshooting

The box covers several paragraphs I didn’t select

Adjacent paragraphs with the same border settings merge into one box. Select the extra paragraph and choose No Border, or give them different indents.

A box appears every time I press Enter

New paragraphs inherit the border. Press Enter, then choose No Border on the new line.

A line appeared after typing three dashes

That’s AutoFormat. Press Ctrl+Z straight after, or turn it off in File > Options > Proofing > AutoCorrect Options > AutoFormat As You Type > Border lines.

Frequently asked questions

Can I round the corners?

Not with paragraph borders. Insert a Rounded Rectangle shape from Insert > Shapes, right-click it and choose Add Text.

Does it work in Word for the web?

Yes. Outside Borders is on the Home tab. Some Borders and Shading options need the desktop app.

Related: how to insert a horizontal line in Word.

Related: type on top of a line in Word.

Get Our Free Newsletter

How-to guides and tech deals

You may opt out at any time.
Read our Privacy Policy