Right-to-Left Text Direction RTL

A way of building a website or app so Arabic text starts from the right, and menus, buttons and arrows flip as if in a mirror. The Arabic reader then sees a page that feels natural and easy.

Also known as

Definition

What does right-to-left text direction mean?

Arabic is written from right to left, and anyone who reads it has done so since childhood. Most websites and apps, though, were first designed for English, which runs from left to right. So a site needs a special setup before it can show Arabic properly.

That setup is called RTL, short for Right to Left. Its opposite is LTR, Left to Right, the direction of English, French and most European languages. Persian, Urdu and Hebrew are also written from the right.

RTL support goes further than translating the words. The whole page flips, as if you held it up to a mirror: the menu, the buttons, the arrows, where the picture sits and where the text sits. An Arabic reader then feels the site was made for them, and not moved over in a hurry.

How does RTL work in websites and apps?

Every web page is built with a language called HTML, which holds the page's content. A styling file called CSS sits on top of it and decides the colours, the spacing and where each element goes. When a site supports Arabic, two things happen:

  1. Declaring the direction: the page states that its language is Arabic and that it runs from right to left, using a setting called dir with the value rtl. The browser then starts showing the text from the right. (The browser is the program you open websites with, such as Chrome or Safari.)
  2. Flipping the design: the styling rules avoid fixed words like "left" and "right" and speak of "the start of the line" and "the end of the line" instead. In Arabic the start is on the right; in English it is on the left. One design then works for both languages.

Phone apps work in much the same way. iOS and Android both understand Arabic and flip the screen on their own, as long as the app was built the right way. If the developer pinned every element to a fixed spot, nothing flips, and the Arabic screen comes out in a strange order.

Mixed text

A single line often mixes Arabic, English and numbers. Picture an Arabic sentence that says "Your order 4521 for an iPhone is ready to ship". The number and the English word must still read from left to right, inside a sentence that runs from the right. Browsers and phones have a system that sorts this out by itself, called bidirectional text, or Bidi. It gets things wrong now and then, mostly with punctuation at the end of a line, so a full stop or a question mark lands on the wrong side. The fix is for the team to test these cases and handle them one by one.

Why does RTL support matter to you?

  • Comfort: an Arabic reader's eye starts on the right. When the text begins on the wrong side, reading becomes tiring, and the visitor may simply leave.
  • Trust: a tidy site shows that its owner cares about detail. A flipped-the-wrong-way site gives the opposite impression, even if your services are excellent.
  • Sales: in an online shop, a reversed "Next" arrow or a buy button in an odd place makes customers hesitate. Hesitation means fewer orders.
  • Search visibility: when a site clearly declares its language, Google understands the page is in Arabic and shows it to people searching in Arabic.
  • Access for everyone: screen readers used by blind people need to know the language and the direction to read the page in the right order.

Think of a clinic with an online booking site. An older patient opens it on their phone. If the calendar starts on the wrong side and the "Book" button is somewhere unexpected, they will give up and call the clinic instead. If everything is where they expect it, booking takes a minute.

What flips and what stays the same?

Not everything on the page flips. The table below covers the most common cases:

ElementDoes it flip?How it looks in Arabic
Logo and main menuYesThe logo is on the right and the menu starts from it
Text alignmentYesText starts from the right
"Next" and "Previous" arrowsYesThe "Next" arrow points left
Side menu on a phoneYesUsually opens from the right
Numbers and phone numbersNoAlways written from left to right
Company logos and brand marksNoStay as their owners designed them
Video play icon and check markNoTheir meaning is the same in every language
English words inside a sentenceNoStay left to right

How do you get RTL support right?

The most important rule: ask for Arabic support from day one. Adding RTL after a site is finished is like turning a staircase around after the house is built. You can do it, but it is harder and slower, and it leaves small mistakes everywhere.

When you talk to any development team, ask them:

  • Is the design built for Arabic and English together from the start?
  • Are the pages tested in Arabic on real phones?
  • Is the chosen Arabic font clear on small screens?
  • Do automatic messages, such as error messages and notifications, appear in Arabic and in the right direction?
  • Do reports and printed files support Arabic too?

For websites

With our Website Design & Development service at Linkysoft, every site is built from scratch with no ready-made templates, with Arabic and RTL support from day one and several languages. We design for the phone first, then test on real phones before launch, so you see the Arabic version exactly as your visitors will. The client owns the site, its content and its code.

For web applications and management systems

A web application is a program you open in your browser, like a system for managing stock, staff or bookings. These systems are full of tables, dashboards and reports, and all of them need a correct Arabic layout if staff are to work in comfort every day. Our Web Applications & Management Systems service builds systems around the way your company works. They support Arabic, RTL and several languages, run on every device, and the client owns the code and the data in full.

For phone apps

Our Mobile App Development service builds iPhone and Android apps that support Arabic and several languages, with a custom design made from scratch and both light and dark modes. Each app is tested on many real phones before it goes to the App Store and Google Play, and the team keeps updating and monitoring it afterwards.

Not sure what your project needs? You can ask the Linkysoft team for a free consultation before you start.

Common mistakes to avoid

  • Translating without flipping the design: the words are Arabic, but the menu and buttons stay where English put them.
  • Flipping everything: numbers, logos and the play icon too, so they come out reversed and meaningless.
  • Forgetting mixed text: sentences with English names or numbers end up scrambled and hard to read.
  • Choosing a font with weak Arabic support: letters appear disconnected, or far too small on a phone.
  • Forgetting the out-of-the-way places: emails, notifications, PDF files and error windows. Many teams forget these.
  • Testing only on a computer: many visitors come from phones, and a small screen shows mistakes a big one hides.

Questions about Right-to-Left Text Direction

What does RTL mean for websites?
RTL stands for Right to Left. It is a setting that makes a website show Arabic text from the right, and flips menus, buttons and arrows to suit an Arabic reader.
Is translating my website into Arabic enough?
No. Translation only changes the words, while RTL support changes the order of the whole page. Without it, the menu and buttons stay where English put them, and the site feels foreign to an Arabic reader.
Can one website support both Arabic and English?
Yes. The design is built around the start and end of the line instead of a fixed left and right. When a visitor picks Arabic the page flips, and when they pick English it goes back.
Do numbers flip on an Arabic page too?
No. Numbers and phone numbers are always written from left to right, even inside an Arabic sentence. Logos and English words also stay as they are.
Can RTL support be added to an existing website?
Yes, but it is harder than building it in from the start. The team may need to review every page and every styling rule. That is why it is best to ask for Arabic support from day one.
Do phone apps need RTL support as well?
Yes. iOS and Android understand Arabic and flip the screen on their own, but only if the app is built the right way. It should also be tested in Arabic on real phones before it is published.
How can I tell if my website supports RTL properly?
Open your site in Arabic on your phone and look. Does the text start from the right? Are the logo and menu on the right side? Do sentences with numbers or English words read in order? If something is out of place, there is a mistake to fix.
Does RTL support affect how my site shows up on Google?
Clearly declaring the page language helps Google understand that it is in Arabic and show it to people searching in Arabic. A well-ordered site also keeps visitors longer instead of sending them away quickly.

Still not sure how this applies to your project?

Tell us what you are building and we will answer in plain language.