The meaning of underscore is a good example of how a small mark can carry a surprising amount of work. The underscore is the low horizontal line you see in usernames, file names, and computer code, written like this: _. It sits on the baseline, below the main line of text, which is why it is sometimes called a low line or an underline character. Understanding the meaning of underscore matters because the character appears in so many different contexts, and it does not always mean the same thing in each one.
In everyday typing, the underscore is most often used to join words where a space is not allowed or would cause problems. In file names, web addresses, and usernames, a space can break a link or be hard to read, so an underscore steps in as a visible joiner. In programming, it has a more technical role, marking private names, separating parts of a variable, or standing in for a value that is not needed. This guide covers the meaning of underscore in each of those settings, so you can recognise it at a glance and use it correctly.
Meaning of Underscore: The Basics
At its simplest, the meaning of underscore is “a character that sits below the line and joins or separates things”. Its position is the clue to its name: while a hyphen sits in the middle of the line and a dash stretches across it, the underscore sits underneath, as if underlining an empty space. On most keyboards you type it by holding Shift and pressing the hyphen key, which is why the two characters share a key. That shared key sometimes causes confusion, but the characters themselves are distinct, with different uses and different meanings.
Historically, the underscore comes from the typewriter era, when typists would type a word, move the carriage back, and type underscores underneath it to create an underlined heading. The character survived into computing because it was already on the keyboard and because it solved a practical problem: computers often treat spaces as separators, so a space inside a single name can split it into two pieces. An underscore avoids that problem while keeping the name readable, which is why it remains common in file names, database fields, and code even today.
Meaning of Underscore in Everyday Writing
In ordinary writing, you will rarely need an underscore, and that is worth knowing in itself. Most style guides do not use it for emphasis or for joining words in prose, where a space or a hyphen is the normal choice. The meaning of underscore in a document is therefore usually practical rather than stylistic: it appears in an email address, a username, a file name, or a web address that has been copied into the text. When you see it there, read it as a joiner, not as punctuation with a grammatical meaning.
There are a few exceptions. In plain-text messages, some people use underscores around a word to suggest underlining or emphasis, writing _like this_ when bold or italic formatting is not available. In forms and templates, a row of underscores can mark a blank to be filled in, as in “Name: ______”. In those cases, the meaning of underscore is “fill this in” or “emphasise this”, and the context makes the intention clear. Outside those settings, though, the underscore is mainly a technical character, not a literary one.
Underscore Versus Hyphen
The underscore and the hyphen are easy to mix up, but they do different jobs. A hyphen joins words in the middle of a line, as in “well-known”, and it can also break a word at the end of a line. An underscore sits below the line and is used where a space would cause a technical problem. If you are writing prose, you almost always want a hyphen or a space. If you are naming a file, a variable, or an account, an underscore is often the right choice. Keeping that distinction clear will prevent a surprising number of small errors.
Meaning of Underscore in Computing and Code
In computing, the meaning of underscore becomes more specific, and it varies by language and by convention. In many programming languages, an underscore in a variable name separates words, so a name like “user_name” is read as two words joined together. This style, often called snake case, is common because it is easy to read and because spaces are not allowed in variable names. A leading underscore sometimes signals that a name is intended for internal use, while a double underscore can have a special meaning in a particular language, so the exact convention depends on the language you are working in.
The underscore also appears in file names, database columns, and web addresses, where it serves the same joining role as in usernames. One practical tip is worth remembering: in web addresses, search engines have historically treated hyphens as word separators more reliably than underscores, so many web guides recommend hyphens for public page addresses and underscores for internal file names. That is a convention rather than a hard rule, but it explains why you see both characters in different places on the web. When you are choosing a name for something other people will search for, a hyphen is often the safer choice.
Meaning of Underscore: Examples in Context
Seeing the character in real examples is the fastest way to fix its meaning in your mind. The table below shows common contexts, what the underscore is doing in each one, and how to read it. Notice how the meaning of underscore shifts slightly from one row to the next, even though the character itself never changes.
| Context | Example | What the underscore does |
|---|---|---|
| Username | alex_smith | Joins two words where a space is not allowed |
| File name | holiday_photos_2024 | Keeps a multi-word name as one unit |
| Variable name | total_price | Separates words in code (snake case) |
| Blank in a form | Name: ______ | Marks a space to be filled in |
| Plain-text emphasis | _important_ | Suggests underlining where formatting is unavailable |
Meaning of Underscore: Frequently Asked Questions
What is an underscore? It is the character _, a low horizontal line that sits on the baseline. It is typed with Shift plus the hyphen key on most keyboards.
Is an underscore the same as a hyphen? No. A hyphen sits in the middle of the line and joins words in prose. An underscore sits below the line and is mainly used in technical names, where a space would cause problems.
Why do usernames use underscores? Because most systems do not allow spaces in a username. An underscore joins the words into a single name while keeping it readable.
What does an underscore mean in programming? It usually separates words in a name, and a leading underscore can signal internal use. The exact convention depends on the programming language.
Should I use underscores in a web page address? For public pages, hyphens are generally recommended, because search engines treat them as word separators. Underscores are fine for internal file names.
Related Guides
Word meanings and language questions often come in groups, and these guides cover related terms in the same clear, example-led style. They are useful if you are building vocabulary, studying language, or simply curious about a word you have just looked up.
For other word meanings, see our guides to deliberative meaning, the meaning of hypebeast, and defining technical meaning. Each one explains the term, gives examples, and shows how it is used in context.
Using the Underscore Correctly in File Names
When you name a file, the meaning of underscore becomes a practical choice rather than a theory. A name such as “summer_holiday_photos” is clear, it survives being moved between systems, and it does not break when it is attached to an email or uploaded to a website. A name with spaces, by contrast, can be converted into a string of percentage signs and numbers in a web address, which looks messy and is harder to read. That is why the underscore remains popular for personal files, even though hyphens are often preferred for public web pages.
Consistency matters more than any single rule. If you use underscores to separate words, use them throughout a folder, rather than mixing underscores, hyphens, and spaces at random. Avoid special characters that some systems reject, keep names reasonably short, and put the most important word first, so files sort in a useful order. A simple system, applied every time, will save you far more time than a clever system you only remember half the time. And if you share files with others, a clear name with underscores is a small courtesy that makes their job easier too.
Conclusion
The meaning of underscore can be summed up in one sentence: it is a low line that joins, separates, or marks something, and its exact job depends on where you see it. In a username or a file name, it joins words where a space is not allowed. In code, it separates words in a name and can signal internal use. In a form, it marks a blank to fill in, and in plain text, it can suggest emphasis. Knowing which of those roles applies in a given context is the key to reading the character correctly.
The next time you meet an underscore, pause for a second and ask where you are seeing it. That single question will usually tell you what it means, whether you are reading a file name, a piece of code, or a message. And if you are the one choosing a name, remember the practical tips in this guide: use an underscore where a space would break something, use a hyphen for public web addresses, and keep your names readable. The meaning of underscore may be small, but using it well is one of those quiet skills that makes your digital life run more smoothly.