# Right-to-Left Text (RTL)

> Writing that starts on the right and moves left, like Persian.

**Field:** Design  
**Category:** Typography  
**Also known as:** Right-to-Left Script, RTL Language, RTL Layout

## Think of it like

It is like reading a comic that starts on the right page. Your eyes move the other way.

## Definition

Right-to-left text is writing that starts on the right side of the line and moves left. Arabic, Hebrew, Persian and Urdu are written this way. A page in one of these languages also flips: it starts on the right, and lists and menus line up on the right. Numbers inside the text still read from left to right. On a web page, the dir attribute tells the browser which way the text runs.

## Example

A shop adds a Persian version of its site. With the direction set to right to left, the text, the menu and the back arrow all flip.

## Example code

```html
<html lang="fa" dir="rtl">
```

This tells the browser the page is Persian and runs right to left, so lines start on the right.

## Why it matters

Whole languages are read right to left. A page that ignores it looks broken to their readers.

## Common mistake

Only aligning the text to the right. The direction must be set too, or commas and brackets land in the wrong place.

## Three principles

- **Starts on the right.** Lines run leftward.
- **The layout flips.** Menus and lists too.
- **Numbers stay.** They still read left to right.

## Related terms

- [Bidirectional Text (Bidi)](https://learn.benibix.com/term/design/bidirectional-text)
- [Arabic Script](https://learn.benibix.com/term/design/arabic-script)
- [Text Alignment](https://learn.benibix.com/term/design/text-alignment)
- [Unicode](https://learn.benibix.com/term/development/unicode)

## Taught in

- [Right-to-Left and Arabic Type](https://learn.benibix.com/learn/design-typography/right-to-left-and-arabic-type): Typography, 17/17

![Four panels. Right to left: lines of text blocks lined up on the right edge, with an arrow pointing left. Mixed direction: a right-to-left line holding one English word whose own small arrow points right. Two styles of Arabic script, drawn as word shapes: Naskh words sitting on one flat line, and Nastaliq words each sloping down from right to left. Kashida: two joined word shapes, the second with its join stretched long so the line reaches the edge.](https://learn.benibix.com/diagrams/des7-rtl-scripts.svg)

---

Source: https://learn.benibix.com/term/design/right-to-left-text
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
