Skip to content
Language & TranslationLocal · Stays on device

Text Direction Converter

Preview right-to-left and mixed-direction text, insert or remove RLM, LRM and isolate characters, and get dir="auto" HTML with <bdi>.

  • Any Unicode text, HTML snippet
  • Free to use
  • No sign-up or watermark
text-direction-converterOn this device
Any Unicode textHTML snippet
Open Text Direction Converter

About this tool

Arabic, Hebrew, Persian and Urdu are written right to left, and mixing them with English words, numbers or punctuation often puts characters on the wrong side. Paste your text to preview it left-to-right, right-to-left or with automatic direction, and see each line split into its left-to-right and right-to-left runs, with lines that mix directions flagged.

Fix display problems by wrapping lines in isolates (FSI, LRI or RLI … PDI), legacy embeddings (LRE or RLE … PDF) or adding LRM or RLM marks, or strip every direction control from text that has too many. Controls are shown as visible markers such as [RLM] so you can see them, while Copy gives you the real invisible characters. For web pages, the tool also produces an HTML snippet that uses dir="auto" and <bdi> instead of control characters. A short explanation of the Unicode Bidirectional Algorithm is included.

Everything runs in your browser: your text is never uploaded, and nothing is machine-translated.

  1. Input

    Your text

    Any Unicode text, HTML snippet

  2. Processing

    Processed in this browser

    Instant, in-browser. Nothing is uploaded.

  3. Output

    Your result

    Ready to download or copy

Local processing pipelineInstant, in-browser

How to use it

  1. 1

    Paste text that contains right-to-left or mixed-direction writing.

  2. 2

    Check the preview and the direction runs.

  3. 3

    Choose a direction control to insert, or remove existing ones.

  4. 4

    Copy the fixed text or the HTML snippet.

Zero-upload architecture

How to use Text Direction Converter for free, with no upload

Free, with no sign-up or watermark · Your files stay on your device

  1. 1

    Open Text Direction Converter

    Launch the app and add your file. There is nothing to install and no account to create.

  2. 2

    Work through it

    Check the preview and the direction runs.

  3. 3

    Get your result

    Copy the fixed text or the HTML snippet.

  • Local

    Unicode Script Inspector

    See every character’s code point, script, category and UTF-8 bytes, and spot invisible, bidi and mixed-script look-alike characters.

    Open tool
  • Local

    Text Transliteration Helper

    Convert Devanagari and other Indic scripts to IAST, ISO 15919 or ITRANS and back, plus Cyrillic (ISO 9) and Greek (ISO 843) to Latin.

    Open tool
  • Local

    Text Cleaner

    Remove extra spaces, empty lines, HTML tags, smart quotes and invisible characters in one click.

    Open tool
  • Local

    Diacritic Inspector

    Inspect accents and combining marks, convert between NFC, NFD, NFKC and NFKD, remove diacritics and check whether two strings are equivalent.

    Open tool