Skip to content
ع
Web Development

Arabic and RTL Website Best Practices: Building a Professional Arabic Website

An Arabic website isn't a translated English one; it's a carefully mirrored design. Some elements flip, some stay as they are, and Arabic type needs special care.

Ahmad Khreiswebmaster5.0(2)
Published Updated 15 min read
Illustration for the article: Arabic and RTL Website Best Practices

Many Arabic websites look "translated" rather than designed: menus in the wrong direction, arrows pointing backwards, scrambled phone numbers and tiny, hard-to-read text. A professional Arabic RTL website is built right to left from the ground up, with a precise understanding of what flips and what stays the same. This guide covers the practical rules for building an Arabic RTL website: layout direction, Arabic typography, numbers and mixed text, and the SEO of bilingual sites.

Key takeaways

  1. 1Arabic design is a deliberate mirror: layout, navigation and directional icons flip.
  2. 2Numbers, URLs, emails and logos stay left to right.
  3. 3Arabic type needs a slightly larger size and more line spacing than Latin.
  4. 4Bilingual sites need a separate URL per language and correct hreflang tags.

What flips and what stays?

When a site switches from left-to-right to right-to-left, not everything is mirrored. Layout and direction flip, while content with a fixed direction stays as it is:

The same page in both directions

Left to right
Right to left
  1. 1
    Layout mirrors

    Logo on the right, the menu starts from the right and text aligns right.

  2. 2
    Directional arrows flip

    A "next" arrow points left in Arabic because reading progresses leftward.

  3. 3
    Numbers and links don't flip

    Emails, phone numbers, URLs and figures stay left to right.

The logo, menu, text and arrows mirror, while the email address stays left to right in both versions.

1. Build an Arabic RTL website in the right direction from the start

The right approach isn't designing for Latin then "flipping" it; it's using properties that understand direction automatically:

An approach that causes bugs

  • Properties like margin-left and padding-right
  • Fixed arrow icons that never flip
  • A separate stylesheet mirroring everything by hand

An approach that builds a sound site

  • Logical properties such as margin-inline-start
  • Flipping only directional icons per language
  • dir="rtl" and lang="ar" at page level

Logical properties mean "start" is the right side in Arabic and the left in English automatically, so one design works in both languages without separate copies.

Why do mirrored sites break later?

When a site is built in English first with values like "margin-left" and "text-align: left", then given a huge CSS file that flips every value for Arabic, everything works at first. But with every new feature someone forgets to add the flipped value, so an icon appears on the wrong side or a dropdown spills off the edge of the screen. After a year the flipped file is bigger than the original and a constant source of bugs.

The safer approach is CSS logical properties: instead of margin-left you write margin-inline-start, and instead of left you write inset-inline-start. These mean "start of the line" and "end of the line", so they flip automatically with the page direction without an extra line. The W3C guidance on bidirectional text explains how to set the direction of a page and its parts correctly. That way you write the code once and it works for both languages.

2. Arabic type: readability first

Arabic letters are connected and carry dots and diacritics, so they need different treatment from Latin:

An Arabic font designed for screens

Fonts such as Cairo, Tajawal and IBM Plex Sans Arabic were designed for reading on the web.

Larger size and spacing

A base size slightly larger than Latin, with line spacing that keeps dots and diacritics from colliding.

Don't stretch letters with kashida

Stretching words to fill a line distorts them and hurts reading and in-page search.

Enough contrast

Light grey text on a light background is hard to read, especially with Arabic letter details.

The beautiful font that slows the site down

Arabic font files are usually larger than Latin ones because they contain connected letterforms and diacritics. Loading four weights of a full Arabic font can add hundreds of kilobytes before any text appears, so visitors see a blank page or text that suddenly changes shape. Choose only two or three weights (regular and bold, perhaps a medium for headings), use the compressed WOFF2 format, serve the font from your own site or a fast service, and let text show in a fallback font while loading with the font-display property.

Watch the match between the Arabic and Latin fonts on mixed pages too: if one looks much larger than the other, English words inside an Arabic sentence will look oddly sized. Many modern Arabic fonts ship with matching Latin letters, a comfortable choice for a bilingual Arabic RTL website.

Arabic text often mixes with numbers, English names and links. Without proper handling, phone numbers appear scrambled or punctuation jumps to the wrong place:

  1. 1
    Emails, URLs and phone numbers

    Isolated as left-to-right so they read and copy correctly.

  2. 2
    Numbers in tables and prices

    Consistent alignment and one format across the site.

  3. 3
    Form fields

    Email and phone fields left to right, even inside an Arabic form.

  4. 4
    English terms

    Written as they are within the Arabic sentence, with their direction isolated when needed.

Example: a phone number that appears scrambled

On an Arabic page, an employee writes "Call us: +966 50 123 4567". Sometimes the number displays in an odd order, with the + jumping to the end or the groups swapping, because the browser applies the bidirectional algorithm to mixed text. The fix is to mark fixed-direction parts explicitly: numbers, emails and URLs go inside an element with dir="ltr", so they appear exactly as written within the Arabic sentence.

