Tool

HTML Email RTL Helper

Mirror an LTR campaign for Arabic, Hebrew, Persian, or Urdu. The pass flips document direction, table alignment, physical padding and margin, and Outlook ghost tables in the browser.

100% client-side: Your files never leave your browser.

0 B
0 B
Reference

Why CSS Logical Properties Aren't Enough for Email

Desktop Outlook still paints HTML email with Microsoft Word, and Gmail ignores most CSS logical properties. A website can turn margin-left into margin-inline-start and let the browser flip the axis. Word does not apply margin-inline-start, padding-inline-end, or text-align: start, so a campaign must keep those physical names and swap left with right before upload. For site CSS, use the CSS Physical → Logical Converter instead.

BehaviorModern browserDesktop Outlook and Gmail
CSS logical propertiesHonored when direction changesIgnored by Word and often dropped by Gmail
dir on the html elementSets the base inline axisRequired, and not sufficient by itself
Physical padding and marginStay on the left and rightMust be swapped before send
Table align left and rightMinor effect on modern enginesPlaces columns inside Word
Corner radiusLogical equivalents existPhysical corner order must be mirrored

What Gets Mirrored vs. What Stays LTR

Directional layout is rewritten. Mixed-direction tokens stay in place for a later edit, and no property is renamed to a CSS logical property.

What changesWhat stays left to right
Root html, body, and top-level layout tables receive dir rtl.Phone numbers, prices, percentages, and tracking codes.
align left and right swap on tables, cells, headings, divs, paragraphs, and images. Center and justify stay.Brand wordmarks, logos, and progress icons drawn left to right.
text-align, float, and clear swap in style attributes and style blocks.URLs in href and src, plus class and id hooks.
Padding, margin, borders, and asymmetric four-value shorthands swap sides. A two-value shorthand such as margin 10px 20px stays.ESP merge tags such as Liquid, Mailchimp, and AMPscript.
Outlook ghost tables inside mso comments receive dir rtl. Ordinary HTML comments stay unchanged.Mixed tokens can stay in the sentence inside bdi or span dir ltr.

FAQ

Why do Outlook ghost tables need their own dir="rtl"?

Windows Outlook shows the ghost table inside <!--[if mso]>, not the live columns. dir="rtl" on that table reverses column order in Word, including <!--[if (gte mso 9)|(IE)]>. The <!--[if !mso]> branch stays unchanged.

Why set dir="rtl" on both <html> and the layout table?

html sets language and base direction, including lang for Arabic, Hebrew, Persian, or Urdu. Layout tables often start a new formatting context, so each top-level table needs dir as well.

How should English brands, phone numbers, and merge tags be protected inside Arabic text?

Digits and Latin names run left to right. Wrap a phone number, brand, price, or {{ first_name }} in <span dir="ltr"> or <bdi>. The helper flags those visible tokens and does not rewrite them.

How does physical mirroring for email differ from CSS logical properties for the web?

Browsers can use margin-inline-start and text-align: start. Word and Gmail often ignore those names. This helper keeps physical properties and swaps left with right. Use the logical converter for websites and this helper for campaign HTML.

Does this helper upload the HTML template?

No. Mirroring and the warnings run in browser memory. Pasted markup and dropped .html, .htm, or .mjml files are not uploaded, and nothing is sent to an API. Processing stops above 2 MB.

After mirroring, check tags with Email Tag Guard and hidden preheaders in the Email Preheader & Alt-Text Auditor. See translating an HTML email template and translating HTML without breaking layout. Static files can be translated on HTML Translate, and every utility is in the tools hub.