Search Authority

How to Type the Vertical Pipe Symbol | Quick Keyboard Shortcut Guide

Learning how to type vertical pipe symbol with your keyboard shortcut key streamlines coding, configuration, and documentation tasks. This guide explains the primary methods acr...

Mara Ellison Aug 08, 2026
How to Type the Vertical Pipe Symbol | Quick Keyboard Shortcut Guide

Learning how to type vertical pipe symbol with your keyboard shortcut key streamlines coding, configuration, and documentation tasks. This guide explains the primary methods across common operating systems and offers practical tips for quick access.

Consistent shortcuts reduce errors and boost efficiency when entering the pipe character in terminals, scripts, or configuration files. The following sections organize techniques by platform and context for easy retrieval.

Platform Shortcut Key Description Works In
Windows Hold Alt, type 124 on numeric keypad, release Alt code for vertical bar Most editors, command prompts
macOS Shift + \ (backslash key) Standard key produces pipe Terminal, text editors, shells
Linux Shift + \ or AltGr + 124 Depends on layout; US QWERTY uses backslash key Terminal, GUI apps, shells
On-Screen Keyboard Tap Alt keys then click numeric keys Mouse-driven Alt code entry Any Windows app

Typing on Windows Systems

Using Alt Code on Full Keyboard

Press and hold Alt, then type 124 on the numeric keypad, and release Alt. This generates the vertical pipe symbol in most Windows applications.

Laptop and Alternative Layouts

On laptops without a numeric keypad, activate NumLock using Fn + NumLock or an on-screen keypad. Use the on-screen keyboard or Alt + 124 sequence when a dedicated numeric pad is unavailable.

Typing on macOS

The macOS US keyboard places the vertical pipe on the backslash key. Holding Shift and pressing \ produces the pipe character reliably in Terminal, scripting environments, and text editors.

Typing on Linux and International Layouts

On standard US Linux layouts, Shift + \ outputs the pipe. International users may need AltGr + 124 or a compose sequence. Check your Input Method Editor settings if the expected character does not appear.

Efficient Workflows and Tooling

  • Use Shift + \ on macOS and Linux for fast entry without memorizing codes.
  • On Windows, assign an AutoHotkey script to generate the pipe if the keypad is unavailable.
  • Enable on-screen keyboard shortcuts on laptops for quick Alt code access.
  • Confirm your locale and keyboard layout to avoid mismatched characters in pipelines and regex patterns.

FAQ

Reader questions

Why does Alt 124 not work on the top-row numbers on Windows?

The numeric code requires the numeric keypad, not the row above letters. Use the separate numeric keypad or enable NumLock on laptops.

What should I do if Shift + backslash produces nothing on macOS?

Verify your Keyboard settings use a U.S. layout or an English-based layout that includes the standard pipe character.

Can I map a custom shortcut for the vertical pipe in my editor?

Many editors allow custom keybindings; assign a sequence that inserts the pipe symbol to streamline repetitive tasks.

Will these shortcuts work in remote sessions or virtual machines?

Passthrough settings may affect keys; ensure your remote client forwards the Alt , Shift , and backslash keys correctly.

Related Reading

More pages in this topic cluster.

Word Scramble Worksheets 15 Free Printables from Worksheetscom

Word scramble worksheets from 15 worksheetscom provide targeted vocabulary practice for students and language learners. These printable activities help users recognize letter pa...

Read next
Circle of Willis Anatomy: The Ultimate Visual Guide

The circle of Willis anatomy serves as a critical cerebral arterial ring that maintains balanced cerebral perfusion. Understanding its precise arrangement helps clinicians antic...

Read next
Simple Handmade Birthday Cards for Husband: Easy & Thoughtful DIY Ideas

Handmade birthday cards for husband add a personal, heartfelt touch to your celebration while showing you truly pay attention to what he loves. Simple designs keep the focus on...

Read next