UX/UI design

How to design right-to-left interfaces in Arabic

Plan Arabic layouts, icons, number formats and mixed-direction text. Test forms and real content on the devices your users use.

What right-to-left layout changes

Once navigation follows the reading direction, test the screen with real Arabic content. A phone number can lose the position of its plus sign, a back arrow can point the wrong way, and punctuation can move around an English product name. A longer Arabic button label can also expose space the English design never needed.

Decide which elements represent reading order and which represent a physical direction or fixed convention. Check numbers separately from phrases that mix scripts. Apple, W3C, and Unicode provide guidance on these decisions. For a company site, see our guide to building an Arabic and English business website.

What mirrors and what keeps its direction

Mirror elements that follow reading order or the order of steps. Keep the direction of elements that point somewhere in the physical world or depict a real object. Apple's Human Interface Guidelines for right to left give examples. They say to flip controls that show progress from one value to another (sliders and progress bars), controls that move through items in a fixed order (back, next and previous), and icons that show forward or backward motion. A back button in an Arabic interface points to the right.

The same guidelines say not to flip logos, universal signs such as the checkmark, photographs and general artwork, or icons that depict real-world objects, with clocks and pencils as examples. A clock in an Arabic app still runs clockwise. A control that refers to an actual direction on screen, such as "swipe to the right panel", also keeps its direction.

What changes in a right-to-left screen

What changes in a right-to-left screen
ElementMirror?Reason
Navigation, tabs, breadcrumbs, back and nextYesThey follow reading order
Progress bars, sliders, steppersYesProgress runs in the reading direction
Icons showing motion or text directionYesThe motion follows reading direction
Logos, photos, checkmarks, clocksNoThey depict marks or real objects
Digits inside one number or phone numberNoNumbers are written left to right
Embedded English names, codes, URLsNoThey keep their own direction
Based on Apple's right-to-left guidance and the W3C Arabic layout requirements. Keep platform playback conventions. Document and test chart axes.

Check media playback separately from steps in a workflow. Apple's playback controls keep their orientation when the layout changes direction. Test the platform's play, rewind, fast-forward, and scrub controls before styling a custom player. For charts, choose a time axis your users can read consistently. A sales chart may follow the Arabic reading direction or keep the left-to-right axis familiar from spreadsheets. Record and test the choice across the product.

Choose digits by field and audience

The W3C Arabic and Persian Layout Requirements document three digit sets used with Arabic-script languages. They are ASCII (0123456789), Arabic-script digits (٠١٢٣٤٥٦٧٨٩, U+0660–U+0669), and the extended set (۰۱۲۳۴۵۶۷۸۹, U+06F0–U+06F9). The preferred form varies by audience, language setting, and field.

The default digit forms depend on the locale data in your platform. Use an explicit numbering system when the application needs a known result. For example, ar-u-nu-arab requests the first Arabic-script set and ar-u-nu-latn requests ASCII digits. Format a value such as 1234567.89 in your own stack and verify both the digit forms and the group and decimal separators. The Unicode CLDR numbering guidance explains these choices.

Which digits should a field use?

What does the number identify or measure?

  • An identifier people copy or search (phone, order code, card, IBAN)Keep one form, usually ASCII digits, so search, copy and support calls match
  • A price, quantity or date in running textFollow the conventions of your audience or the user's locale setting
  • A form inputAccept all three digit sets and normalize them before validation and storage
  • A legal or tax documentFollow the format the authority or your accountant requires
Decide once per field type and record it in the design system, so screens, emails and PDFs agree.

Two rules apply whichever digits you show. First, the digits in a single number never reverse. Alreq states that in all Arabic numeral systems the least significant digit sits on the right, so 2026 reads the same way in an Arabic sentence. Apple says the same for phone numbers and card numbers. Second, sequences that show progress do reverse. A step indicator showing "1, 2, 3" runs from right to left in Arabic, and the numerals themselves stay the right way round.

Formatted dates in Arabic locales can contain invisible direction marks. Inspect the output of your formatter between the day, month, and year. Keep the underlying date or timestamp for storage and processing. Format it separately for display.

Mixed-direction text and isolation

Arabic product screens rarely contain only Arabic. Brand names, model numbers, email addresses, URLs and user names are often in Latin script. The Unicode Bidirectional Algorithm, defined in Unicode Standard Annex #9, decides the display order of these runs. Without direction markup or isolation, context can pull punctuation or other neutral characters into the wrong run. Test punctuation after an English name, a number after that name, and an English list embedded in Arabic text.

