Arabic text
Mixed Direction Text Fixer
Fix Arabic lines that jumble English names, numbers and URLs by wrapping each left-to-right run properly.
Runs in your browser; nothing is uploaded. · Free, no account · 2 min
Isolates are the method Unicode recommends for new text. Marks work in older software that does not read isolates.
Importing a saved run into your account is coming soon. Until then, your last runs stay in this browser only, and you can download your files.
How to use
- Paste the Arabic text that contains English names, numbers or links.
- Choose the method: isolates (recommended by Unicode) or right-to-left marks.
- Read the number of lines changed and the direction runs found.
- Copy the result into the place where the text is displayed.
What it checks and how it works
When Arabic text contains Latin words, numbers or punctuation, the Unicode Bidirectional Algorithm (UAX #9) decides the display order, and the result can look scrambled at the edges of a run, for example a full stop that lands on the wrong side of an English name. The tool finds each left-to-right run in lines that mix both and wraps it in a left-to-right isolate (LRI and PDI), the method UAX #9 introduced for this, or follows it with a right-to-left mark (RLM) for older software.
The direction levels reported come from the bidi-js implementation of UAX #9. The added characters are invisible, so do not use the result for URLs, file names or code that a program reads. In web pages, prefer the dir attribute or the bdi element where you control the markup.
Sources
Related tools
Bidi Control Characters Cleaner
Find and remove the hidden direction marks and zero-width characters that sneak into copied text.
Arabic Text Normalizer
Fold the spelling variants of Arabic text into one form for matching, searching and comparing.
Arabic Word and Character Counter
Count words, characters and sentences in Arabic text, with tashkeel and tatweel kept out of the letter count.
Arabic Transliteration (ALA-LC)
Romanize Arabic text with the ALA-LC table, and see what the result can and cannot tell you.
Questions
About this tool
Punctuation next to a left-to-right run takes the direction of its neighbours under the bidi rules. Wrapping the run in an isolate stops it from reaching the punctuation.
Isolates are the method the Unicode standard recommends for new text. Marks work in older software that does not read isolates.
On a page you control, mark up the foreign run with dir or the bdi element instead. Use this tool for plain text, such as messages, spreadsheets and captions.
Get started today
Find out where your brand stands in AI. Free.
Run a free AI visibility analysis on your domain. No credit card, results in minutes. See what AI engines say about your brand today.
Brands already measuring their AI visibility with Zaher.


