A Guide to Valid Characters in Email Addresses

Author

Reads 1.1K

A close-up view of a smartphone screen displaying the email inbox, held by an adult's hand.
Credit: pexels.com, A close-up view of a smartphone screen displaying the email inbox, held by an adult's hand.

So, you want to make sure your email addresses are valid and will get through to the right people. According to the rules, local parts can contain letters, numbers, periods, underscores, and hyphens.

The local part can't be longer than 64 characters, so keep it concise. This is a good opportunity to remind you that the local part is the part before the @ symbol in your email address.

To be valid, the domain part of an email address must be at least 2 characters long and can't exceed 253 characters.

Allowed Characters

You can use a variety of characters in your email address, but there are some restrictions to keep in mind.

The local-part, or username portion, of an email address allows letters, numbers, periods, hyphens, underscores, and some special characters.

Common symbols like periods, underscores, and hyphens are fair game, as are non-alphanumeric ASCII characters like !#$%&’*+-/=?^`{|}~.

Spaces can be used, but only when contained in quotation marks.

Credit: youtube.com, Can email addresses include special characters or spaces?

Here are some valid local-part examples:

  • john.doe
  • johndoe99
  • johndoe-99
  • “john doe”

The domain part of an email address has a more limited set of allowed characters: letters, numbers, hyphens, and periods.

No other special characters or spaces are allowed in the domain part.

Here are some valid domain examples:

  • example.com
  • domain.info
  • subdomain.company.com

In general, the domain can only contain letters, numbers, hyphens, and periods.

Address Structure

An email address is made up of two main parts: the local-part and the domain part. The local-part, or username, can contain a mix of letters, numbers, periods, and some special characters, but there are rules to keep in mind.

The local-part is case-sensitive, meaning that "JOHN" and "john" would be considered different local-parts. Most email providers also have a 64-character limit for the local-part. You can use letters, numbers, periods, underscores, hyphens, and other printable ASCII characters, but not consecutive periods or special characters that start or end with a period or special character.

Here are some valid examples of local-parts: john.doejohn_doejohndoe93j.d.123

The domain part, on the other hand, specifies where the email account is hosted and usually includes the name of the email provider or company website. A valid domain name can contain letters, numbers, and hyphens, but no other special characters. The maximum length of a domain name is 255 characters.

Explore further: Parts of Email Addresses

Local Address Part

Laptop showing email next to green plant, ideal for tech and productivity concepts.
Credit: pexels.com, Laptop showing email next to green plant, ideal for tech and productivity concepts.

The local address part of an email address is where you put your username. It can contain a mix of letters, numbers, periods, and some special characters, but there are rules to follow.

The local-part is case-sensitive, which means that "john" and "John" would be treated as two different usernames. This might seem confusing, but it's just the way email addresses work.

A valid local-part can be up to 64 characters long, but it's generally shorter than that. Most email providers have a limit of 64 characters for the local-part.

Here are the allowed characters in a local-part:

  • Letters (a-z, A-Z)
  • Numbers (0-9)
  • Common special characters like periods, underscores, and hyphens
  • Other printable ASCII characters like !#$%&’*+-/=?^_`{|}~

You can't start or end a local-part with a period or special character, and you can't have consecutive periods. For example, "john..doe" is not a valid local-part.

A common convention for local-parts is to use the "Firstname.Lastname" format, but it's not required.

Address Domain

The domain part of an email address is where the magic happens. It's the part that tells the world where your email account is hosted, usually the name of the email provider or company website.

Credit: youtube.com, What’s the Difference Between an Email Domain, Account, Address, and Alias?

For example, common email domain examples include gmail.com, yahoo.com, and companyname.com.

The domain specifies where the email account is hosted, and it's usually the name of the email provider or company website.

Some key facts about the domain part of email addresses are as follows:

  • Max length 255 characters
  • Allowed characters: Letters (a-z, A-Z), Numbers (0-9), Hyphen (-), Period (.), Top-level domain like .com required (some exceptions)
  • Can be domain name like example.com or IP address like [123.123.123.123]
  • No underscore or other special characters

The maximum length of the domain part is 253 characters, but shorter readable addresses are recommended.

A valid domain name consists of a maximum of 63 characters, and it may not begin or end with a hyphen.

You can only use Letters (a-z), Numbers (0-9), Hyphens (-), and Periods (.) in the domain part of an email address.

Here are some valid domain examples:

  • example.com
  • domain.info
  • subdomain.company.com

Character Rules

The local-part of an email address can contain letters, numbers, periods, hyphens, and some special characters, but not consecutive periods. For example, john..doe is invalid.

Letters (a-z, A-Z) and numbers (0-9) are allowed in the local-part. You can also use common special characters like periods, underscores, and hyphens.

Credit: youtube.com, Understanding the Allowed Characters in an Email Address

Here's a breakdown of allowed characters in the local-part:

  • Letters (a-z, A-Z)
  • Numbers (0-9)
  • Common special characters like periods, underscores, and hyphens
  • Other printable ASCII characters like !#$%&’*+-/=?^_`{|}~

The domain part of an email address has a more limited set of allowed characters. You can only use letters (a-z), numbers (0-9), hyphens (-), and periods (.). No other special characters or spaces are allowed.

Here's a breakdown of allowed characters in the domain part:

  • Letters (a-z)
  • Numbers (0-9)
  • Hyphens (-)
  • Period

A valid domain name consists of a maximum of 63 characters, and the name may not begin or end with a hyphen.

Curious to learn more? Check out: Email Name Ideas for Gmail

Internationalization

Internationalization is a key aspect of email addresses, allowing people to use their native languages and characters in their email addresses.

The early days of email only supported ASCII characters, but as the internet grew globally, there was a need to support diverse languages and character sets beyond English.

