Vertical Line on Keyboard: Name and How to Type It
In this article
The straight vertical line on a keyboard is most commonly called the vertical bar or pipe. In formal writing and technical documentation, "vertical bar" is the standard name; "pipe" is widely used informal and slang shorthand among programmers and system administrators. The character itself is Unicode U+007C (|), and on a standard US keyboard it shares a key with the backslash (\) above the Enter key. To type it, hold Shift and press that key. On many non-US layouts the pipe sits elsewhere, so the exact key varies by region and keyboard layout.
What Is the Straight Vertical Line Called?
The straight vertical line character is officially named the vertical bar in Unicode and in most style guides. It is also called the vertical line, pipe, pipe symbol, or bar. "Pipe" is informal and slang, not a standard typographic term, though it is so common in computing that many people use it as the primary name. "Vertical bar" is the standard, neutral term you will find in dictionaries and technical references. "Pipe" comes from Unix shell terminology, where the symbol pipes the output of one command into another. That origin explains why the slang name is so tightly associated with programming and command-line work rather than everyday writing.
The character looks like a single unbroken vertical stroke. It is not the same as the broken bar (¦), a separate Unicode character (U+00A6) that appears on some older keyboards and in some character sets. The broken bar has a small gap in the middle, while the pipe is continuous. On modern US keyboards you normally get the continuous vertical bar with Shift+Backslash. The broken bar is rare and usually only reachable through a character map or a special input method.
Where the Name Comes From
The term "vertical bar" is descriptive and has been used in printing and typography for centuries to describe a vertical rule. The name "pipe" is much newer and comes from Unix. In Unix shells, the pipe operator takes the standard output of one command and feeds it as standard input to the next. The symbol chosen for that operator was the vertical bar, and programmers began calling it "the pipe" because of its function. Over time the nickname spread to other operating systems, programming languages, and general tech culture. Today "pipe" is understood by most developers, but it remains informal. If you are writing formal documentation, use "vertical bar" and mention "pipe" only as a common alias.
How to Type It on Different Keyboards
The exact keystroke depends on your keyboard layout and operating system. The steps below cover the most common setups. Menu labels and key positions can differ slightly by version, device, and region, so if a step does not match what you see, look for the closest equivalent.
- US keyboard (Windows or Mac): Hold Shift and press the backslash key, located above the Enter key. The legend on the key usually shows both \ and |.
- UK keyboard: The pipe is often on the key to the left of the Z, or on the backslash key depending on the specific layout. Hold Shift and press the key whose upper legend is |.
- Mac with a non-US layout: Open System Settings > Keyboard > Input Sources and check the layout. You can also use the Keyboard Viewer from the input menu to see where the pipe sits.
- Windows with a non-US layout: Open Settings > Time & Language > Language & region and check the installed keyboard. The on-screen keyboard can show you the exact key.
- Mobile phones and tablets: On iPhone and Android, open the symbols page of the keyboard and look for the | key, usually on the second symbols page. Tap it once.
- No pipe key visible: Use the operating system's character viewer or emoji and symbols panel, search for "vertical bar," and insert it from there.
If you need the pipe repeatedly, consider switching to a layout that places it on a more convenient key, or use a text expansion shortcut. On Windows you can also hold Alt and type 124 on the numeric keypad for the pipe character, though this only works with a numeric keypad and the correct code page.
Common Uses and Real Examples
The vertical bar appears in many contexts, and its meaning changes with the setting. Here are the most common uses with real sentence examples.
- Programming and shell commands: The pipe sends output from one command to another. Example:
dir | moreon Windows lists directory contents one screen at a time. - Regular expressions and search: The pipe means "or." Example: the pattern
cat|dogmatches either word. - Mathematics and logic: The vertical bar can mean "divides" or "such that." Example: x | y reads as "x divides y."
- Tables and plain text: People use pipes to draw simple tables or separators. Example:
Name | Age | Cityas a header row. - Everyday writing: A single pipe is sometimes used as a visual separator between labels. Example:
Open | Save | Closein a menu mockup.
A common misconception is that the pipe and the broken bar are interchangeable. They are not. Using the wrong character can break code, search patterns, or data files. If a program rejects your input, check that you typed the continuous vertical bar (|) and not the broken bar (¦). Another frequent mistake is confusing the pipe with the capital letter I or lowercase l. In many fonts they look similar, so use a monospaced font when clarity matters.
Pipe vs. Other Vertical Marks
Several characters look like a vertical line but serve different purposes. The table below compares the most common ones.
- Vertical bar (|): Unicode U+007C. Standard name: vertical bar. Common alias: pipe. Used for OR, piping, and separators.
- Broken bar (¦): Unicode U+00A6. Has a gap in the middle. Rare on modern keyboards. Not a substitute for the pipe in code.
- Capital I and lowercase l: Letters, not symbols. In sans-serif fonts they can resemble a pipe. Use context or a monospaced font to tell them apart.
- Vertical line in math (|): Same character, different meaning depending on context, such as absolute value or "such that."
If you are writing for a general audience, spell out "or" instead of using a pipe, because many readers will not recognize it. In technical writing, define the symbol the first time you use it.
Frequently Asked Questions
Is it called a pipe or a vertical bar?
Both names are correct, but they differ in formality. "Vertical bar" is the standard name used in Unicode and style guides. "Pipe" is informal and slang, widely used in computing because of its role in Unix shells. For formal writing, use "vertical bar" and note "pipe" as a common alias.
How do I type a vertical bar on a laptop without a numeric keypad?
Use Shift plus the backslash key on a US layout. If your laptop has a different layout, open the on-screen keyboard or the character viewer and insert the symbol from there. The Alt+124 method requires a numeric keypad, so it will not work on most compact laptops.
Why does my pipe symbol look broken in the middle?
You are probably seeing the broken bar (¦), a separate character from the continuous vertical bar (|). Some older fonts and keyboards map the broken bar to a key that normally produces the pipe. Check your keyboard layout and use the character viewer to insert the correct symbol.
Can I use the pipe symbol in a password?
Many systems allow the pipe in passwords, but some older or restricted systems reject it. If a site refuses your password, try a different special character. Always follow the site's stated password rules rather than assuming any symbol is allowed.
What does the pipe mean in a text message?
In casual messages, a pipe is usually just a visual separator, for example between two options or labels. It rarely means "or" outside technical contexts. If the meaning is unclear, ask the sender or rewrite the message with words.
Is the vertical bar the same as the slash?
No. The vertical bar (|) is a straight up-and-down line. The forward slash (/) leans to the right, and the backslash (\) leans to the left. They are different characters with different uses in computing and writing.