Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Write an Email Address With a Hyphen

· 6 min read · Home Tech

In this article
  1. Writing a hyphenated email address step by step
  2. What a valid hyphenated address looks like
  3. Where hyphens go wrong in real typing
  4. How to verify the address before you rely on it
  5. Creating your own hyphenated address
  6. Does a hyphen change where the mail goes?
  7. Hyphens, dots and underscores in one glance

A hyphen goes only in the part before the @ sign, and you type it as a normal hyphen (-) with no spaces on either side, like jane-doe@mail.com. The part after the @ sign is the domain, and hyphens there are allowed too but are rare, so check the address exactly as the owner gave it to you.

Time 2 min · Steps 6 · Level Easy

Type the hyphen directly, with no space before or after it, and never swap it for an underscore or a dash. This matters whenever you are writing an address into a To: field, a sign-up form, or a contact card. Email addresses cannot contain spaces anywhere, and the hyphen is one of the few symbols that is legal in both the local part (before the @) and the domain (after the @).

Writing a hyphenated email address step by step

  1. Copy the address exactly as it was given to you. If someone wrote john-smith@company.com, keep the hyphen exactly where it is; moving it or removing it sends the mail to a different mailbox or to nowhere.
  2. Use the hyphen key, not a similar character. Press the - key (next to the 0 on most keyboards). Do not use an underscore (_), an en dash (–) or an em dash (—); mail servers treat all of these as different characters and the address will fail.
  3. Leave no space around the hyphen. jane - doe@mail.com is not the same as jane-doe@mail.com. Spaces are not allowed in any email address, and many apps will silently keep the space and then bounce the message.
  4. Check which side of the @ the hyphen is on. Hyphens in the local part (before @) are common: jane-doe@mail.com. Hyphens in the domain (after @) are legal but unusual: jane@mail-example.com. If the domain has no hyphen, do not add one.
  5. Check the start and end of each part. The local part may start or end with a hyphen on many servers, but a domain cannot start or end with one, and two hyphens in a row in a domain are not allowed. If your address breaks these rules, re-read it against the original.
  6. Send a short test message when the address is new to you. One line like "Just checking this address works" confirms it before you send anything important. If it bounces, the error usually names the exact problem.

What a valid hyphenated address looks like

A full address has two parts joined by @: the local part and the domain. In jane-doe@mail.com, the local part is jane-doe and the domain is mail.com. Both may contain letters, digits, and hyphens. The domain must also contain at least one dot, and each label between dots must be 1 to 63 characters long. A dot cannot sit directly next to the @ sign, and a domain label cannot start or end with a hyphen.

Worked examples of correct and incorrect forms:

  • jane-doe@mail.com — valid: one hyphen in the local part, no spaces.
  • jane.doe-smith@mail.co.uk — valid: dots and a hyphen can mix in the local part.
  • jane_doe@mail.com — a different address: underscore, not hyphen.
  • jane -doe@mail.com — invalid: space before the hyphen.
  • jane–doe@mail.com — invalid: that is an en dash, not a hyphen.
  • jane-doe@-mail.com — invalid: the domain starts with a hyphen.

Where hyphens go wrong in real typing

Most failures come from one of four slips, and each produces a specific symptom.

Autocorrect turning the hyphen into a dash

Some phones and word processors replace two hyphens or a hyphen between words with a longer dash. The message then bounces with an "address not found" or "invalid recipient" error. Fix it by deleting the dash and retyping a single hyphen; in a mail app's To: field, autocorrect is usually less aggressive than in a notes app, so paste the address there if your keyboard keeps fighting you.

Typing a space while wrapping a long address

When an address breaks across a line in a printed sheet or a message, a space can sneak in at the break. The mail app keeps the space, and the server rejects the address. Fix it by joining the pieces and deleting every space, then check the character count matches the original.

Swapping hyphen and underscore

Addresses like jane_doe@mail.com are just as common as hyphenated ones, and the two keys sit near each other on a keyboard. An underscore address typed with a hyphen goes to the wrong place or nowhere. Fix it by comparing character by character with the original.

Adding a hyphen to the domain that is not there

People sometimes hyphenate a familiar domain out of habit. If the real address is jane@mail.com, typing jane@mail-com.com sends mail to a different organisation entirely, or to a domain that does not exist. Fix it by reading the domain straight from the source the owner gave you.

How to verify the address before you rely on it

The cheapest check is a test message: send one line and wait a minute or two. A bounce email usually quotes the exact address the server tried, so you can compare it with the original and spot a stray space, dash or underscore instantly. If there is no bounce but also no reply after a day or two, that is normal; a delivered message is not the same as a read one.

For a visual check, paste the address into a plain text editor and turn on a large font size. En dashes and underscores look obviously different from a hyphen at 24-point size, and a leading or trailing space becomes visible. On Windows, Notepad works; on a phone, paste into a notes app and zoom in.

Creating your own hyphenated address

If you are choosing a new address rather than typing someone else's, hyphens are a safe choice: they are legal, they read clearly, and they separate names well. Most sign-up forms accept them. Keep a few rules in mind: start and end the local part with a letter or digit, use one hyphen between words rather than stacking them, and expect some sites to reject any symbol at all, in which case a dot or no separator is the fallback. Also check how the address looks spoken aloud: "jane dash doe at mail dot com" is easy to give over the phone, which is a real advantage when you dictate it to people.

Does a hyphen change where the mail goes?

Yes, completely. jane-doe@mail.com, janedoe@mail.com and jane_doe@mail.com are three separate addresses that can belong to three different people. Mail servers do not "guess" or ignore hyphens, underscores or dots in the local part. This is why copying exactly matters more than typing quickly: one wrong character is the difference between delivered and lost.

Hyphens, dots and underscores in one glance

  • Hyphen (-): legal in both parts of an address; the subject of this page.
  • Underscore (_): legal in the local part on most servers, never in the domain; a different character from a hyphen.
  • Dot (.): legal in both parts, but not directly next to the @ sign, and not doubled in the domain.
  • Space: never legal anywhere in an email address.

Menu names and field labels in mail apps can differ slightly by version, but the address rules above are set by the email standards themselves, not by any one app.

Official source: IETF (RFC 5322)