Design & UX

Designing a Proper Arabic Website: An RTL Guide

An Arabic version is more than flipping the direction. Fonts, which icons flip and which don't, numerals, mixed text, forms, and how to get both versions into Google.

ZeQode article cover: Designing a Proper Arabic Website: An RTL Guide

A proper Arabic website isn't an English site flipped over. It is designed for Arabic readers from the start: right-to-left in the code itself, an Arabic font that's comfortable on screen, icons that flip only when they have a direction, consistent numerals, and forms that understand a phone number is typed left-to-right even on an Arabic page. And the Arabic and English versions are linked so both show up in Google.

Arabic-speaking customers can tell immediately when a site is "translated", even if they can't describe what bothers them: a font that's hard to read, an arrow pointing backwards, or a scrambled phone number.

Icons that flip on an Arabic website and icons that stay the same
What flips and what stays as it is

1. Start right in the code

  • Put dir="rtl" and lang="ar" on the page itself, not only on a section inside it.
  • Use logical CSS properties: margin-inline-start instead of margin-left, padding-inline-end instead of padding-right, and text-align: start instead of left. The same code then works in both directions without a separate stylesheet per language.
  • Flexbox and Grid reverse the order of elements automatically with the direction, so rely on them rather than fixed positions.

2. Arabic fonts

  • Choose an Arabic font designed for screens and comfortable for long reading, such as IBM Plex Sans Arabic or Noto Kufi Arabic, not a decorative or display face.
  • Arabic text needs a slightly larger size and more line spacing than English to stay readable: if English is 16 pixels, Arabic is usually comfortable at 17 or 18.
  • Make sure the Arabic and Latin fonts match in weight and size when they appear side by side in the same sentence.
  • Load only the weights you need (regular and bold, say), because Arabic fonts are heavy, and that affects site speed.

3. Icons: when to flip and when not to

  • Flip: back and forward arrows, "next" icons, progress bars, and any icon that points along the reading direction.
  • Don't flip: checkmarks, clocks, the play button on a video, logos, and icons with a fixed meaning everywhere in the world.

The simple rule: if the icon means "forward" or "back" in reading, flip it. If it represents something in the real world, leave it as it is.

4. Numerals and mixed text

  • Decide: Eastern Arabic numerals (١٢٣) or Western numerals (123)? Then stay consistent across the whole site. In Egypt, Western numerals are very common on websites and apps.
  • Phone numbers, emails and codes stay left-to-right even inside Arabic text. Wrap them in an element that isolates their direction (dir="ltr" or <bdi>) so they don't get scrambled: +20 100 123 4567 can render as 4567 123 100 20+ if it isn't isolated.
  • English words inside an Arabic sentence, such as product and brand names, need testing, because punctuation around them sometimes jumps to the wrong place.

5. The design itself

  • Don't mirror photos of people, text or logos. A person looking right doesn't need to look left.
  • Directional elements such as sliders, timelines and checkout steps should start from the right.
  • Test pages with real Arabic text: Arabic is sometimes longer and sometimes shorter than English, which breaks cards and buttons sized for the English length. See handing off a Figma design.

6. Forms

  • Fields and labels start from the right, and icons inside fields move to the right.
  • Email, phone, number and URL fields are typed left-to-right even in the Arabic version, and the right keyboard opens on mobile.
  • Error messages are natural, clear Arabic, not literal translations: "The mobile number must be 11 digits" beats "Invalid input". See UX mistakes.

7. SEO for both Arabic and English

So Google shows the Arabic version to people searching in Arabic and the English version to those searching in English:

  • A separate URL per language, such as /services for Arabic and /en/services for English, not one URL that switches language with a button.
  • hreflang tags on every page pointing to both versions, plus x-default.
  • A title and description written for each language using the words people actually search, not machine translation.
  • The company name in Arabic and English in your structured data (schema), so Google knows "زيكود" and "ZeQode" are the same company.

Details in how to get a new website on Google.

8. Test on real devices

Test on iPhone, Android and several browsers. Many RTL problems only show up on mobile, in a particular browser, or when the Arabic keyboard opens.

Every site we build supports Arabic and English from day one, with the same code and no separate files. See frontend development and website development.

Frequently asked questions

Should my site be Arabic only, or Arabic and English?

If all your customers search in Arabic, start with Arabic and keep the code ready to add English. If you work with businesses or customers abroad, do both from the start.

Is machine translation good enough for the English version?

As a starting point, maybe, but someone has to review it. Machine translation produces odd sentences, and Google treats unreviewed machine-translated content as low quality.

How can I tell if my Arabic site has problems?

Open every page on a phone in Arabic, type into every form and tap every arrow. If something feels "backwards", it probably is.

Share this article

More articles you may like

All articles