CSS LTR to RTL Converter for Arabic Sites

Convert an English theme's CSS to work right to left: flip margins, padding, alignment, floats and corners, or turn them into logical properties that work in both directions.

Convert your CSS now
margin-leftpadding-righttext-align:leftfloat:leftleft: 0margin-rightpadding-lefttext-align:rightfloat:rightright: 0LTR → RTL

Converter

Result

How the tool works

Simple steps, all in your browser with no sign-up.

Paste CSS

From any LTR theme.

Pick a method

Flip or logical properties.

Copy the result

With the change count.

Two ways to convert

MethodExampleWhen to use
Flipmargin-left → margin-rightA separate rtl.css for an Arabic-only site or an older theme
Logical propertiesmargin-left → margin-inline-startA bilingual site with one stylesheet that follows dir

What needs a manual review

  • Transforms and arrows: translateX and directional icons.
  • Shadows: box-shadow with a horizontal offset.
  • Background images with numeric positions.
  • Fonts: an English theme needs an Arabic font; try the Arabic font preview.
  • WordPress loads a theme's rtl.css automatically when it exists.

Before and after examples

OriginalFlipLogical
margin-left: 20pxmargin-right: 20pxmargin-inline-start: 20px
padding: 10px 30px 10px 15pxpadding: 10px 15px 10px 30pxpadding: 10px 30px 10px 15px
text-align: lefttext-align: righttext-align: start
border-radius: 12px 0 0 12pxborder-radius: 0 12px 12px 0Unchanged, or border-start-start-radius

Key terms

Short definitions of what you meet along the way.

RTL and LTR
Writing direction: right to left like Arabic, or left to right like English.
Logical properties
CSS properties such as margin-inline-start that follow page direction instead of fixed left and right.
rtl.css
An extra stylesheet in WordPress themes loaded automatically for right-to-left languages.

Frequently asked questions

Did not find your answer? Ask us on WhatsApp

Should I use logical properties now?

Yes, modern browsers support them and they suit bilingual sites best.

Is adding dir="rtl" enough?

It flips text and flex layouts, but margins and positions written with left and right stay the same.

Is my code uploaded anywhere?

No. Conversion happens in your browser.

Want a polished Arabic theme?

We localise WordPress themes and design Arabic sites from scratch.

Contact us on WhatsApp