Isolate inserted text so it keeps its own reading direction. An isolated run is laid out on its own and does not change the order of the text around it. In HTML, the W3C article on inline markup and bidirectional text recommends wrapping each opposite-direction phrase in an element with a dir attribute. For text inserted at run time, such as a customer name from a database, use dir="auto" on the wrapping element or the bdi element, which picks the direction from the first strong character. UAX #9 defines matching control characters (FSI, LRI and RLI, closed with PDI) for places where markup is impossible, such as page titles, push notifications and plain-text emails. It also encourages isolates instead of the older embedding controls in new content.

On Android, BidiFormatter can wrap text for insertion in a different writing direction. On iOS, use the system's locale formatters for numbers and dates, and test how inserted text behaves next to punctuation. Mark variables in design specs so the implementation can isolate the appropriate spans.

Typography, line height and text length

Arabic letters join, so the space between them is part of the letterform. The W3C layout requirements warn that moving joined characters apart creates undesirable results. Letter spacing carried over from an English heading can disrupt joined Arabic letters. Use the font's normal spacing for Arabic text and check that neighboring letters still join.

Arabic ascenders and descenders extend further than Latin ones, according to alreq, and diacritics sit above and below the base letters. A line height tuned for English often clips diacritics or makes Arabic lines feel cramped. Choose line heights for the Arabic font you actually use and test them with diacritic-heavy text, such as fully vowelled names or sample sentences.

Arabic has no uppercase letters. Apple's guidance suggests that when Arabic sits next to Latin capitals, it often works well to increase the Arabic font size by about 2 points so the two scripts look balanced. Treat this as a starting point and check it with your chosen fonts. Choose a font with Arabic glyphs and the weights your interface uses. Check which fallback appears on each supported device.

The W3C note describes justification methods used in Arabic typography, including lengthening joins with kashida. Rendering varies by font and platform. Align short interface paragraphs to the start and test any justified body text with real Arabic copy.

Text length changes in both directions. An Arabic label can be shorter or longer than the English one, and it will be different in every language you add. Design buttons, tabs and table headers to grow, allow two lines where it makes sense, and avoid truncation with an ellipsis on labels people need to read in full.

Icons with direction

Icons fall into three groups. Icons with no direction (a bell, a house, a trash can) stay as they are. Icons that show motion or reading direction flip: arrows, a reply icon, a text-alignment icon, a "send" paper plane in a chat, and a list icon with bullets on one side. Icons that depict a real object or contain text need separate thought.

Apple's guidance gives two useful examples. A shopping cart icon may need a new version rather than a simple flip, because flipping moves the badge to a position that no longer looks balanced. Icons that contain Latin letters, such as a text-formatting icon with an "A", should have a localized version. SF Symbols includes Arabic versions of some text-based symbols for this reason.

In the design system, record which icons to mirror, keep, or replace. Developers can use autoMirrored on Android vector drawables, imageFlippedForRightToLeftLayoutDirection() in UIKit, or a CSS transform scoped to [dir="rtl"] on the web.

Forms and input

Forms combine every issue above. The form layout mirrors, so labels sit on the right and required-field markers follow the label. Use left-to-right inputs for values whose format calls for it, such as phone and card numbers. Keep the labels aligned with the rest of the form. When a username or other input can contain Arabic and Latin text, test the caret and punctuation with both scripts before fixing its direction.

Phone numbers deserve their own test. An international number may contain a dialing code, spaces, and a plus sign. Inside an Arabic sentence or a right-to-left input, the plus sign can jump to the wrong end. Isolate phone numbers in display and set their inputs to left-to-right.

Accept all three digit sets in phone and similar fields where users can enter them. Convert to ASCII before checking the expected number format and storing it.

Test validation and error messages with their variables filled in. A message such as "Enter at least 8 characters" contains a number and may contain an English field name. Read the completed Arabic message and check the order of the pieces. If you want detail on accessible error messages, our WCAG 2.2 AA checklist for business websites covers it.

Use start and end in layout code

