Bilingual Arabic/English websites done right
A good bilingual site gives each language its own URL, its own right-to-left or left-to-right layout and type, and copy written for that reader, then links the two versions with hreflang. A site that only swaps the words through a toggle or a translation plugin will read badly in Arabic and rank weakly in both languages.
Updated
Most businesses in Saudi Arabia need to speak to two audiences: Arabic-speaking customers, regulators and staff, and English-speaking partners, investors and residents. A bilingual website is the obvious answer. The common mistake is to treat the second language as a translation layer added at the end.
Arabic changes the layout, the typography, the URL structure and the way search engines index the site. This guide covers each of those, the trade-offs, and a checklist you can hand to whoever builds your site. We use this website, bybahr.com, as the worked example, because every choice below is one we made for it.
What “done right” means
A bilingual site is done right when an Arabic reader and an English reader each feel the site was made for them. In practice that comes down to five things:
- Layout. Arabic pages run right to left, and the interface mirrors with them.
- Typography. Arabic gets a typeface, sizes and line spacing chosen for Arabic script, not a fallback font.
- URLs. Each language version lives at its own address.
- Search signals. The versions are linked with hreflang, and each has its own title and description.
- Copy. The Arabic is written for the Arabic reader, not translated sentence by sentence.
Most bilingual sites get the first one partly right and skip the rest.
RTL layout: mirroring the interface
Setting text to right-aligned is not RTL. In a right-to-left page, the whole reading order flips: the logo and navigation start on the right, sidebars swap sides, form labels sit to the right of their fields, and “next” points left.
Set direction in HTML, not CSS
The W3C recommends declaring the base direction on the html element, with dir="rtl" and lang="ar", rather than with CSS. Browsers then lay out tables, form fields and text correctly, and screen readers know which language to read. On bybahr.com, every page under /ar/ is served with <html lang="ar" dir="rtl">.
Use logical CSS properties
If the stylesheet says margin-left and text-align: left, every rule needs an Arabic override. If it says margin-inline-start and text-align: start, the same rule works in both directions. Modern CSS supports logical properties in all current browsers, and they are the cheapest way to keep two layouts in step.
Know what to mirror and what not to
| Mirror in Arabic | Keep as is |
|---|---|
| Navigation order, sidebars, breadcrumbs | Logos and brand marks |
| Arrows that mean “next”, “back” or “go” | Play and pause icons, media controls |
| Progress bars and step indicators | Checkmarks and most charts |
| Form layout and label position | Phone numbers, emails, code, product codes |
On our own pages, a call to action that ends in ↗ in English ends in ↖ in Arabic, and arrows drawn by the shared header are swapped in a dedicated RTL stylesheet. Logos, the theme toggle and media icons never mirror.
Mixed Arabic and English text
Saudi business copy is full of Latin names inside Arabic sentences: iOS, Android, product names, email addresses, order numbers. The browser’s bidirectional algorithm handles most of this, but some cases break. A line that starts with a Latin word can appear to flip direction, and punctuation can land on the wrong side of an email address. The fixes are small: rewrite headings so they start with an Arabic word, wrap longer English runs in an element with lang="en" dir="ltr", and isolate emails and phone numbers. Test real content, not lorem ipsum.
Arabic typography
Arabic letters join, carry dots and marks above and below the line, and have tall ascenders and deep descents. Type settings tuned for English clip and crowd them.
- Choose a real Arabic typeface. Many Latin brand fonts have no Arabic glyphs, so the browser falls back to whatever the device has, and the Arabic site looks like a different company. Pick an Arabic face whose stroke and proportions sit well beside your Latin one.
- Give Arabic more line height. Headings set at 1.0 to 1.1 in English need noticeably more room in Arabic, and body text needs more again.
- Turn off letter-spacing and uppercase. Tracking breaks the joins between Arabic letters, and Arabic has no case. A design that relies on spaced capitals needs another device in Arabic.
- Avoid italics. Synthetic italics slant Arabic badly. Emphasise with weight or wording.
- Keep small text legible. Arabic dots vanish at small sizes, so labels and captions need a floor.
The bybahr.com example
Our Latin typeface has no Arabic. The Arabic pages use Readex Pro, an open-licence face designed for legibility, which is geometric and nearly monolinear like our Latin font. We self-host it, subset to the Arabic Unicode blocks, in two static weights, and register it under the same family name as the Latin font, limited to Arabic code points. The result is that any element set in our brand font draws Latin in the Latin face and Arabic in Readex Pro, with no per-element rules. Arabic headings and body text get their own line heights, and letter-spacing and text transforms are switched off for Arabic.
URLs: one address per language
Google’s guidance is direct: use different URLs for each language version, rather than cookies or browser settings that change the language at the same address. A crawler sees one version per URL. If both languages share an address, one of them is effectively invisible to search.
There are three common structures:
| Structure | Example | Trade-off |
|---|---|---|
| Subdirectory | example.com/ar/ |
One domain, one site to maintain and one set of authority. The usual choice for a bilingual company site. |
| Subdomain | ar.example.com |
Easy to host separately, but more to configure and monitor. |
| Separate domain | example.sa and example.com |
Strongest local signal, but two domains to run, and usually only worth it for different markets, not just different languages. |
For a single Saudi business in two languages, a subdirectory is almost always enough. bybahr.com puts English at /<route>/ and Arabic at /ar/<route>/, so /solutions/ has /ar/solutions/ as its counterpart. The MM&P site we built for a Jeddah law firm does the same with /en and /ar: each language has its own address, a switch in the header, and every page linked to its counterpart.
Don’t redirect by language. Google also advises against automatically redirecting visitors based on what language it guesses they speak, because it can stop people and crawlers from reaching some versions. Let a visible language link do the work. On our site, the switch in the header links to the same page in the other language, or to that language’s home page when a page has no translation yet, so it never leads to a missing page.
hreflang: telling Google the pages belong together
hreflang annotations tell search engines that two URLs are the same page in different languages, so a searcher in Arabic is shown the Arabic version. Google’s rules are strict, and most broken setups fail one of them:
- Both directions. If the English page points to the Arabic one, the Arabic page must point back. If two pages don’t both point to each other, Google ignores the tags.
- Self-reference. Each version lists itself as well as the other, so the set is identical on every version.
- Full URLs. Use
https://example.com/ar/page/, not/ar/page/. - Valid codes.
arandenare enough for most sites. Add a region such asar-SAonly if you have versions for different countries. Region codes alone are invalid. - x-default is optional and names the fallback version for everyone else.
- One method is enough. Tags in the page head, HTTP headers or the XML sitemap all work.
On bybahr.com, each page with both versions carries three tags in its head:
<link rel="alternate" hreflang="en" href="https://bybahr.com/solutions/">
<link rel="alternate" hreflang="ar" href="https://bybahr.com/ar/solutions/">
<link rel="alternate" hreflang="x-default" href="https://bybahr.com/solutions/">
The sitemap lists the same language pairs. Each page’s canonical points to itself, never to the other language. Pages that exist in only one language get no hreflang at all, so the site never points Google at a URL that isn’t there. Generating these from the actual page files, rather than writing them by hand, is what keeps them correct as the site grows.
One more detail: Google says it detects language from the visible content, not from the lang attribute. So a page with an Arabic header and English body text is an English page to Google. Keep each page in one language, including its navigation.
Translating vs. writing natively
This is where most bilingual sites lose their Arabic readers, and the one decision that no plugin can make for you.
Translated Arabic is easy to spot. It leans on يتم followed by a verbal noun, uses قم بـ for “do”, strings clauses together with حيث أن, and borrows English sentence order. The words are correct; the voice is not. A Saudi reader notices within a sentence or two, and it signals that the Arabic audience came second.
Writing natively means the Arabic writer starts from what the page needs to say, not from the English sentences. In practice:
- Agree on facts, not wording. The English and Arabic pages carry the same claims and the same offers. The sentences, headings and even the order of points can differ.
- Pick the register. For most Saudi businesses that is clear Modern Standard Arabic: correct enough for a lawyer, plain enough to read on a phone.
- Fix the glossary. Decide once how you write your services, product names and calls to action, and keep a table of them. Terms drift fast across a team.
- Settle the conventions. Western or Arabic-Indic digits, the Arabic comma and question mark, quotation marks, which brand names stay in Latin script.
Machine translation has a place as a first draft for a fluent writer. Published unedited, it creates a second risk too: Google’s spam policies list automated transformations such as translating among the techniques of scaled content abuse when pages provide little value.
Our style guide
For bybahr.com we wrote an Arabic style guide before writing the Arabic pages. It sets the voice (first-person plural, active verbs, no self-praising adjectives), a fixed glossary for every service, navigation label and call to action, Western digits throughout, Arabic punctuation, rules for Latin brand names inside Arabic text, the mirrored arrows, and the type settings above. Each Arabic page is written from the meaning of the English page, and the English page wins on facts. It takes longer than translation. It is also the only way we found to make the Arabic read as if it were written first.
SEO for each language
Treat the Arabic site as its own search presence, not a copy of the English one.
- Write separate titles and descriptions in each language, in natural phrasing. Arabic searchers don’t type literal translations of English keywords.
- Research Arabic queries on their own. Saudi searchers often mix Arabic and English terms, so a query such as “تطبيق iOS” may matter as much as a fully Arabic phrase, and dialect words can matter more than formal ones.
- Localise structured data and social tags. Article, FAQ and organisation data should be in the page’s language. On our site, Arabic pages declare
og:localeas ar_SA with en_US as the alternate. - Link within the language. Internal links on Arabic pages go to Arabic pages, and only the language switch crosses over.
- Check both in Search Console. Watch indexing and queries for the /ar/ section separately, so problems with one language don’t hide behind traffic in the other.
A checklist before launch
| Area | Check |
|---|---|
| Markup | lang and dir on the html element of every page |
| Layout | Logical CSS properties; navigation, forms and arrows mirror; logos and media icons don’t |
| Type | Arabic typeface loaded and licensed; Arabic line heights; no tracking or caps on Arabic |
| Mixed text | Real content tested with Latin names, emails and numbers inside Arabic |
| URLs | One URL per language; no cookie or IP-based switching; no automatic redirects |
| hreflang | Both directions, self-referencing, full URLs, valid codes; none on pages without a pair |
| Canonical | Each page canonical to itself |
| Copy | Arabic written natively from a shared glossary and style guide |
| SEO | Separate titles, descriptions and structured data per language |
| Devices | Checked on a phone and a desktop, in both languages |
How Bahr AI approaches this
We build websites and platforms in Arabic, English or both, on phones and desktops. Three projects show the range. Lineup is a bilingual website for discovering live comedy shows, comedians and venues in Jeddah, where our work covered web design, development, content and SEO. MASS is an Arabic-first website presenting Mada Al-Majd Private Security’s guarding services and command-and-control operations. MM&P is a bilingual site for a Jeddah law firm, with Arabic and English each written for the people who rely on it.
This site follows everything in this guide: Arabic pages at /ar/, hreflang and sitemap alternates generated from the pages that exist, Readex Pro for Arabic type, and Arabic written natively to our own style guide. Our websites and platforms service describes what we build, and our guide to what a website costs in Saudi Arabia explains what moves the budget, including a second language. Selling online? Our guide to Salla or Zid vs. a custom store covers that choice. If you are planning a bilingual site, tell us who your two audiences are and what each needs to do on it.
Frequently asked questions
Should my Arabic and English pages share one URL with a language toggle?
No. Google recommends a different URL for each language version instead of switching the language with cookies or browser settings, because a crawler sees only one version at a URL. Use paths such as /ar/services/ and /services/, link each page to its counterpart with hreflang, and make the language switch a normal link to the other URL.
Is machine translation good enough for the Arabic version?
As a first draft for a writer, it can save time. Published as is, it usually reads as translated: long passive sentences, calques like قم بـ, wrong local terms and inconsistent names. Google's spam policies also list automated translation among the techniques behind scaled content abuse when it adds little value. Have a fluent writer produce the final Arabic from the meaning of the page.
Do I need hreflang if my site has only two languages?
Yes, it is still worth it. hreflang tells Google that the Arabic and English pages are versions of each other, so it can show the right one to each searcher. The tags must point both ways and each page must list itself; if two pages don't point to each other, Google ignores the tags.
Does the lang attribute help Google understand the Arabic page?
No. Google says it detects a page's language from its visible content and does not use code-level signals such as the lang attribute or the URL. You still need lang="ar" and dir="rtl" on the html element, because browsers, screen readers and fonts depend on them.
Should the site redirect visitors to Arabic automatically?
Avoid it. Google advises against automatic redirects based on perceived language, because they can stop users and search engines from reaching every version. Pick one version as the default, show a clear language link in the header, and let people choose.
Which version should we build first, Arabic or English?
Build both from the start if both audiences matter, because RTL layout and Arabic type affect the design system, not just the text. Which language leads depends on your customers. Many Saudi consumer brands write Arabic first; companies selling to international or B2B buyers often lead in English. Either way, plan the Arabic layout before the design is final.