Vertical Bar on the Keyboard: Uses, Functions, Writing, and a Complete Guide to Mastering the Pipe Symbol

Last update: 3 May 2025
  • The vertical bar (|), also called a vertical bar or pipe, is an essential symbol in computer science, mathematics, linguistics, design and publishing.
  • Learn how to type the vertical bar on Windows, Mac, Linux, mobile phones, and tablets, as well as advanced keyboard shortcuts for both physical and virtual keyboards.
  • Discover its practical applications: from separating commands in programming to its use in dictionaries, poetic meter, wiki editing, and graphic design.

vertical bar on the keyboard, uses and functions

The vertical bar on the keyboard , also known as the pipe , is a fundamental symbol for modern digital writing. Its usefulness spans computing , programming , graphic design , linguistics , mathematics , lexicography , and numerous other technical and creative disciplines. While many people encounter it frequently without fully understanding its potential, mastering the vertical bar is an advantage for increasing your keyboarding efficiency , improving accuracy in professional documents , and facilitating tasks on both computers and mobile devices.

In this comprehensive and up-to-date guide you will learn exactly what the vertical bar is, how to insert it in different operating systems and keyboards, what its orthotypographic rules are, how it works in programming and mathematical languages, and why it is such a valued resource for separating and organizing content, both visually and technically.

What is the vertical bar and how is it represented?

vertical bar on the keyboard, complete guide

The vertical bar is graphically represented by the symbol | , a simple, highly versatile vertical straight line. It is known in Spanish as a " pleca" and in English as a " pipe ." Its technical designation includes variants such as "barra vertical" and "pipe ." In computer codes, the vertical bar has a key assigned value: ASCII decimal 124 (hexadecimal 7C), Unicode U+007C , and appears as standard on almost all computer keyboards and digital systems.

There is also the double vertical bar (||), called the double bar , which has specialized applications in linguistics, programming and mathematics, and a related symbol in extended ASCII called the split vertical bar (¦, ASCII 221), although its use is much less.

The simplicity of this character, barely a straight line, is the key to its success: its simple design makes it a universally recognizable sign and easy to distinguish in any editorial, technical or aesthetic context.

Main uses and functions of the vertical bar (pleca)

vertical bar on the keyboard uses

The vertical bar is far from being a secondary character: it's a true wildcard that facilitates the separation, organization, and delimitation of blocks of information in technical, scientific, and creative texts. Its main applications include:

  • Computer science and programming: The vertical bar is essential for commands in Unix/Linux and other systems, since it allows connecting the output of one program with the input of another (pipes), facilitates the use of logical operators (OR y bitwise OR), delimits alternatives in regular expressions and separates elements into scripts and arguments. For example, in bash: ls | grep archivo.
  • Math: It serves as a notation for the absolute value (|x|), The vector norm (||v||) and in set theory it indicates divisibility (a | b means "a divides ab"). You can also separate elements in arrays or delimit functions.
  • Linguistics and phonetics: Implements short breaks within a statement in phonetic transcriptions (Pablo | arrived late); the double fold indicates long pauses or paragraph changes. In lexicography, separates meanings of a word in dictionaries: meaning 1. | 2. | 3.
  • Poetic meter and literature: It marks the separation between the metrical feet of a verse or it can indicate caesuras in poetry: -uu | -uu | -uu | -u.
  • Graphic and editorial design: Works like visual delimiter elegant, separating data into cards, brochures, signatures, website headers, and navigation menus: Home | Services | Contact.
  • Wiki and digital edition: Allows you to modify the text of internal links on platforms such as Wikipedia: ].
  • Printing and philology: When editing works, mark paragraph changes or editorial breaks within quotations and critical texts.
  • Other technical contexts: It can act as an alternative substitute for the bar (/) in the arrangement of verses in a line or demarcating parts of a complex textual formula or structure.

La double vertical bar (||) has specific uses: it delimits long breaks o major separations In linguistics and poetry, it represents the logical operator OR in a multitude of programming languages ​​such as JavaScript, PHP, C or Java (a || b), and in mathematics can designate vector norms.

Codes, codifications and technical curiosities

