Amazon Black Friday Week deals

Paid link

Keyboards & Mice · How-to guide

What Is the Straight Vertical Line Key Called?

We earn a commission when you buy through our links, at no extra cost to you. As an Amazon Associate I earn from qualifying purchases.
Short answer

The straight vertical line on a keyboard is called the pipe, also known as the vertical bar. Its symbol is | , and it shares a key with the backslash. Hold Shift and press that key to type it.

  1. The straight line is the pipe character

    The straight vertical line is called the pipe, also known as the vertical bar. Its symbol is a straight line that runs from top to bottom: | . It is a character in its own right, not a letter and not a slash. You see it in command lines, in code and in text, where it separates items or joins commands together.

  2. Where the pipe key sits

    Look for a keycap that shows a backslash and a straight vertical line together. The backslash is the mark you get from the key on its own, and the pipe is the mark you get with Shift held down. The key sits in the main typing area, close to the Enter key.

  3. How to type the pipe character

    Hold down Shift, then press the key that shows the backslash and the pipe. Release the keys and the pipe character appears. If Shift is not held down, the same key gives a backslash instead. On a laptop, the same Shift combination still works.

  4. What the pipe does in commands

    In a command line, the pipe sends the output of a command into the next command as input. That lets you chain commands together, so the result of a command feeds straight into the next command. In code, the pipe can stand for or, joining options where either can apply.

  5. Pipe, slash and the letter l

    The pipe is easy to mix up with lookalike marks. A slash leans to the side, while the pipe stands straight up and down. The lowercase letter l and the capital letter I can look close to a pipe in some fonts, but they are letters with different roles in text and code. If a command fails, check that you typed the pipe and not a letter.

What you need

AULA S99 Gaming Keyboard

AULA S99 Gaming Keyboard

A membrane keyboard with a 96% layout, number pad, RGB backlight, tri-mode Bluetooth, 2.4GHz and USB-C connections, plus a rotary knob and programmable macros.

View on Amazon
YUNZII B98 PRO 96% Wireless Mechanical Keyboard (Blue

YUNZII B98 PRO 96% Wireless Mechanical Keyboard (Blue

A mechanical keyboard with Milk V2 linear switches, a 96% layout, number pad, QMK/VIA support, hot-swappable switches and a dual-style knob.

View on Amazon
SOLAKAKA A99 Pro Mechanical Keyboard

SOLAKAKA A99 Pro Mechanical Keyboard

A mechanical keyboard with an LCD screen, a metal knob, LEOBOG star vector switches, hot-swappable keys, a 96% layout and RGB backlight.

View on Amazon
KiiBoom Phantom98 Lite 96% Wireless Mechanical Gaming Keyboard

KiiBoom Phantom98 Lite 96% Wireless Mechanical Gaming Keyboard

A mechanical keyboard with Mochi switches, a 96% layout, VIA support, hot-swappable switches, RGB backlight and tri-mode wireless connections.

View on Amazon

These come from our ranked list Best 96 Keyboard, which compares them spec by spec.

FAQ

How do I type a vertical line on a keyboard?

Hold Shift and press the key that shows the backslash and the pipe together. Release the keys and the pipe character appears on screen.

Is the vertical line the same as the backslash?

No. The backslash leans to the side, while the pipe is a straight vertical line. They share a key, and Shift selects the pipe while the key alone gives the backslash.

What is the pipe used for?

In a command line, the pipe sends output from a command into the next command as input. In code, it can stand for or, joining options where either can apply.

Ranked keyboards guides