Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a limit to the number of allowed characters for Windows computer names? If so, what is the limit?

share|improve this question
I've heard it will handle over 9,000 before you start to see issues. –  Josh K Mar 16 '10 at 20:42
The text field in the dialog for changing the name on XP seems to have a 64 character limit. –  FogleBird Mar 16 '10 at 20:53
The other issue you could run into is UNC paths. There is a max length for UNC paths (256 characters???) so if your machine name is long, and you have long share names, or deep directory structures, you could have issues. –  BillN Mar 16 '10 at 23:13

1 Answer 1

up vote 17 down vote accepted

According to MS KB, maximum length varies based on the name resolution protocol.

NetBIOS computer names:
Minimum name length
1 character.

Maximum name length
15 characters.

DNS computer names:
Minimum name length
2 characters.

Maximum name length
63 characters.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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