What is the pipe symbol? The pipe symbol (|) is a straight vertical line that sits on the keyboard, usually on the same key as the backslash. It is also called the vertical bar, the vertical line symbol, or simply the bar. You meet the pipe in website titles (Grammar Lessons | Home), in mathematics (|x| for absolute value), in programming (|| for or), and in the command line, where it joins one program to the next and gave the symbol its usual name.
This page explains the pipe character from the start: its names, its history, its uses in writing, mathematics, linguistics, and computing, how to find the pipe key on keyboards in different countries, how to avoid mixing it up with the letters I and l and with the broken bar, and the rules of style for using it in titles. It ends with 30 exercises and a 10-question quiz.

The pipe is the upright line |. Think of it as a divider. It separates things in a title, joins commands in a computer, means or in code, and shows the size of a number in math.
Why it matters: It shares a key with the backslash on most keyboards, and you type it by holding Shift. If you cannot find it, you will find the steps in this page.
Summary: The pipe symbol (|), also called the vertical bar or vertical line, is ASCII character 124 (Unicode U+007C VERTICAL LINE). In writing it separates parts of a title or menu; in mathematics it marks absolute value, divisibility, and conditional probability; in linguistics it marks a boundary in phonetic transcription; in computing it passes the output of one command to another (a pipe), means or (||), and builds Markdown tables. On a US keyboard, hold Shift and press the backslash key.
- Names: pipe, vertical bar, vertical line, bar.
- Math: |x|, a|b, P(A|B); code: ||, command pipes, regex alternation.
- Titles: a spaced pipe separates parts of a title; use it sparingly.
- US keyboard: Shift + the backslash key; Windows Alt code: Alt + 124.
What You’ll Learn
- 1. What Is the Pipe Symbol? Names and Appearance
- 2. History: Where the Pipe Came From
- 3. Uses of the Pipe in Writing, Mathematics, and Linguistics
- 4. Uses of the Pipe in Computing and Programming
- 5. How to Type the Pipe Symbol: Finding the Pipe Key on a Keyboard
- 6. Style Rules: Using the Pipe in Titles and Text
- 7. Common Mistakes with the Pipe Symbol
- 8. Exercises
- 9. Test Your Knowledge
- 10. Frequently Asked Questions
- 11. Conclusion
1. What Is the Pipe Symbol? Names and Appearance
| Property | Pipe symbol |
|---|---|
| symbol | | |
| common names | pipe, vertical bar, vertical line, bar |
| Unicode name and code | VERTICAL LINE, U+007C |
| ASCII code | 124 (hexadecimal 7C) |
| HTML entity | | or | |
| keyboard | shares a key with the backslash on a US keyboard; type it with Shift |
| read aloud as | pipe; vertical bar; bar |
| direction | upright, with no lean |
| Easily confused with | What it is | How to tell them apart |
|---|---|---|
| capital I and lowercase l | letters that can look like a bar in some fonts | the pipe is usually taller and thinner and sits lower, below the baseline, in many fonts |
| numeral 1 | a digit | it has a flag at the top in most fonts |
| broken bar (¦, U+00A6) | a bar with a gap in the middle, printed on some keyboards | the gap; on some UK keyboards the pipe key shows the broken bar but types the solid bar |
| double vertical line (‖, U+2016) | a double bar used for norms and in phonetics | two lines |
| box-drawing line (│, U+2502) | a line character used to draw tables in text | a different character that joins to others vertically |
| backslash (\) and forward slash (/) | slanted lines | they lean |
The word pipe is the name that came from computing. In mathematics and typography, the name vertical bar or vertical line is preferred. If you are reading code and someone says pipe it into grep, they mean to send the output of one command to another using the | symbol.
2. History: Where the Pipe Came From
Vertical rules and bars have been used in printing for centuries, for example in lists of readings in liturgical books and in tables. The pipe as it is known on the keyboard comes from computing. The idea of connecting programs so that the output of one feeds the next is credited to Douglas McIlroy at Bell Labs, who proposed it in the 1960s, and pipes were added to the Unix operating system in 1973. The vertical bar was in the ASCII character set from the start as code 124, and it became the standard symbol for this operation.
| Period | Use of the vertical bar |
|---|---|
| printing from early periods | rules and bars in tables, lists, and liturgical books |
| 1960s | included in ASCII as code 124 |
| early 1970s | the Unix pipe connects programs (the idea credited to McIlroy; implemented in 1973) |
| 1970s and 1980s | used for logical or bitwise OR in the C language |
| 1990s | used in regular expressions and web page titles |
| 2000s | Markdown tables and pipe-delimited data files become common |
| 2010s and later | pipe operators in programming languages such as R and Elixir |
The details of the early history of Unix pipes are well documented by those who built the system; some other details, such as the first use of the bar in web page titles, are hard to date exactly.
3. Uses of the Pipe in Writing, Mathematics, and Linguistics
| Use | Example | Notes |
|---|---|---|
| separator in titles and headers | Types of Sentences | Grammar Lessons | common on websites; use a space on each side |
| separator in navigation and menus | Home | About | Contact | a list of links |
| separator in social media bios | Teacher | Writer | Editor | informal |
| absolute value | |−5| = 5 | mathematics |
| divisibility | 3 | 12 (3 divides 12) | number theory |
| conditional probability | P(A|B) | the probability of A given B |
| set-builder notation | {x | x > 0} | read as such that |
| determinant of a matrix | |A| | mathematics |
| norm and parallel lines | ‖v‖, a ‖ b | a double bar |
| phonetic transcription | a single bar marks a minor break, a double bar a major break (IPA) | linguistics |
| grammar rules (Backus–Naur form) | noun → cat | dog | the bar means or |
| poetry | | to mark a pause (a caesura) in scansion | used by scholars of verse |
| proofreading and marking | a vertical bar can mark a boundary | varies |
In running text, the pipe is not a punctuation mark of ordinary English, and no major style guide treats it as one. It appears in the technical and mathematical uses above, and as a decorative separator in titles and menus. In a sentence, use a comma, a dash, or the word or instead. The marks that a writer does use to separate and to link are covered in the chapters on advanced punctuation and on typography and grammar.
4. Uses of the Pipe in Computing and Programming
| Context | Use | Example |
|---|---|---|
| Unix, Linux, and macOS command line | a pipe sends the output of one command to the next | ls | grep txt |
| Windows command prompt and PowerShell | the same idea | dir | findstr txt |
| logical OR | || in C, Java, JavaScript, and Bash |
if (a || b) |
| bitwise OR | a single bar combines bits | x | y |
| regular expressions | alternation: match either side | cat|dog |
| Markdown tables | pipes separate columns | | Name | Age | |
| pipe-delimited files | fields separated by a bar | Sam|34|Pune |
| pipe operators in languages | pass a value to a function | x |> f() in R and Elixir |
| Ruby blocks | parameters sit between bars | items.each { |x| puts x } |
| SEO titles | a separator between the page and the site name | — |
The same upright line also appears in programming as a closing mark of structures, and the details vary by language. The other symbol that shares its key, the backslash, is explained on the backslash page, and the grammar of technology terms is in the chapter on grammar and technology.
5. How to Type the Pipe Symbol: Finding the Pipe Key on a Keyboard
| Device or system | How to type | (the pipe) |
|---|---|
| Windows or Mac, US keyboard | hold Shift and press the backslash key (above the Enter key) |
| Windows or Mac, UK keyboard | press the key to the left of Z (marked \ and |, sometimes ¦) |
| Windows Alt code | hold Alt and type 124 on the numeric keypad (with Num Lock on) |
| German keyboard | hold AltGr and press the < > | key |
| French AZERTY keyboard | hold AltGr and press 6 |
| Spanish keyboard | hold AltGr and press 1 |
| iPhone and iPad | tap 123, then #+=, then | |
| Android | tap ?123, then the second symbols page, then | |
| Indian English keyboards | follow the US or UK layout; switch from a Hindi layout to English first |
| web pages (HTML) | write | or | |
| Word or Google Docs | type the key; or use Insert, then Symbol |
| screen readers | read it as vertical bar or pipe |
| If you cannot find the pipe key | What to try |
|---|---|
| Shift + backslash gives a different character | check the input language and layout |
| the key shows a broken bar but you need a solid one | type it anyway: most UK keyboards produce the solid bar |
| the key is missing on a small keyboard | use the Alt code, an on-screen keyboard, or copy and paste |
| you need the pipe in a command and it will not work | check that the terminal uses the same layout as the keyboard |
| you want to copy it | select this character: | |
6. Style Rules: Using the Pipe in Titles and Text
| Question | Guidance |
|---|---|
| Spaces around the pipe in a title? | a space on each side: Page | Site |
| Is the pipe acceptable in running text? | no; use a comma, a dash, a colon, or a word |
| Pipe or dash in a web title? | either; a dash or en dash is more readable aloud; the pipe is a long-established convention for site names |
| How many pipes in a title? | one is usually enough; many make a title hard to read |
| Accessibility? | screen readers may read each pipe as vertical bar; avoid long strings of separators |
| In a citation? | do not use it; follow the style guide |
| In math? | use the symbol exactly as the notation requires, with no spaces inside |x| |
| In menus? | spaced pipes are fine; or use proper list markup |
| In code? | follow the language’s style rules |
| In Markdown? | align or not; the table renders the same way |
The pipe as a visual separator is a design choice, not a rule of English. When in doubt, write the title as a phrase: Pipe Symbol: What It Means rather than Pipe Symbol | What It Means | Guide.
7. Common Mistakes with the Pipe Symbol
| Mistake | Example | Better |
|---|---|---|
| typing a capital I or lowercase l for a pipe | *ls I grep txt | ls | grep txt |
| using the broken bar in code | *a ¦ b | a | b |
| using a pipe as punctuation in prose | *We sell tea | coffee. | We sell tea and coffee. |
| no spaces in a title | *Page|Site | Page | Site |
| too many pipes in a title | *A | B | C | D | E | a shorter title |
| single pipe for logical OR where double is needed | *if (a | b) (may not short-circuit) | if (a || b) |
| a pipe in a Windows file name | *report|final.txt | report-final.txt |
| confusing the pipe key with the backslash key | — | Shift selects the pipe |
| using a pipe where an absolute value needs a different mark in a font | — | check the rendering |
| mistyping with the wrong layout | — | check the layout |
Fix: The Pipe | Symbol | Guide | For | Beginners (a web page title).
- five pipes: too many separators; the title is hard to read and to say.
- Keep one separator: the page topic, then the site name.
- Make the topic a phrase: The Pipe Symbol: A Beginner’s Guide.
- Result: The Pipe Symbol: A Beginner’s Guide | Types of Sentences (an example; the title is invented).
Recap in 12 seconds
Watch the lesson build itself: The pipe symbol is also called the vertical bar; it is used in mathematics, code, and titles, and typed with Shift and the backslash key. The video has no sound.
Exercises
Part A: Names and Appearance (Exercises 1–6)
Exercise 1: Name three names of the | symbol.
Show Answer
Answer: Pipe, vertical bar, vertical line, bar.
Exercise 2: What is its Unicode code?
Show Answer
Answer: U+007C (VERTICAL LINE).
Exercise 3: What is its ASCII code?
Show Answer
Answer: 124.
Exercise 4: Which symbol has a gap in the middle?
Show Answer
Answer: The broken bar (¦).
Exercise 5: Which letters can look like the pipe in some fonts?
Show Answer
Answer: Capital I and lowercase l.
Exercise 6: Which HTML entity shows the pipe?
Show Answer
Answer: | (or |).
Part B: Writing and Mathematics (Exercises 7–13)
Exercise 7: What does |−5| equal?
Show Answer
Answer: 5 (absolute value).
Exercise 8: Read aloud: 3 | 12.
Show Answer
Answer: 3 divides 12.
Exercise 9: What does P(A|B) mean?
Show Answer
Answer: The probability of A given B.
Exercise 10: How is {x | x > 0} read?
Show Answer
Answer: The set of x such that x is greater than 0.
Exercise 11: What does a double bar (‖) mean in phonetics?
Show Answer
Answer: A major break.
Exercise 12: Is the pipe acceptable in running English prose?
Show Answer
Answer: No; use a comma, a dash, or a word.
Exercise 13: How is a pipe used in a title?
Show Answer
Answer: As a spaced separator between the page and the site.
Part C: Computing (Exercises 14–20)
Exercise 14: What does ls | grep txt do?
Show Answer
Answer: Sends the output of ls to grep.
Exercise 15: What does || mean in JavaScript?
Show Answer
Answer: Logical OR.
Exercise 16: What does cat|dog mean in a regular expression?
Show Answer
Answer: Match cat or dog.
Exercise 17: Which symbol separates the columns in a Markdown table?
Show Answer
Answer: The pipe.
Exercise 18: What is a pipe-delimited file?
Show Answer
Answer: A data file whose fields are separated by pipes.
Exercise 19: What is the single pipe in x | y?
Show Answer
Answer: Bitwise OR.
Exercise 20: Who is credited with the idea of Unix pipes?
Show Answer
Answer: Douglas McIlroy.
Part D: Typing (Exercises 21–26)
Exercise 21: How do you type | on a US keyboard?
Show Answer
Answer: Hold Shift and press the backslash key.
Exercise 22: What is the Windows Alt code?
Show Answer
Answer: Alt + 124.
Exercise 23: Where is the pipe on a UK keyboard?
Show Answer
Answer: On the key to the left of Z.
Exercise 24: How do you type the pipe on a French AZERTY keyboard?
Show Answer
Answer: AltGr + 6.
Exercise 25: How do you type it on an iPhone?
Show Answer
Answer: Tap 123, then #+=, then |.
Exercise 26: What if the layout is wrong?
Show Answer
Answer: Switch the input language to match the keyboard.
Part E: Style and Correction (Exercises 27–30)
Exercise 27: Correct: *Page|Site (a title).
Show Answer
Answer: Page | Site.
Exercise 28: Correct: *We sell tea | coffee.
Show Answer
Answer: We sell tea and coffee.
Exercise 29: Correct: *ls I grep txt
Show Answer
Answer: ls | grep txt.
Exercise 30: Shorten: A | B | C | D | E (a title).
Show Answer
Answer: Use one separator: topic | site.
Test Your Knowledge
Ready to check what you learned? Answer all 10 questions, then submit. You need 80% (8 of 10) to pass. Your answers are not stored.
View correct answers and explanations
Question 1: What is another name for the pipe symbol?
✓ Correct Answer: D – vertical bar
The vertical bar.
Question 2: What does || mean in many languages?
✓ Correct Answer: A – or
Logical OR.
Question 3: How do you type | on a US keyboard?
✓ Correct Answer: C – Shift + the backslash key
Shift + backslash.
Question 4: What is the ASCII code of the pipe?
✓ Correct Answer: B – 124
124.
Question 5: What does P(A|B) express?
✓ Correct Answer: A – a probability of A given B
Conditional probability.
Question 6: Which is better in a title?
✓ Correct Answer: C – Page | Site
A space on each side.
Question 7: The broken bar is
✓ Correct Answer: D – a bar with a gap, a different character
A different character.
Question 8: Which command joins two programs?
✓ Correct Answer: B – ls | grep
The pipe.
Question 9: In a regular expression, a|b means
✓ Correct Answer: C – a or b
Alternation.
Question 10: Is the pipe a punctuation mark of ordinary English?
✓ Correct Answer: B – no; it is a technical and design symbol
Not in ordinary prose.
Frequently Asked Questions
What is the pipe symbol?
The pipe symbol (|) is an upright line, also called the vertical bar or vertical line. It separates parts of titles, marks absolute value in mathematics, and passes the output of one command to another in the command line.
What is the vertical bar?
The vertical bar is another name for the pipe symbol (|), the character at ASCII code 124 and Unicode U+007C. In mathematics and typography, vertical bar is the usual name.
What is the vertical line symbol used for?
The vertical line symbol marks absolute value (|x|), divisibility (3 | 12), conditional probability (P(A|B)), and phonetic boundaries, and it separates items in titles and menus.
Where is the pipe key on keyboard layouts?
On a US keyboard, the pipe key is the backslash key above Enter, typed with Shift. On a UK keyboard, it is to the left of Z. On German, French, and Spanish keyboards, it is typed with AltGr and another key.
What is the pipe character in code?
In code, the pipe character sends output to another command in a shell, means or (||) in many languages, and separates alternatives in regular expressions and columns in Markdown tables.
How do I type the pipe with the Alt code?
On Windows, hold Alt and type 124 on the numeric keypad with Num Lock on.
Is the pipe the same as the capital I?
No. They can look alike in some fonts, but the pipe is a separate character (U+007C) and the letters are different characters.
Conclusion
You now know what the pipe symbol is, where it came from, how it is used in titles, mathematics, linguistics, and computing, where to find the pipe key on different keyboards, and how to avoid the common mistakes with it.
Use the pipe as a separator or a symbol, not as punctuation in prose. Next in the series is the tilde.
- The Unicode Consortium. The Unicode Standard. Basic Latin block (U+0000 to U+007F).: the character name and code point.
- Ritchie, Dennis M. “The Evolution of the Unix Time-sharing System.” AT&T Bell Laboratories Technical Journal 63 (1984).: an account of the development of pipes in Unix.
- Salus, Peter H. A Quarter Century of UNIX. Addison-Wesley, 1994.: the history of the Unix pipe.
- International Phonetic Association. Handbook of the International Phonetic Association. Cambridge University Press, 1999.: the use of bars in phonetic transcription.
- Merriam-Webster Dictionary: pipe: the dictionary entry.
Last reviewed: October 29, 2026. How it was made: drafted with AI assistance, then checked with automated tests (structure, links, answer keys, spelling) and against the sources above. A person has not yet read this chapter line by line. Found a mistake? Report it.