Insert a Vertical Line in Word: 4 Easy Methods
In this article
To insert a vertical line in Microsoft Word, the fastest way is to use the pipe symbol (Shift + \) on your keyboard for a simple text divider, or use the Insert > Shapes > Line tool for a custom graphical divider. Depending on whether you need a decorative border, a column separator, or a simple character between words, different methods provide different levels of control over positioning and thickness.
What You'll Need
- A computer with Microsoft Word installed (Windows or macOS).
- A keyboard with a backslash key (usually located above the Enter key).
- A mouse or trackpad for precise placement of graphical lines.
Step-by-Step
Because Word does not have a single "Vertical Line" button, you must choose the method that fits your specific layout goal. Labels and menu paths may differ slightly depending on your version of Word or operating system.
Method 1: Using the Pipe Symbol (Best for Text Dividers)
The pipe symbol is a standard keyboard character used frequently in menus and lists to separate items on a single line without creating a full table.
- Place your cursor exactly where you want the vertical line to appear within your sentence or list.
- Hold down the Shift key on your keyboard.
- Press the Backslash (\) key. On most QWERTY keyboards, this key is located right above the Enter key.
- Release both keys. A thin vertical line ( | ) will appear.
- To add space around the line, press the spacebar once before and once after the symbol.
Method 2: Using the Shapes Tool (Best for Custom Layouts)
If you need a line that spans the entire page, separates two blocks of text, or has a specific color and thickness, the Shapes tool is the most flexible option.
- Click on the Insert tab in the top ribbon menu.
- Click on the Shapes button in the Illustrations group.
- Under the Lines category, select the simple straight line icon.
- Click and hold your mouse button at the starting point of the line on your page.
- Drag the cursor downward to create the vertical line. Pro Tip: Hold the Shift key while dragging to ensure the line is perfectly straight and not tilted.
- Release the mouse button to set the line.
- With the line still selected, a new Shape Format tab will appear in the ribbon. Use this menu to change the Shape Outline color, weight (thickness), or style (dashed vs. solid).
Method 3: Using Column Borders (Best for Newsletter Layouts)
When you have a document split into two or more columns, Word can automatically place a vertical line between them that adjusts as your text grows.
- Go to the Layout tab in the ribbon.
- Click on Columns and select the number of columns you want (e.g., Two).
- Click on Columns again and select More Columns... at the bottom of the dropdown menu.
- In the dialog box that opens, check the box labeled Line between.
- Click OK. A vertical line will now appear automatically between your columns of text.
Method 4: Using Table Borders (Best for Side-by-Side Content)
If you need a vertical line to separate a sidebar from a main body of text, using a table is the most stable method for formatting.
- Go to the Insert tab and select Table.
- Create a table with two columns and one row (2x1).
- Type your content into the left and right cells.
- Click inside the table to make the Table Design tab appear in the ribbon.
- Click the Borders dropdown menu.
- Select No Border to hide all lines first.
- Now, click the Borders dropdown again and select Inside Vertical Border. This leaves only the single vertical line separating the two cells.
Common Mistakes
- Forgetting the Shift Key: Users often press the backslash key without Shift, resulting in a diagonal line (\) instead of a vertical one.
- Ignoring the Shift Key during Drawing: When using the Shapes tool, it is very common to draw a line that looks vertical but is actually tilted by a few degrees. This becomes obvious when you print the document or convert it to PDF. Always hold Shift while dragging.
- Using Spaces to Position Lines: Trying to move a Shape line by hitting the spacebar or Enter key is imprecise. Instead, use the mouse to drag the line or use the alignment tools in the Shape Format menu.
- Overusing the Pipe Symbol for Layout: While the pipe symbol is great for small dividers (e.g., Home | About | Contact), using it to try and create a long vertical line across multiple paragraphs will not work because the symbol is treated as a character, not a graphic.
Tips
- Consistency: If you use the pipe symbol in a professional document, ensure the spacing is identical throughout. For example, always use one space before and one space after the line.
- Line Weight: For a modern, clean look, use the Shape Format menu to change the line weight to 0.5 pt or 0.75 pt. The default 1 pt line can often look too heavy for professional reports.
- Anchoring: If your Shape line moves unexpectedly when you add text, right-click the line, select Wrap Text, and choose Behind Text or In Front of Text. This decouples the line from the text flow.
- Color Coding: Use a light grey color for vertical dividers instead of pure black. This creates a visual hierarchy that separates content without distracting the reader from the text.
Troubleshooting
If the vertical line is not behaving as expected, try these solutions based on the method you used:
The line in my columns disappeared: This usually happens if the columns are not actually filled with enough text to trigger the second column. Word only draws the "Line between" if there is content present in both columns. Try adding a column break by going to Layout > Breaks > Column.
The Shape line is jumping to another page: This is caused by the "Anchor" system in Word. Click the line, go to Shape Format > Wrap Text > More Layout Options. Under the Position tab, ensure the vertical position is set to "Absolute position" relative to the page rather than the paragraph.
The pipe symbol looks like a dash or a different character: This is likely a font issue. Some highly stylized or decorative fonts change the appearance of the pipe symbol. Switch to a standard font like Calibri, Arial, or Times New Roman to see if the line returns to a standard vertical shape.
I can't find the backslash key: If you are using a non-US keyboard layout (such as UK or European), the pipe symbol may be located elsewhere. Look for the key next to the left Shift key or near the Enter key. If all else fails, you can go to Insert > Symbol > More Symbols and search for the "Vertical Line" character.
Frequently Asked Questions
Can I make a vertical line that spans the entire height of the page?
Yes. The best way is to use the Shapes tool. Insert a line, hold Shift to keep it straight, and drag it from the top margin to the bottom margin. Set the Wrap Text option to "Behind Text" so it doesn't push your words around.
How do I change the color of the vertical line between columns?
Word's automatic "Line between" for columns is limited to the default document color (usually black). If you need a colored line, you must disable the "Line between" setting and manually draw a line using the Shapes tool or use the Table Border method.
Is there a keyboard shortcut to draw a vertical line?
There is no shortcut to "draw" a graphical line, but Shift + \ is the shortcut to insert the vertical pipe character. For graphical lines, you must use the Insert menu.
Why does my vertical line move when I type more text?
This happens because the line is "anchored" to a specific paragraph. When that paragraph moves down the page, the line follows it. To stop this, right-click the line, go to Wrap Text, and select "Fix position on page."
Can I use a vertical line to create a checklist?
While you can draw a line, it is much more efficient to use a Table. Create a table with two columns: a narrow one for the checkboxes/line and a wide one for the text. You can then apply a right-side border to the first column to create a clean, consistent vertical line.