Use layout properties that follow the writing direction. On the web, set dir="rtl" and lang="ar" on the html element. The W3C advises against setting base direction with the CSS direction property, because direction is part of the content and should survive when styles fail to load (W3C, Structural markup and right-to-left text). Then use CSS logical properties such as margin-inline-start and padding-inline-end, and the layout mirrors without a second stylesheet. Android uses start and end attributes in the same way, and SwiftUI uses leading and trailing.

Ask your design team to work the same way. Specs should describe spacing and alignment as start and end, and every key screen should have an Arabic frame with real copy, not a note that says "mirror this". Name directional spacing tokens for start and end. Our guide to design system tokens, components and governance covers how to structure these tokens.

Test with real Arabic content

Test with the Arabic copy you intend to release. Include longer labels, embedded brand names, numbers, and text with diacritics so that wrapping and direction problems are visible.

Right-to-left review before release

  • DirectionBack arrows, steppers and progress bars run right to left
  • Fixed elementsLogos, photos, clocks and checkmarks are not flipped
  • NumbersDigits follow the agreed rule, and phone and order numbers read correctly
  • Mixed textEnglish names, codes and URLs sit correctly with punctuation in the right place
  • TypographyNo clipped diacritics, no letter-spacing on Arabic, labels fit without truncation
  • FormsPhone and card inputs run left to right and accept the three digit sets. Test email direction for your supported address formats
  • Generated textNotifications, emails, PDFs and page titles render correctly
A checklist the design and development teams can run on every release, on real devices set to Arabic.

Use the platform tools. Android Studio can preview a Compose screen in Arabic with @Preview(locale = "ar"), according to the Android localization guide, and an emulator can be switched to an Arabic locale. On iOS, run the app with the Arabic language and region. On the web, load each template with Arabic content. Test keyboard navigation in a sequence that preserves meaning and operability when the layout changes.

Have an Arabic reader check the copy and icons in place. A layout preview cannot tell you whether a label sounds natural or an icon has the intended meaning. Plan a review by a native Arabic reader on the actual screens before release, and a short usability test if the product is new. Our guide to testing a prototype before development explains how to recruit Arabic-speaking participants.

What to ask a design or development vendor

When you brief a vendor, ask for an example that shows how right-to-left support works in practice. Ask them to show an Arabic version of a screen they designed with real copy, including a form and an error state. Ask how they handle digits and whether the rule is written down. Ask whether their layout code uses logical properties or a separate right-to-left stylesheet, and how they isolate user-generated text. Ask who reviews the Arabic copy, and whether that person sees it in the interface or only in a spreadsheet.

We design and test interfaces in the languages your users need before development starts. See our interface design and prototypes work or contact us to discuss the Arabic screens you need to test.

Questions buyers ask

Is an Arabic interface just the English layout flipped?

Mirror navigation and controls that follow reading order. Keep the direction of numbers, logos, photos, checkmarks, clocks, and embedded English text. Adjust font size, line height, and space for real Arabic labels.

Which digit forms should an Arabic interface use?

Use locale settings and user research to choose digits for each field. Test input with ASCII and both Arabic-script digit sets. Keep identifiers such as phone numbers, order codes and card numbers consistent and searchable.

Can we add Arabic after launching in English?

Yes. Plan for the rework that comes with adding it later. Layouts built with left and right values, fixed-width buttons and text inside images all need rework. If Arabic is likely within a year or two, build with logical start and end values and test a right-to-left screen from the first sprint.

How do we test an Arabic interface without Arabic-speaking designers?

Test with reviewed Arabic copy on devices set to Arabic. Android Studio can preview an Arabic locale, and browsers honor the dir="rtl" attribute. Ask a native Arabic reader to check wording and reading order on the rendered screens.

Sources

  1. Apple Human Interface Guidelines: Right to left
  2. W3C: Arabic and Persian Layout Requirements (Group Draft Note)
  3. Unicode Standard Annex #9: Unicode Bidirectional Algorithm
  4. W3C Internationalization: Inline markup and bidirectional text in HTML
  5. W3C Internationalization: Structural markup and right-to-left text in HTML
  6. Android Developers: Localize your app
  7. Unicode CLDR: Numbering systems
  8. Apple UIKit: Playback semantics
  9. Android Developers: BidiFormatter
  10. Android Developers: VectorDrawable
  11. Apple UIKit: Flipping images for right-to-left layout
  12. W3C WAI: Understanding Focus Order

Your next chapter

Let’s build
something useful.

A product to launch. A system to improve.
An idea worth exploring. Start with a conversation.