Please Note: This article is written for users of the following Microsoft Word versions: 97, 2000, 2002, and 2003. If you are using a later version (Word 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Word, click here: Formatting Line Numbers.

Formatting Line Numbers

by Allen Wyatt
(last updated November 19, 2015)


Word allows you to add line numbers to your documents, as you have learned in other issues of WordTips. You might be wondering how to change the formatting of the line numbers. Word makes it quite simple by relying on styles for its line numbers. Simply follow these steps:

  1. Choose Styles and Formatting from the Format menu. Word displays the Styles and Formatting task pane.
  2. In the list of styles, hover your mouse pointer over the Line Number style. (If the Line Number style is not visible, use the Show drop-down list to choose All Styles.)
  3. Click the down-arrow at the right side of the Line Number style and choose Modify. Word displays the Modify Style dialog box. (See Figure 1.)
  4. Figure 1. The Modify Style dialog box.

  5. Make your formatting changes, as desired.
  6. Click on OK to close the Modify Style dialog box.
  7. Close the Styles and Formatting task pane.

If you are using Word 97 or Word 2000, you should follow these steps, instead:

  1. Choose Style from the Format menu. Word displays the Style dialog box.
  2. In the list of Styles, choose the Line Number style.
  3. Click on the Modify button. Word displays the Modify Style dialog box.
  4. Make your formatting changes, as desired.
  5. Click on OK to close the Modify Style dialog box.
  6. Click on Cancel to dismiss the Style dialog box.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (619) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Formatting Line Numbers.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...


Automatic AutoCorrect Exceptions for Beginning Sentences

When automatically capitalizing the beginning of sentences, Word relies on how you historically have done your typing. ...

Discover More

Converting Paragraphs to Comments

Want to pull text from a bunch of paragraphs and stuff that text into comments? It's easy to do using the macro presented ...

Discover More

Entering a Name in the Header of a Locked Form

When you lock a document as a form, then Word limits what you can do with that document. That includes not being able to ...

Discover More

The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!

More WordTips (menu)

Positioning Line Numbers

Line numbers can be added to a document, and is typically done in legal documents. The line numbers appear to the left of ...

Discover More

Numbering Only Certain Lines

Need to add line numbers to a document? Word provides an easy way to add them, but some of the controls that configure ...

Discover More

Removing Line Numbering

If you've added line numbers to your document, at some point you may want them turned off. Here's how to disable line ...

Discover More

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.


If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is four less than 5?

2018-05-03 15:55:22


When I open up a new word 2007 document it shows a number one (not page number) on the line. How do I get rid of that permanently every time I want to create a new document?

2017-05-30 14:06:45

salem mohamed

In my word document(2003), no numbers appear, but when converting it to pdf, the numbers appear on the right side. It is like line numbers, but it isn't. It includes all numbers even non-written ones.

2017-02-15 13:08:48


Whenever I do this and try to save the document as a pdf, it always moves the line numbering back to the left side of the page. Any suggestions?

2016-02-10 18:42:15

Kit: If you read the box at the beginning of the tip (and the text at the end) you'll see a link to a tip for your version of Word.


2016-02-10 18:32:31


Okay, I'll rephrase; your articles does not say it is for Word 2013, but when I googled Word 2013 the first article I found was yours. Maybe something in your tags?!?

2016-02-10 18:30:40


Word 2013 does not have a format menu. You say in step one to select the format menu. IT DOES NOT HAVE ONE. It has File HOme Insert Design Page Layout References Mailigs Review and View and that's it. Now, how can we find the line number style in Word 2013

2013-09-05 08:29:24



You need to make your left page margin wider and then adjust the positioning of the line numbers as discussed in this tip:


2013-09-05 01:29:33

Kris Weythman

P.S. I am using word 2010 and windows xp-pro.


2013-09-05 01:27:28

Kris Weythman

I have a 30+ page document that I have been chronologically entering data. I have been using automatically numbered lines - similar to a legal document. However my numbering just went over 999 and now the "1" in 1000 does not show on the doc. or in "doc preview". How can this be adjusted?

2013-08-11 06:56:35


Many thanks for your excellent help. I've been able to add my line numbers and format them just how I want ... but how do I get them to display down the right hand margin rather than the left? Any clues much appreciated.

This Site

Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.

Newest Tips

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.