It's known as an underscore, hyphen, or even a long dash. We're referring to the underscore symbol "_", which is so often used online. In this post, we'll explain how to type an underscore on your computer , since the method isn't always the same on all keyboards.
First, let's review the main uses of this sign. Then we'll see what options we have to write it, either with a computer keyboard (Windows or Mac) or from a mobile phone.
As we show in the following paragraphs, the way to write the hyphen or underscore will depend mainly on the operating system installed on our device, but also on the layout of our keyboard and the language settings.
What is the purpose of the underscore in a text?
The situations in which we will need to write an underscore or underscore when we are using the computer or mobile phone may be the following:
- To replace spaces between words when the program does not support themA very common example is when we need to create an email address and want to separate the first and last name. For example: [email protected]
- Also used When the device we are using does not allow inserting quotation marks or lacks italic format. In this case, the underscore replaces the quotation marks. For example: _Week 1_
- Finally, it is suitable for use in the forms to fill in, when blank spaces must be left to fill in. For example: First name _________ Last name_________________ .
As you can see, the underscore has more uses than it may seem at first glance. It is worth knowing how to use it. So let's see how to use it:
Putting an underscore on a Windows keyboard
First, we explain the method for inserting the underscore on a Windows keyboard, which is also extensible to most keyboards:
- To begin, you need to locate the key Shift (or Shift), which usually appears on these keyboards as an upward-pointing arrow symbol.
- Then we locate the underscore key (_)), which is located on the same key as the regular dash ( ), although marked at the top of the key.
- Once both keys are located, you must press Shift + underscore to write the underscore like this.
Important: If you're using an English, French, or any other language keyboard besides Spanish, the method is exactly the same, although the position of the underscore might be different. This post explains how to change your keyboard language settings.
Another option we can use is the ASCII code ( American Standard Code for Information Interchange ), which, by the way, has combinations for almost any action we want to perform with a keyboard. In this case, inserting an underscore, the key combination we should use is Alt + 9 + 5.
Putting an underscore on Mac and Linux keyboards
Although this blog focuses on Windows, if you ever find yourself using a Mac, here's how to type an underscore: simply hold down any of the Shift keys (the ones with an upward arrow) while pressing the underscore key. It's exactly the same as on Windows.
The method varies for Linux computers . It's slightly more complex. To perform this action, you need to use the keyboard shortcut Ctrl + Shift + u. Then, while still holding these keys down, type the code 5F. Finally, release all the keys, and the underscore will appear.
Setting the bar low on Android and iOS
There is no single method, as each manufacturer applies its own and sometimes it changes depending on which version of Android is used. These are the most common methods:
- Holding down the key "Y" (underscore appears as a secondary option).
- By pressing the key marked "!#1» (in other models it may be «?123″ or “123” to open the special button options, where we will see (_).
- Simply by holding down the space bar for a few seconds.
With some minor variations, these methods are equally valid for iPhone and iPad keyboards.
Other resources

Finally, if the methods explained above don't work, there are a few tricks you can use to type the underscore. Here are some ideas:
- Copy and paste: Copy the underscore from some text we have on hand and paste it in the place where we want to use it.
- Open the virtual keyboard or floating keyboard (option only available in Windows 10 and Windows 11) and use the key combination Shift + «-«. Here We explain how to do it.
Table of Contents
