Skip to content
TextLib

How to Type the Pipe | Symbol

Keyboard shortcuts for Windows, Mac, Chromebook, iPhone & Android. Type or copy the pipe character instantly.

Pipe & Vertical Line Characters to Copy

Click any character to copy instantly

The pipe symbol | (also called vertical bar, vertical line, or bar character) is essential in programming, command-line interfaces, and logical expressions. It serves as the pipe operator in Unix/Linux shells, the OR operator in many programming languages, and appears in table formatting and mathematical notation.

Despite its importance, many users struggle to find the pipe key on their keyboard — especially on international keyboard layouts where its position varies. On US keyboards, it shares a key with the backslash (\), but on German, UK, and other layouts it can be in unexpected places.

This guide shows you exactly how to type the pipe symbol on every major platform and keyboard layout. All characters on this page are Unicode text that works everywhere — in code editors, terminals, documents, and social media.

When to reach for how to type pipe symbol

How to Type the Pipe | Symbol isn't the kind of tool you use every day — it's the kind you reach for at the exact moment a plain text editor runs out of options. A word counter ignores social-media character limits; a case converter doesn't know CamelCase from kebab-case; a base-64 encoder isn't installed on your phone. This page solves one narrow problem well, and it does so without a round-trip to any server: every transformation happens in the browser tab, so the text you paste stays on your device.

The speed difference is measurable. Paste a 10 000-word document and the output updates as you type — there's no latency, no queue, no sign-up wall. Because the output is ordinary Unicode text, it pastes into any app that accepts keyboard input: chat windows, forms, spreadsheets, documents. If you use how to type pipe symbol often, bookmark this page and share the URL with colleagues — their session state will look identical to yours, cache lifetime a full year, page weight under 150 KB.

Pipe Symbol FAQ

The alt code for the pipe symbol | is Alt+124. Hold the Alt key, type 124 on the numeric keypad, then release Alt. Make sure Num Lock is enabled. The broken bar ¦ uses Alt+0166.

The pipe | has many uses: in programming, it serves as the bitwise OR operator (a | b) and logical OR (a || b). In Unix/Linux terminals, it chains commands by sending the output of one command to the input of the next (ls | grep txt). In mathematics, it denotes absolute value |x|. In tables, it separates columns.

The vertical line | (U+007C) is the standard pipe character used in programming and command lines. The broken bar ¦ (U+00A6) is a separate character with a gap in the middle. On some older keyboards and displays, the pipe key actually showed a broken bar, but today they are distinct Unicode characters with different code points.

On German Windows keyboards, press AltGr+< (the less-than key, located to the left of Y). On German Mac keyboards, press Option+7. The pipe symbol is not printed on all German keyboard layouts, but these shortcuts work reliably.

On most laptops, Shift+Backslash (\) types the pipe |. If your laptop lacks a dedicated backslash key, try Fn+Alt+124 using the embedded numpad (the keys with small numbers on J, K, L, etc.). You can also copy the pipe from this page or use the Character Map (Windows) or Character Viewer (Mac).

Yes! The pipe | is a standard ASCII character (U+007C) that works everywhere: social media, emails, messaging apps, documents, and any website. It's one of the most universally supported characters and displays correctly on all devices and platforms.

Copied!