Amazon Black Friday Week deals

Paid link

Keyboards & Mice · How-to guide

What Is the Vertical Line on a Keyboard?

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 vertical line on a keyboard is called a pipe, also called a vertical bar. It shares a key with the backslash, so the key is often called the pipe key or the backslash key. Press the key alone for a backslash, and hold Shift and press the same key for the pipe.

  1. What the key is called

    The | character is called a pipe, or a vertical bar. The \ character on the same key is called a backslash. Because both characters share one key, the key itself goes by either name: the pipe key or the backslash key. In code and in command lines, the pipe joins two parts, while the backslash separates folders in a file path.

  2. Where to find it on the keyboard

    On a standard US layout, the pipe and backslash key sits above the Enter key, to the right of the ] key. The pipe is the upper character on the key, so you hold Shift to type it. Compact layouts move keys around, but the key stays near Enter. The four keyboards below all use a 96% layout, which keeps the number pad and the pipe key in place while saving desk space.

  3. What the pipe is used for

    The pipe shows up most in programming and in command lines. In code, it can join two values as an either-or choice, and in a command line it can send the output of one command into the next. The backslash shows up in Windows file paths, where it separates one folder from the next. Outside of code, the pipe also works as a separator between items in a list.

  4. How to type the pipe

    Hold Shift and press the backslash key to type a pipe. Press the same key without Shift for a backslash. If the key is hard to reach on a compact layout, check the keyboard's software: the AULA, YUNZII, SOLAKAKA and KiiBoom keyboards below all let you remap keys or record macros. You can also open the on-screen keyboard and click the pipe key there.

What you need

AULA S99 Gaming Keyboard

AULA S99 Gaming Keyboard

A 96% membrane keyboard with 99 keys, a number pad, RGB backlight and Bluetooth 5.0, 2.4GHz and USB-C connections.

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

YUNZII B98 PRO 96% Wireless Mechanical Keyboard (Blue

A 96% mechanical keyboard with Milk V2 linear switches, a number pad, RGB backlight and hot-swappable switches.

View on Amazon
SOLAKAKA A99 Pro Mechanical Keyboard

SOLAKAKA A99 Pro Mechanical Keyboard

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

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

KiiBoom Phantom98 Lite 96% Wireless Mechanical Gaming Keyboard

A 96% mechanical keyboard with Mochi switches, a gasket mount, RGB backlight and an 8000mAh battery.

View on Amazon

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

FAQ

Is the vertical line called a pipe or a backslash?

Both names are used for the same key. The | character is the pipe, also called a vertical bar, and the \ character on the same key is the backslash. Press the key alone for a backslash, and hold Shift for the pipe.

Where is the pipe key on a keyboard?

On a standard US layout it sits above the Enter key, to the right of the ] key. Compact layouts move keys around, so look near Enter if the key is not in that spot. The pipe is the upper character, so hold Shift to type it.

What is the pipe used for in programming?

In code, the pipe can join two values as an either-or choice. In a command line, it can send the output of one command into the next. The backslash is different: it separates folders in a Windows file path.

Ranked keyboards guides