The vertical bar is conveniently standardized in digital encoding systems, ensuring compatibility across all devices and applications. It appears in:

  • ASCII: decimal 124, hexadecimal 7C (| in HTML).
  • Unicode: U+007C.
  • ISO/IEC 8859-1: hexadecimal 7C.
  • ISO/IEC 8859-1: hexadecimal 7C.
  • Shift-JIS and other Eastern encodings: the value 1-01-35 is usually assigned.

In HTML and markup languages, it is advisable to write the code | to avoid browser errors, especially in contexts where the vertical bar can function as a special separator or delimiter within tables or data structures. Remember that the symbol split vertical bar (¦, Extended ASCII 221) is a different character and should not be confused with the standard vertical bar.

How to type the vertical bar on the keyboard on all systems and devices

vertical bar mobile keyboard guide

Type a vertical bar on a computer (PC): Windows, Mac, and Linux

The method for inserting the vertical bar varies depending on the operating system and keyboard language:

  • Spanish keyboards (Windows):
    • Balance AltGr + 1 (key 1 on the top row).
    • On keyboards where it does not appear, use Alt + 124 on the numeric keypad (num lock on) to generate the ASCII character.
    • On some laptops, it may be necessary to activate the virtual numeric keypad with Fn + NumLk and then Alt + 124 using the keys assigned to numbers on the right side of the keyboard (for example, Alt + JKU, where J=1 K=2 U=4).
    • Another variant: on keyboards with alternative symbols next to the 1, look for the slash on that key.
  • English Keyboards (Windows and Mac):
    • Press Shift along with the key to the left of Enter, which usually has the vertical bar and the backslash (\).
  • Mac (macOS):
    • With a Spanish keyboard, normally use Option (⌥) + 1. On some models, test Option +7 o Shift + Option + L.
    • On English keyboards, Shift + key with \ and | (usually just below the delete key).
  • Linux:
    • AltGr + 1 in most Spanish configurations.
    • You can also enter the Unicode code with Ctrl + Shift + u, then type 7c and press Enter to insert the character.
    • With xbindkeys or other utilities, you can assign custom shortcuts.

Advanced customization: If your physical keyboard lacks the shortcut, you can remap infrequently used keys using Microsoft Keyboard Layout Creator , SharpKeys (Windows), AutoHotkey, or dedicated customization scripts. This is especially useful for power users, designers, and programmers who need quick access to the vertical toolbar.

How to type the vertical bar on Android, iOS, tablets, and virtual keyboards

  • Default Keyboards (Android/iOS): Balance ? 123 o # + = to access the symbols panel. Look for the vertical bar between punctuation marks, usually next to the semicolon, question mark, or forward slash.
  • Third Party Keyboards: Apps like Gboard, SwiftKey o Shortcuts allow for faster access and customization of the vertical bar location in the symbol panel or by holding down a specific key.
  • Shortcuts and substitutions: You can create shortcuts so that a custom combination (for example, typing "barv") is automatically replaced by the character |This is configurable on most keyboard systems and apps.
  • Copy and paste: If your keyboard doesn't have a shortcut, copy the vertical bar (|) from anywhere and paste it where you need it.
  • Tablets and touch devices: Access is similar to that on mobile devices; the vertical bar is always present in the symbol panels of virtual keyboards. If you don't see it, switch to the symbol page.

Some keyboards allow you to increase the size of the keys or rearrange the layout of symbols to prioritize the ones you use most, which is useful for users who need to write code or edit technical text from a mobile phone or tablet.

Orthotypographic rules for the vertical bar and its correct use in texts

vertical bar in language, phonetics and design

The vertical bar is an auxiliary punctuation mark . Its use is subject to certain rules:

  • Spacing: According to the orthotypographic standard, it is recommended leave a space before and after of the vertical bar, unless the particular convention of a technical, mathematical, or programming language indicates otherwise. Example: Address | Email | Phone.
  • Linguistics and phonetics: Indicates short breaks in sentences and, using double slashes, long pauses or paragraph breaks. Example: The group arrived late | however, the meeting continued.
  • Versification: Separate metric feet in poetry and structure the verses: -uu | -uu | -uu | -u (Latin tetrameter).
  • Lexicography: It is the official meaning separator in printed and digital dictionaries: word. f. Definition 1. | 2. f. Definition 2. | 3. f. Definition 3.
  • Design, data and web navigation: Separate blocks of information visually: Contact | Legal Notice | Privacy Policy.
  • Double vertical bar (||): Used in philological contexts to indicate long pauses or major separations, and in programming as a logical disjunction operator.
