Google’s John Mueller states that a shorter domain name or a shorter URL is not beneficial in terms of SEO and ranking in Google Search.
Recommendation:
John Mueller’s Tweet
Domain name or URL length is not a factor. Shorter is not better for SEO. Maybe better or easier for marketing, which is separate.
We do use length lightly for canonicalization, but that's choosing between 2 versions of the same thing (eg, /home/ vs /home/index.html).
— ? John ? (@JohnMu) February 9, 2021
I totally disagree from an SEO point of view. I can see how people might like short & sweet domain names, but there's definitely no SEO bonus attached to them like that.
— ? John ? (@JohnMu) February 9, 2021
Google has stated in the past that the URL length is not a ranking factor but has said to maintain it under 2,000 characters at one point in time.