Internationalization efforts accelerated in the early 2000s, resulting in standards like UTF-8 to enable non-Latin alphabets in email addresses.

Today, you can have an Arabic email with characters like مرحبا@اختبار.شركة or a Chinese email with characters like 王小明@样本.公司.

Credit: youtube.com, How to enable non-Latin-based characters in email addresses for mail sent to and from Salesforce

The @ symbol has become the global emblem of email addressing, transcending languages and cultures.

You can use UTF-8 characters in Gmail suffixes, such as dalibor.nasevic+idñ@gmail.com, which is handy for testing.

However, not many email providers support accented characters, but some like Gmail do, and Google hopes to add support for these characters in the future.

You can also use lowercase letters, numbers, dashes, and underscores in your email address, but the domain can only contain letters, numbers, hyphens, and periods.

Verifying

Verifying email addresses is crucial to ensure they are real and accurate. You've learned how to properly format email addresses, but that's just the first step.

Proper structure is key, and it should follow the format of local-part@domain. This is a basic check, but it's essential to get right.

Valid characters in each component are also vital. For example, certain characters like @, ., and - are allowed in email addresses. However, others like !, #, and $ are not.

You might enjoy: Corporate Email Format

Credit: youtube.com, How To Verify Validity Of Email Addresses

A quick syntactic check can be done to validate an email address. This involves checking the length, required elements like @ and domain, and valid characters in each component.

Here's a breakdown of the required elements:

  • @ symbol
  • Domain (e.g. gmail.com, yahoo.com)

But syntax alone doesn't guarantee a working inbox. More verification is needed to ensure the email address is accurate and deliverable.

Best Practices

To create valid email addresses, follow these best practices: use the "@" symbol to separate the local part from the domain, and keep the local part short and simple. Avoid using special characters and numbers in the local part.

Make sure to use a valid top-level domain (TLD) for the domain part, such as ".com", ".org", or ".net". Don't use generic TLDs like ".biz" or ".info", as they may not be recognized by all email clients.

Keep in mind that some email clients may not recognize email addresses with non-ASCII characters in the local part, so it's best to stick with letters and numbers.

Best Practices

Email Blocks on Gray Surface
Credit: pexels.com, Email Blocks on Gray Surface

To create a custom email address, you need to follow the length limits for each component. The local-part can be up to 64 characters max, the domain can be up to 253 characters max, and the entire address can be up to 320 characters max.

Choosing the right domain is crucial for deliverability. The domain specifies where the email account is hosted, and it's usually the name of the email provider or company website. For example, common email domain examples include gmail.com, yahoo.com, and companyname.com.

The domain part of an email address has specific rules: max length is 255 characters, allowed characters are letters, numbers, hyphen, period, and top-level domain like .com, and it can be a domain name or an IP address. No underscore or other special characters are allowed.

The local-part or username can contain a mix of letters, numbers, periods, and some special characters, but there are rules. It's case-sensitive, and the length limit is 64 characters. The local-part can start and end with alphanumeric characters, and it can't have consecutive periods.

Here's a summary of the allowed characters for the local-part:

  • Letters (a-z, A-Z)
  • Numbers (0-9)
  • Common special characters like periods, underscores, hyphens
  • Other printable ASCII characters like !#$%&’*+-/=?^_`{|}~

Remember, following all the syntax and length rules ensures your custom email address will work across providers.

Keep It Simple

Close-up of a hand holding a smartphone displaying email app against a green background.
Credit: pexels.com, Close-up of a hand holding a smartphone displaying email app against a green background.

When creating an email address, it's essential to keep it simple and easy to remember. A short and simple email address can make a big difference in how easily people can find and contact you.

Email addresses with lots of numbers and symbols can trip people up, as seen in the example [email protected]. This can lead to confusion and mistakes when trying to reach you.

Stick to a straightforward format like [email protected], which is easy to spell and remember. This will make it simpler for others to find and contact you.

Standards and Rules

The standard format of an email address is local-part@domain, which was first laid out in RFC 822 in 1982. This established the use of the @ symbol along with the local-part and domain structure we're familiar with today.

The @ symbol was developed by Ray Tomlinson in 1971, and it allowed routing emails across a network for the first time. This was a major breakthrough in the early days of the internet.

Credit: youtube.com, What Are Email Address Naming Standards? - TheEmailToolbox.com

To construct a valid email address, you need to follow specific rules. The syntax requirements include using letters A-Z and a-z (without accents and no umlauts, no ß), digits 0-9, and certain special characters.

Here are the allowed special characters: !, #, $, %, &, ', *, +, -, /, =, ?, ^, _, `., {, |, }, ~.

These special characters are the ones you can use in your email address, but keep in mind that using them is not always the best idea. It's generally easier to stick with letters and numbers for a more straightforward email address.

A fresh viewpoint: Set up Html Mail Using Word

Frequently Asked Questions

What special characters are not allowed in email addresses on Gmail?

On Gmail, you cannot use ampersands (&), equals signs (=), underscores (_), apostrophes ('), dashes (-), plus signs (+), commas (,), or brackets (<,>) in your username. Additionally, more than one period (.) is also not allowed.

What's a valid email address format?

A valid email address consists of a prefix and a domain, separated by the @ symbol, with the prefix appearing to the left and the domain to the right. The prefix and domain must be in acceptable formats, such as "example" and "mail.com" respectively.

Lee Mohr

Writer

Lee Mohr is a skilled writer with a passion for technology and innovation. With a keen eye for detail and a knack for explaining complex concepts, Lee has established himself as a trusted voice in the industry. Their writing often focuses on Azure Virtual Machine Management, helping readers navigate the intricacies of cloud computing and virtualization.

Love What You Read? Stay Updated!

Join our community for insights, tips, and more.