The same applies to forms: email, phone and password fields should be typed left to right even on an Arabic page, while name and address fields follow the page direction. Small details, but ignoring them makes customers doubt what they typed on your Arabic RTL website.

4. Bilingual sites and their SEO

If your site is in Arabic and English, each language deserves real, separate pages, not a machine translation behind a toggle:

ElementCorrect practice
URLsA separate URL per language, such as /ar and /en
hreflangEach page linked to its counterpart, with a self-reference and x-default
Titles and descriptionsWritten for each language in its audience's words, not translated literally
Language switcherLeads to the same page in the other language, not to the home page

We cover hreflang setup in our international SEO guide, and choosing Arabic keywords in their different forms in our keyword research guide.

Common SEO mistakes on bilingual sites

Three are most common. The first is literal machine translation that produces stilted text nobody searches for; Arabic searchers use different words from a direct translation, so research keywords for each language separately, as explained in our keyword research guide. The second is automatically redirecting visitors to a language based on location without a way back, which can stop search engines seeing the other version. The third is forgetting to translate invisible elements: page titles, descriptions, image alt text and structured data.

We explain hreflang setup step by step in our international SEO guide; it's the step that tells Google the two pages are versions of the same content, so each searcher sees the version in their language.

Common Arabic RTL website mistakes

Flipping everything without thinking. Logos, some timeline charts, video players, check marks and numbers don't flip. Arrows meaning "next" and "previous" flip, but a downward "download" arrow stays as it is.

Text that's too small. Arabic letters need a slightly larger size than Latin ones to be equally readable, because of dots and fine details. Increase the base font size and keep line spacing comfortable.

Stretching words with kashida to fill lines. Using kashida for justification looks unprofessional on screens, and full justification itself can create uneven gaps. Aligning to the start of the line is usually easier to read.

Not testing on real devices. Some fonts render differently across operating systems, and some browsers handle mixed text differently. Test on an Android phone, an iPhone and a desktop before launch.

A quick review before launching an Arabic RTL website

Open the site and check: the page direction is set on the html tag, the menu starts on the right, arrows point the logical way, numbers, emails and links display correctly, forms use the right direction for each field, the font is clear on a phone, and switching languages takes visitors to the matching page rather than the home page. Then check page titles and descriptions with the website SEO checker. An Arabic RTL website that passes this review feels designed for its readers rather than translated for them, which is what we build in our website development service.

Conclusion

A professional Arabic website is built in the right direction from the start: logical properties, deliberate mirroring of what should flip, numbers and links that stay fixed, readable Arabic type, and separate language versions linked with hreflang. To go further on the visitor experience, read our UX principles that lift conversion, or explore our website development service.

Frequently asked questions

Is adding dir="rtl" enough?

It's only the start. You also need logical CSS properties, mirrored directional icons, numbers, links and emails kept left to right, and a readable Arabic font.

What shouldn't be mirrored in an Arabic design?

Numbers, phone numbers, emails, URLs, logos, media play controls and, in many cases, time-based charts.

How do I link Arabic and English versions for SEO?

Use hreflang tags linking each page to its counterpart, with a self-reference and x-default, and give each language its own URL such as /ar and /en.

Do I need two separate sites for Arabic and English?

No. Usually the best option is one site with two language versions in clear paths such as /ar and /en, with hreflang tags linking each page to its counterpart. That's easier to manage and keeps link strength on one domain.

What's the best Arabic font for websites?

There's no single best font, but choose one designed for screens, with clear letterforms at small sizes, several weights for headings and body text, and good support for numerals and punctuation. Test it in a long paragraph on a phone before committing.

Sources & references

  1. W3C — Structural markup and right-to-left text in HTML
  2. MDN — CSS logical properties and values
  3. Google Search Central — Managing multi-regional and multilingual sites
Ahmad Khreis

About the author

webmaster

I believe technology is useful when it solves a clear problem — not when it's adopted because it's trendy. AI is a powerful tool for speeding up research, writing, analysis and automation, but it needs human expertise to review, guide and verify accuracy. That's why I prefer to start by understanding the business and its goals, then choose the simplest solution that delivers a measurable result, and build audience trust with honest, useful content.

Reader rating
5.0(2)
Published articles
82
  • #arabic
  • #rtl
  • #localization
Share

How would you rate this article?

Be the first to rate

Comments

No comments yet. Share your thoughts!

Leave a comment

Related articles

Core Web Vitals illustration showing LCP, INP, and CLS metrics and their relationship to website visual performance and user experience.
Web Development 13 min read

The Impact of Visual Performance on Core Web Vitals and User Experience

**Core Web Vitals** are essential metrics for evaluating website performance and user experience, particularly when it comes to how visual elements load, render, and respond to user interactions. Website performance is not determined by server infrastructure and JavaScript execution alone; it is also influenced by visual design decisions involving images, videos, and animations, all of which can significantly affect loading speed, layout stability, and interface responsiveness.

Amal salemRead more