TechBuzzPro

Vertical Line on Keyboard: What It's Called

· 5 min read · Windows & PC

In this article
  1. What Is the Vertical Line Called?
  2. Where to Find It on Your Keyboard
  3. How the Pipe Is Used in Practice
  4. Common Problems and How to Type It
  5. Pipe vs. Broken Bar: What’s the Difference?
  6. Frequently Asked Questions

The vertical line on a keyboard is most commonly called the pipe, sometimes the vertical bar, and in technical contexts the vertical pipe or bar. It is a standard character with its own Unicode code point (U+007C) and is typed with the key that usually sits above the Enter key on a US keyboard, often sharing a key with the backslash. The name is not slang or informal: “pipe” is the standard term used in programming, documentation, and keyboard layout references, though “vertical bar” is the more formal typographic name. The symbol itself is not a word in the linguistic sense; it is a character, and the words used to describe it are standard technical terms.

What Is the Vertical Line Called?

The character “|” has several standard names, and which one you use depends on context:

  • Pipe – the most common name in computing, especially in Unix and command-line contexts. It is standard and widely used in programming documentation.
  • Vertical bar – the formal typographic name, used in dictionaries and style guides. Also standard.
  • Vertical line – a descriptive term, not a formal name, but understood by most people.
  • Bar – short form, used in mathematics and some programming languages.
  • Broken bar – used when the line is interrupted (¦), which is a different character (U+00A6).

None of these are slang. “Pipe” is standard technical jargon, not informal speech. The term “pipe” comes from the Unix shell, where the vertical bar is used to connect commands so that the output of one becomes the input of another—like a pipe carrying data. That usage dates back to early Unix in the 1970s, and the name stuck.

Where to Find It on Your Keyboard

On a standard US QWERTY keyboard, the vertical bar is on the same key as the backslash (\), usually located just above the Enter key or near the right Shift key. You type it by holding Shift and pressing that key. On some keyboards, especially compact or non-US layouts, the pipe may be on a different key, often near the Enter key or on the number row. For example, on a UK keyboard, the pipe is typically on the key to the left of the Z, or sometimes near the Enter key, accessed with AltGr or Shift. If you cannot find it, check your keyboard layout in your operating system settings.

How the Pipe Is Used in Practice

The vertical bar has several distinct uses, each with its own context:

  • Command-line piping – in Unix, Linux, and macOS Terminal, the pipe sends the output of one command to another. For example, ls | grep txt lists files and then filters for names containing “txt”. This is the origin of the name.
  • Programming – in many languages, “||” means logical OR. In regular expressions, “|” means alternation (match either the left or right side). In C-style languages, “|” is bitwise OR.
  • Mathematics – “|” can mean “divides” (e.g., 3 | 9), absolute value (|x|), or set-builder notation.
  • Typography and text – used as a separator in tables or to denote a vertical line in text.
  • Wikis and markup – in MediaWiki and some markdown variants, “|” separates parameters in templates or creates table columns.

In a sentence, you might say: “Use the pipe symbol to chain commands in the terminal.” Or: “The regular expression cat|dog matches either word.”

Common Problems and How to Type It

If you cannot type the pipe, the most likely cause is the keyboard layout. On a US layout, Shift+\ produces “|”. On a UK layout, you may need to press AltGr + the key to the left of Z, or Shift + that key, depending on the specific layout. On a Mac, the pipe is usually Shift+\ as well. If you are using a non-standard keyboard, check the layout in your system settings. Another common issue is that the pipe looks like a broken line on some fonts—that is the “broken bar” character (¦), which is different and less common. Do not confuse the two.

If you need to type a pipe on a mobile device, you can usually find it on the symbols keyboard, often on the second page of symbols. On iOS, tap the “123” key, then “#+=” to find the pipe. On Android, the layout varies by keyboard app, but it is typically under symbols.

Pipe vs. Broken Bar: What’s the Difference?

The standard vertical bar (|) is a continuous line. The broken bar (¦) is a vertical line with a gap in the middle. They are distinct Unicode characters: U+007C for the solid bar and U+00A6 for the broken bar. The broken bar is rarely used in computing; it appears in some older character sets and occasionally in mathematical notation, but for almost all purposes, you want the solid pipe. If you see a broken line on your keyboard, it is likely a font rendering issue or you have typed the wrong character.

Frequently Asked Questions

Is “pipe” the official name for the vertical line?

“Pipe” is the standard name in computing and programming, but the formal typographic name is “vertical bar.” Both are correct and standard; “pipe” is more common in technical contexts.

How do I type a vertical line on a laptop?

On most laptops with a US keyboard, press Shift and the backslash key (usually above Enter). If that does not work, check your keyboard layout in the system settings. On some compact laptops, you may need to use the Fn key in combination.

Why is it called a pipe?

The name comes from Unix shell piping, where the vertical bar connects commands so data flows from one to the next, like water through a pipe. The term was adopted in the 1970s and became standard in computing.

What is the difference between | and ¦?

| is the solid vertical bar (U+007C), used for pipes and logical OR. ¦ is the broken bar (U+00A6), a separate character with a gap, rarely used today. They are not interchangeable.

Can I use the vertical line in a sentence?

Yes, but it is not standard punctuation. In prose, it is usually replaced by words like “or” or “and.” In technical writing, it may appear in code snippets or tables. For example: “The command cat file | grep word uses a pipe.”

Is the vertical line the same as the slash?

No. The forward slash (/) and backslash (\) are different characters with different uses. The vertical line is perpendicular to the baseline, while slashes are angled. They are not interchangeable in most contexts.