All the functions of the USB port on Android TV
Related articles:
All the advanced features and uses of the USB port on Android TV: A complete guide to making the most of your Smart TV

The broken vertical bar symbol (¦) is only used in very specific contexts, such as in some typographic tables. It should not be confused with the standard use of the single vertical bar.

Examples and advanced applications of the vertical bar in each discipline

The versatility of the vertical bar is especially noticeable in specific cases. Here are some practical examples of its advanced use:

  • In programming:
    • Unix/Linux Shell: cat archivo.txt | grep palabra (connects the output of cat to the input of grep).
    • Logical operators: if (a || b) (logical “or” check).
    • Regular expressions: regexp = /foo|bar/ (alternative between foo and bar).
  • In mathematics:
    • Absolute value: |-3| = 3
    • Vector norm: ||v|| denotes the length of a vector.
    • Divisibility: a | b (a divides ab).
    • Separator in matrices: (a b|c d)
  • In digital edition and wiki:
    • Column separator in tables: {| class="wikitable" |+ Título | ... |}
    • Custom link text: ]
  • In graphic design:
    • Visual separator in web menus: Home | Blog | About us | Contact
    • Business cards: Name | Position | Phone
    • Headings and typographic brand structures.

In printing, the vertical bar has also been used horizontally under titles or to separate two short texts on the same line, although this use is more residual in modern digital publishing.

How to insert a vertical bar in HTML and other languages

Since the vertical bar can have special functions in HTML and other markup languages, you must ensure you use the corresponding code :

  • HTML: Usa | for the standard character.
  • Extended ASCII: 124 for vertical bar |, 221 for split bar ¦.
  • Unicode: U+007C.
This is an example of text with a vertical bar: |

The result will be:

This is an example of text with a vertical bar: |

Vertical Bar Frequently Asked Questions (FAQ)

  1. Where is the vertical bar located on the keyboard?
    On Spanish keyboards it is usually in AltGr + 1 or next to the number 1 key. On English keyboards, next to Shift and the backslash key, usually to the left of Enter. On virtual keyboards, it accesses the symbol panel.
  2. What is it used for in programming?
    As a logical operator OR (||), command separation, delimiter in regular expressions or pipes on Unix/Linux systems. More details on advanced programming uses can be found in All the functions of the USB port on Android TV.
  3. What are common mistakes when using the vertical bar?
    Confusing it with the backslash (\), do not leave spaces in formal texts according to orthotypographic convention or use the split bar (¦) instead of the standard vertical bar.
  4. What is the difference between vertical bar and split bar?
    La split bar (¦) is a different symbol, encoded as 221 in extended ASCII, and rarely used outside of highly technical contexts. The vertical bar is the universal and standard symbol for all the uses described.
  5. Can access to the vertical bar be customized?
    Yes, using keyboard customization apps or mobile overrides, you can remap the vertical bar to more comfortable keys based on your typing needs.
  • Customize your physical or virtual keyboard: Use tools like AutoHotkey, Microsoft Keyboard Layout Creator, SharpKeys, or Android/iOS features to map the vertical bar to easily accessible keys.
  • Choose specialized virtual keyboards: If you program or edit technical text on mobile, install keyboards like Gboard, SwiftKey, or similar that allow shortcuts and smart vertical bar replacement.
  • Query ASCII and Unicode tables: Useful if you work on systems with character restrictions or non-standard encodings.
  • Avoid display errors: Use code | in HTML and check the compatibility of the font where the vertical bar is displayed.
  • Remember the orthotypographic rules: Leave spaces where the context requires it to facilitate reading and comply with editorial standards.

The vertical bar is much more than just a symbol on the keyboard. Its usefulness and presence are constant across multiple disciplines, enhancing organization, clarity, and efficiency in any digital or text-based project. From terminal commands and programming scripts to mathematical formats and visual and linguistic separators, mastering the vertical bar allows you to get the most out of your keyboard and digital tools, facilitating both text editing and innovation in visual communication, programming, and design. Becoming familiar with all its access methods and advanced uses makes the difference between the casual user and the digital expert, making the vertical bar a key ally in the professional and creative environment.