Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Insert a Vertical Line Symbol in Word

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To insert a vertical line symbol (also known as a pipe symbol) in Microsoft Word, the fastest method is to press Shift + \ (the backslash key), which is typically located just above the Enter key on a standard QWERTY keyboard. This inserts the character | immediately at your cursor position. Depending on your goal, you may also need a graphic vertical line for layout purposes, which can be achieved using the Borders tool or the Shapes menu.

What You'll Need

  • A computer with Microsoft Word installed (Windows or macOS).
  • A physical keyboard (for shortcuts) or a mouse/trackpad (for menu navigation).
  • An open Word document.

Step-by-Step

Depending on whether you need a text character (the pipe symbol) or a visual divider (a graphic line), follow the appropriate method below. Please note that menu labels may differ slightly depending on your version of Word, your operating system, or your regional settings.

Method 1: Using the Keyboard Shortcut (The Pipe Symbol)

  1. Place your cursor exactly where you want the vertical line to appear in your text.
  2. Locate the backslash (\) key on your keyboard. On most US and UK layouts, this is found above the Enter key and below the Backspace key.
  3. Hold down the Shift key and press the \ key once.
  4. Release both keys. The vertical bar (|) will now appear in your document.

Method 2: Using the Symbol Menu (For Special Vertical Bars)

  1. Click on the Insert tab in the top ribbon menu.
  2. On the far right side of the ribbon, locate and click on Symbol.
  3. If the vertical line is not visible in the immediate dropdown list, click More Symbols... to open the full character map.
  4. In the Font dropdown, ensure (normal text) is selected.
  5. In the Subset dropdown (if available), select Basic Latin.
  6. Scroll through the grid to find the vertical line symbol (|).
  7. Click the symbol to highlight it, then click the Insert button at the bottom of the window.
  8. Click Close to return to your document.

Method 3: Creating a Vertical Divider Line (Graphic Line)

If you need a line that spans the height of a page or separates two columns of text rather than a single character, use the Borders tool.

  1. Highlight the paragraph or the specific cell in a table where you want the vertical line to appear.
  2. Go to the Home tab in the ribbon.
  3. In the Paragraph group, locate the Borders icon (it looks like a small square grid).
  4. Click the downward arrow next to the Borders icon to open the dropdown menu.
  5. Select Left Border or Right Border. This will place a continuous vertical line along the edge of the selected text area.
  6. To customize the thickness or color of this line, click the Borders dropdown again and select Borders and Shading... at the bottom.
  7. Adjust the Style, Color, and Width in the dialog box, then click OK.

Method 4: Drawing a Custom Vertical Line (Shapes)

  1. Click on the Insert tab in the ribbon.
  2. Click on Shapes.
  3. Under the Lines category, select the simple straight line tool.
  4. Click and hold your left mouse button at the starting point of the line on your page.
  5. Hold the Shift key while dragging the mouse downward. Holding Shift ensures the line remains perfectly vertical and does not tilt.
  6. Release the mouse button to finish the line.
  7. With the line still selected, use the Shape Format tab to change the color, weight (thickness), or dash style of the line.

Common Mistakes

One of the most frequent errors is confusing the pipe symbol (|) with the lowercase letter 'L' (l) or the uppercase letter 'I' (I). While they look similar in some fonts, they are distinct characters. If you are using the vertical line for coding, mathematical notation, or data separation, using a letter instead of the symbol will cause errors in software processing.

Another common mistake is attempting to create a long vertical line by pressing the Shift + \ key repeatedly. This creates a series of individual characters with small gaps between them, which looks unprofessional and is difficult to align. If you need a solid line that spans several inches, you must use the Borders tool or the Shapes tool described above.

Users also frequently forget to hold the Shift key when pressing the backslash key, which results in a backslash (\) instead of a vertical line. If you see a slanted line, simply delete it and ensure the Shift key is fully depressed before pressing the key again.

Tips

To make a vertical line stand out as a visual divider, try adjusting the spacing around it. If you are using the pipe symbol (|), press the spacebar once before and once after the symbol. This prevents the line from crowding the surrounding text and improves readability.

For those who frequently use vertical lines for professional layouts, consider using a Table. Create a table with two columns, then remove all borders except for the center vertical line. This allows you to keep text perfectly aligned on both sides of the line without having to manually adjust tabs or spaces.

If you are using a non-US keyboard layout (such as UK, German, or French), the pipe symbol may be located in a different position. Check the keys near your Enter or Shift keys, or use the Symbol menu in the Insert tab if the keyboard shortcut is not intuitive on your specific hardware.

Troubleshooting

If the vertical line symbol does not appear when you press Shift + \, first check if your keyboard layout is set to the correct language in your operating system settings. A mismatch between the physical keyboard and the software layout can change which character is assigned to which key.

If the line appears as a broken dash (a top half and a bottom half with a gap in the middle), this is a font-specific design called a "broken pipe." To fix this, highlight the symbol and change the font to a more standard sans-serif font like Arial, Calibri, or Helvetica, which typically render the pipe as a solid, continuous line.

If you used the Shapes tool to draw a line and it is not perfectly straight, delete the line and redraw it while holding the Shift key. The Shift key acts as a constraint, forcing the line to snap to 0, 45, or 90-degree angles.

If the Borders tool is not placing the line where you expect, check your paragraph indentation settings. The border is placed at the edge of the paragraph margin; if your margin is set too wide, the line may appear shifted to the right or left.

Frequently Asked Questions

What is the official name of the vertical line symbol?

In computing and typography, the vertical line symbol (|) is most commonly called a "pipe." It is also referred to as a vertical bar.

Can I make the vertical line thicker in Word?

If you are using the pipe symbol, you can make it thicker by selecting the symbol and applying a Bold format (Ctrl + B). If you are using a Shape or Border, you can increase the Weight in the Shape Format or Borders and Shading menu.

How do I remove a vertical line created by the Borders tool?

Select the text area where the line is located, go to the Home tab, click the Borders dropdown menu, and select No Border.

Why does my vertical line look different in different fonts?

Different typefaces have different designs for the pipe symbol. Some fonts use a solid line, while others use a broken line. Changing the font will change the appearance of the symbol.

Is there a keyboard shortcut for the vertical line on a Mac?

Yes, on most Mac keyboards, the shortcut is also Shift + \. However, depending on the regional keyboard layout (such as European layouts), you may need to use Option + 7 or a similar combination.

How can I center a vertical line on the page?

The easiest way to center a vertical line is to use the Shapes tool to draw the line, then go to the Shape Format tab, click Align, and select Align Center.