Black Friday: the Laravel testing course is $149 instead of $249, through Dec 7. See the course →
logo

What is the longest valid email address?

And how does this impact validation rules?

Joel Clermont
Joel Clermont
2026-12-02

From our daily Laravel tips email. Get the next one in your inbox.

Today's tip started as a little bit of trivia discussion with Aaron. We always enforce max validation lengths in our validation rules, but the question came up: Is max length redundant with email validation? Doesn't the email specification itself enforce a maximum length?

This led me to do some research into the various RFCs that govern SMTP and email delivery. In poking around, I discovered three length limits that are relevant here:

  • The local part of an email address (the part before the @) is limited to 64 characters.
  • Each label in the domain (the pieces between the dots after the @) is limited to 63 characters.
  • The whole address is limited to 254 characters.

Typically, we'd store an email address in a 255-character field in the database. So based on the RFC rules, it seems like max:255 really would be redundant with the email validation rule, which enforces RFC rules.

But, the answer depends on which version of Laravel you're running.

Before Laravel 12.72 and 13.43, it wasn't redundant. By default, Laravel's email rule doesn't enforce strict RFC interpretations. It allows some warnings to pass, and an address longer than 254 characters was one of them. So while email and max:255 isn't redundant on those older versions, email:strict and max:255 is redundant.

Starting with Laravel 12.72 and 13.43, the email rule rejects any address longer than 254 characters, with or without strict. On those versions, max:255 is redundant either way.

Honestly, though, this won't change how I write my rules. I still like the explicit nature of having a max length rule visible, even if email validation technically makes it redundant.

Hope this helps,

Joel

P.S. Would you like a deeper understanding of how Laravel validation works and how to use it effectively in your app?

Want a tip like this in your inbox every weekday?

Each one takes less than 2 minutes to read. Join 4,000+ Laravel developers who already get them.

email
No spam. Only real-world advice.
Toss a coin in the jar if you found this helpful.