{"id":"https://www.namesilo.com/questions/buying-domains/can-a-domain-name-contain-spaces-or-underscores","url":"https://www.namesilo.com/questions/buying-domains/can-a-domain-name-contain-spaces-or-underscores","title":"Can a domain name contain spaces or underscores?","description":"Ordinary ASCII website hostname labels use letters, digits and permitted hyphens, so spaces, underscores, apostrophes and ampersands are not part of…","language":"en","category":"buying-domains","datePublished":"2026-11-17","dateModified":"2026-11-19","answer":"Ordinary ASCII website hostname labels use letters, digits and permitted hyphens, so spaces, underscores, apostrophes and ampersands are not part of that hostname syntax. RFC 1035 §2.3.1 defines the basic rule, updated by RFC 1123 §2.1 to allow an initial digit. General DNS owner names are broader than website hostnames.","body":"Can a domain name contain spaces or underscores?\n\nOrdinary ASCII website hostname labels use letters, digits and permitted hyphens, so spaces, underscores, apostrophes and ampersands are not part of that hostname syntax. RFC 1035 §2.3.1 defines the basic rule, updated by RFC 1123 §2.1 to allow an initial digit. General DNS owner names are broader than website hostnames.\n\nChoose a permitted website spelling\n\nRFC 2181 §11 distinguishes DNS-label permissiveness from application-specific restrictions. Keep a brand’s punctuation in its display name if desired, and choose a hostname spelling separately; special DNS service labels are not evidence that the same spelling is suitable for a website hostname.\n\nYour next steps\n\nRemove spaces and unsupported punctuation from hostname options\n\nUse letters, digits and permitted hyphens\n\nCheck the registry’s exact-name validation\n\nKeep the selected spelling consistent in public materials\n\nChoose a permitted website spelling\n\nRFC 2181 §11 distinguishes DNS-label permissiveness from application-specific restrictions. Keep a brand’s punctuation in its display name if desired, and choose a hostname spelling separately; special DNS service labels are not evidence that the same spelling is suitable for a website hostname.\n\nVerified detail: RFC 1035 §2.3.1 defines the letter/digit/hyphen hostname syntax; RFC 1123 §2.1 additionally permits an initial digit.\n\nYour next step: Keep the selected spelling consistent in public materials.","steps":["Remove spaces and unsupported punctuation from hostname options","Use letters, digits and permitted hyphens","Check the registry’s exact-name validation","Keep the selected spelling consistent in public materials"],"faqs":[],"sources":[{"name":"IETF RFC 1035 §2.3.1","url":"https://www.rfc-editor.org/rfc/rfc1035#section-2.3.1"},{"name":"IETF RFC 1123 §2.1","url":"https://www.rfc-editor.org/rfc/rfc1123#section-2.1"},{"name":"IETF RFC 2181","url":"https://www.rfc-editor.org/rfc/rfc2181.txt"}],"json":"https://www.namesilo.com/questions/data/can-a-domain-name-contain-spaces-or-underscores.json","markdown":"https://www.namesilo.com/questions/data/can-a-domain-name-contain-spaces-or-underscores.md"}