Fix Word Line Numbers Missing on Screen but Visible in PDF
Question details
Line numbers are not displaying in the Word document window, although they successfully appear when the document is exported or saved as a PDF.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Reviewing and editing a document with line numbering enabled, prior to finalizing or printing.
- Observed behavior
- The line numbers are invisible on screen because negative paragraph indents push the text into the margin, covering or hiding the numbers. However, the PDF engine renders the full printable area, revealing them in the exported file.
Confirm that your document is in Print Layout view and that line numbering is actively enabled from the Layout tab, as line numbers do not display in Draft or Web Layout views.
Remove Negative Paragraph Indents
Adjusting paragraph styles to remove negative indents prevents text from spilling into the margins and obscuring your line numbers.
When a paragraph has a negative left indent, the text is pushed outward into the margin where line numbers typically reside. Correcting this spacing allows both the text and the line numbers to display properly in the document window.
Highlight the paragraphs where line numbers are missing, or press Ctrl+A to select the entire document.
Right-click the selected text and choose 'Paragraph' from the context menu, or click the dialog box launcher in the Paragraph group on the Home tab.
Navigate to the 'Indents and Spacing' tab and locate the 'Indentation' section.
Check the 'Left' (or 'Before text') indent value. If it is a negative number, change it to '0' or a positive value, then click OK to apply.

Use the Style Area Pane to Identify Problematic Styles
Enable the Style Area in Draft view to see exactly which paragraph styles are applied and might be causing the formatting conflict.
Easily Manage Line Numbers and Styles with WPS Writer
WPS Writer provides an intuitive and user-friendly interface to manage paragraph formatting, styles, and line numbering without visual glitches or layout confusion.
- 1. Open the document in WPS Writer: Launch WPS Office and open your .docx file. WPS Writer fully supports Microsoft Word styles and formatting.
- 2. Verify Line Numbering: Navigate to the Page Layout tab and click 'Line Numbers' to ensure they are enabled for your document.
- 3. Access Paragraph settings: Highlight the text missing line numbers, right-click, and select 'Paragraph' from the drop-down menu.
- 4. Correct the indents: In the Indents and Spacing tab, ensure the 'Before text' value is set to 0, then click OK to reveal your line numbers immediately.

Frequently Asked Questions
Why do line numbers show up in my PDF but not in the Word document?
Word's on-screen Print Layout can sometimes obscure elements if paragraph indents are negative, pushing text over the line numbers. The PDF rendering process, however, captures the entire printable canvas, which often bypasses these visual on-screen overlaps, making the numbers visible in the final export.
How do I turn on line numbers properly in Word?
Go to the Layout (or Page Layout) tab, find the Page Setup group, and click on Line Numbers. Choose 'Continuous', 'Restart Each Page', or 'Restart Each Section' depending on your formatting needs.
Can I view line numbers in Draft view?
No. Draft view is designed to simplify the document layout for quick editing and deliberately hides page-level elements like margins, headers, footers, and line numbers. You must switch to Print Layout view (View > Print Layout) to see them.
How can I update a paragraph style to fix all negative indents at once?
Go to the Home tab and locate the Styles gallery. Right-click the style you want to fix (e.g., Normal or Heading 1) and select 'Modify'. Click the 'Format' button at the bottom left, choose 'Paragraph', set the left indentation to 0, and click OK. This will automatically fix all paragraphs using that style.




