Take the 2-minute tour ×
English Language & Usage Stack Exchange is a question and answer site for linguists, etymologists, and serious English language enthusiasts. It's 100% free, no registration required.

In computer science, you should have a username or a user name or a user-name and a password to be able to log into the system.

Which one is the correct spelling?

share|improve this question
what about log onto the system? –  Preet Sangha Sep 28 '11 at 7:46
I believe the correct wording for the logging based alternative would be "log into the system". –  bernk Oct 11 '12 at 12:00
@bernk Since you can both log into a system and onto a system both would be fine. Most sites have you log in, though some systems use log on since you are using the system (on it) not maintaining or modifying the system (in it). I doubt most people would even notice the difference. Sign vs Log is covered at english.stackexchange.com/questions/2002/logging-in-or-on –  Trisped Nov 11 '14 at 23:30

9 Answers 9

up vote 60 down vote accepted

The OED gives ‘username’ and has three citations, from 1971, 1997 and 2007, in support.

share|improve this answer

The correct spelling in this case is username.

  • The username is the (usually unique) thing you type in with your password, for example: bobsmith66.

  • The user name is the name of the user, the user's real life name, for example: Bob Smith. User name is sometimes used for username, but occasionally it makes a difference, so be clear and avoid the ambiguity. (Better still, use full name when you want them to enter Bob Smith.)

  • User-name is a variant of username, but this is rarely used if ever.

share|improve this answer
Agreed with this +1 :) –  InfantPro'Aravind' Apr 2 '12 at 15:10
I somewhat agree with this distriction, but I would recommend using 'full name' instead of 'user name' when you want the user to enter Bob Smith. –  Jan Aagaard Dec 5 '12 at 10:54
@JanAagaard: Good point, I've included it in the answer. –  Hugo Dec 5 '12 at 11:16
How about user's name? user's full name? –  Joraid Feb 22 '14 at 11:45

Obligatory ngram:

share|improve this answer
This supports the answer I was going to give. "Username" and "User Name" are both relatively common; "user-name" is rare. –  KeithS Sep 27 '11 at 18:23
I get a completely different graph when I click the link –  user107729 Mar 15 '13 at 10:36

I've seen both "username" and "user name" used widely. Both are acceptable. As far as I know, techies mostly prefer "username". "User-name" just seems awkward.

share|improve this answer
+1. I could have posted an answer, but it would have been essentially the same as this. –  Neil Sep 27 '11 at 9:55
However I'd argue that user name is the user's birth certificate name in real life, rather than the unique string for logging into the system. –  Hugo Sep 27 '11 at 14:18
@Hugo, As a software developer, I'd argue that "user's name" or "real name" is their real life name. But software developers sometimes forget who's using the software. –  Hand-E-Food Sep 28 '11 at 0:41
@Hand-E-Food As a software developer, I agree "user's name" or "real name" is their real life name, but in addition to "user name". I recommend to avoid the ambiguity and stick to "username" for the unique login ID (and perhaps "full name" for the real name). –  Hugo Sep 28 '11 at 8:11
@Hugo Not quite. The style guidelines exist because the “correct” English word is “username”, not “user name”. In particular, this style guide is regardless of the programming language. The programming language dependent part merely specifies whether you’d write the identifier as userName or UserName or user_name (that is, whether to use camelCase, PascalCase or whats_er_name) but several style guides additionally caution that “username” is a single word and should not be written as either of the above. –  Konrad Rudolph Sep 28 '11 at 8:18

Like most things in language, it depends upon context.

If you are writing a journal for a computer science publication, username is acceptable.

If you are writing the user's manual or labeling a field, I would use "user name" since the users may or may not be well versed in computer science, and it just feels less complex.

share|improve this answer
No, as @skst mentioned, the correct general term should be "user id". –  Mark Hurd Sep 28 '11 at 12:23
@Mark, I have no problem with using "User ID" or "User's identification code" when referring the the user's identification. I am, however, very big on consistency. If the development teams uses "UserName" as a field name and variable name inside the code, reference these elements in technical documents, there is a better than even chance that this phraseology will leak through to the end user. In that case, I'd prefer to use the same term they used so there won't be a document referring to the same item by two terms. –  Andrew Neely Sep 28 '11 at 13:53
@MarkHurd in UNIX, at least, your username and userid are different. John Smith's username might be "smithj" and his userid be 1043. –  slim Feb 2 '12 at 12:10
@slim: Yes, I was thinking of Windows where there is a concept of a user's name, a user id and, very much behind the scenes, but most similar to the Unix uid, the user's sid. –  Mark Hurd Feb 2 '12 at 15:08

In terms of computer science , username is mostly used as a standard. I have always used that.

share|improve this answer

The O.E.D. often defines words merely because they're commonly used, regardless of their correctness. (For example, I don't consider "LOL" or "ginormous" to be words.)

I realize that it is often used to describe "the thing you type in with your password," but that is more correctly called the user ID since it is not the actual name of the user.

In my opinion, it's a compound noun and the correct spelling is "user name" as in "the name of the user." Just because we can delete the space between two words doesn't mean we should, although plenty of compound nouns do. Language evolves, of course, and it's just as likely that we're in the middle of this word's evolution. In a few years, I may change my mind and edit this entry.

share|improve this answer
You may not consider “LOL” a word but that doesn’t make it less one. Remember, English isn’t a prescriptivist language. Words exist because they are used, not the other way round. –  Konrad Rudolph Sep 28 '11 at 8:07
You're right that a "username" is more correctly called a "user id", but I believe that "fight" is lost already and "user name" is only the correct spelling of "the name of the user". –  Mark Hurd Sep 28 '11 at 12:20
I'd also point out that "LOL" is an initialism. Again, not a word. Yes, words exist because they're used, but how much does a construct have to be used before it's deemed a word? And who's the arbiter doing the deeming? These are subjective requirements, and my point was merely that I don't think the O.E.D.'s bar is high enough. –  skst Sep 28 '11 at 16:58
"I'd also point out that "LOL" is an initialism. Again, not a word. " Is lol a word? Is radar a word? What about scuba and laser? Are acronyms really not words? You are correct that the OED records common usage, not "correctness", because there is no official arbiter of "correct" English. –  Hugo Oct 29 '11 at 9:30
@skst fwiw, I think people are increasingly saying "lol". Just for the lulz, innit? –  slim Feb 2 '12 at 12:11

In computer terminology use the word "username" and/or "filename", always. For variable/class names in computer coding also use "username/Username" and/or "filename/Filename" and never "userName/UserName" and/or "fileName/FileName".

share|improve this answer
-1, for an answer that adds nothing to any of the currently posted answers, and is several months late. –  Jay Elston Feb 4 '12 at 1:50
My answers that I gave here are the most perfect answers you can get on this subject. Read them again and follow the instructions that I have so lovingly offered to you. –  John Feb 4 '12 at 13:31
@JayElston: If you don't like an answer, by all means downvote. But what does lateness have to do with anything? Not everyone was a member when a question was asked, and I've seen plenty of questions where a late reply did add value to the discussion – for example, this one. –  J.R. Apr 7 '12 at 23:07

From the software-development perspective, username and userName are used the most. Username is used in the user interface and userName with an uppercase N is used in the code.

share|improve this answer
In the code it depends on your language/team's coding conventions, and is irrelevant here. –  Hugo Sep 27 '11 at 14:26

protected by tchrist Aug 13 '14 at 14:42

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.