How to Do a Straight Vertical Line on a Keyboard

Updated April 17, 2017

The vertical line symbol serves a number of functions, including denoting absolute value and separating or dividing lines of text. Every keyboard for a Mac, Windows or other OS has the ability to create the vertical line symbol and, regardless of the keyboard you are using, the key for this symbol is in the same location. If you want to create a vertical line with your keyboard, you can do so in a few simple steps.

Place the computer's mouse cursor somewhere where text can be entered. This can be in a document, search bar or any other text box.

Press and hold the Shift key on the computer's keyboard.

Press the \ key while holding the Shift key to create the vertical line symbol. The \ key is located just above the Enter key on a Windows keyboard, or just above the Return key on a Mac keyboard.

bibliography-icon icon for annotation tool Cite this Article

About the Author

Alexander Poirier began writing professionally in 2005. He worked as the editor-in-chief of the literary magazine "Calliope," garnering the magazine two APEX Awards for excellence in publication. Poirer graduated from the University of the Pacific with a Bachelor of Arts in English.