Formatting Issues

Move Microsoft Word Line Numbers Inside Page Margins

Emma BrownEmma Brown Nov 18, 2026 869 views

Question details

The user wants to move Word line numbers closer to the document text or farther inside the printable page area.

Product
Microsoft Word
Device & OS
not provided
Scenario
A document uses line numbers, and the user wants to adjust their position relative to the text or page edge.
Observed behavior
Paragraph indents cannot be applied directly to line numbers, and the Line Number character style does not control their position.
Before you start

Open the document in Word and check that line numbering is enabled under Layout > Line Numbers. If printing is the concern, check the result in File > Print after making changes.

Solution 1Recommended

Adjust the distance between Word line numbers and text

Use the line numbering settings to bring line numbers closer to the document text.

1
Open line numbering options

On the Layout tab, select Line Numbers > Line Numbering Options.

2
Open the distance setting

In the Page Setup dialog box, select Line Numbers.

3
Enter a measurement

Replace Auto in the From text field with a specific measurement. A smaller value generally places the numbers closer to the text.

4
Apply and review

Select OK to close the dialogs, then review the document. Reopen the same settings and adjust the value if needed.

Line number styles do not set position: The Line Number character style controls character formatting such as font and size. Paragraph indents cannot be applied directly to line numbers.
Free Microsoft Office alternative

Edit Word Documents and Page Margins in WPS Writer

WPS Office is a free, lightweight alternative for editing documents with a familiar interface. Open compatible Word files, adjust page layouts, and move between Office applications with ease. It does not change Microsoft Word's own line-number settings.

Adjust document margins and page layout in WPS WriterOpen and edit Microsoft Word DOC and DOCX filesUse a familiar interface for everyday document editingWork with a free, lightweight Office alternative
microsoft office alternative - wps office

Frequently Asked Questions

Why can't I indent Word line numbers like a paragraph?

Line numbers are not part of the paragraph text, so paragraph indents do not control them. Use Layout > Line Numbers > Line Numbering Options and change the From text measurement instead.

How do I bring line numbers closer to the text?

Go to Layout > Line Numbers > Line Numbering Options, select Line Numbers, and replace Auto in From text with a smaller measurement. Review the result and adjust it as needed.

Why are my line numbers missing when I print?

They may be outside your printer's printable area. Check File > Print, then try increasing the left margin through Layout > Margins > Custom Margins or reducing the line-number distance from the text.

Can I change the font of Word line numbers?

Yes. Line numbers use the Line Number character style, which can control font formatting. Changing that style does not change their distance from the text.