Creative Workflow Helpers
CSS Logical Properties Converter
Turn physical, directional CSS like margin-left, right or
text-align: left into logical properties such as margin-inline-start,
inset-inline-end and text-align: start — or the other way around.
Your CSS never leaves the page.
Conversion
liveYour CSS
0 linesConverted CSS
livePreview
converted CSS appliedA sample box with the converted declarations applied in both directions. Logical properties follow the text direction, so the box flips automatically.
LTR
RTL
How it works
Physical → Logical rewrites directional properties such as
margin-left, top, width and
border-top-left-radius into their logical equivalents
(margin-inline-start, inset-block-start,
inline-size, border-start-start-radius). The mapping depends on the
chosen writing direction and writing mode, so margin-left becomes
margin-inline-start for LTR and margin-inline-end for RTL.
Logical → Physical does the reverse. Four-value shorthands are grouped
into …-block / …-inline pairs, and non-directional
declarations, comments and strings are left untouched. Everything runs in the browser and the
input, options and result can be shared through the URL fragment.