Images and Photos

Why Arabic Text Breaks in Some Apps, and How to Fix It

Why Arabic shows as separate backwards letters in games, design tools and displays, how shaping and bidi work, and how to reshape text for display.

Saizul Amin
Saizul Amin29 Oct 2026 · 3 min read
Why Arabic Text Breaks in Some Apps, and How to Fix It

Why Arabic Text Breaks in Some Apps, and How to Fix It

You paste a perfectly good Arabic sentence into a game engine, an old version of a design program or an LED sign controller, and it comes out as a row of separate letters, written backwards. Nothing is wrong with your text; the software simply does not support Arabic. The Arabic Text Reshaper prepares text so it displays correctly anyway.

Two problems, not one

Arabic needs two things from software:

1. Shaping. Arabic is cursive. Most letters have four shapes, isolated, initial, medial and final, and the right one depends on the letters around it. Software that does not apply shaping shows every letter in its isolated form, so كتاب appears as ك ت ا ب.

2. Direction. Arabic is written right to left. Software that does not implement the Unicode Bidirectional Algorithm writes every character left to right, so the word appears backwards.

Modern browsers, phones and office software handle both. Many game engines, embedded systems, video titling tools and some design programs do not.

The fix: presentation forms and visual order

Unicode includes a set of characters called Arabic Presentation Forms, one for each shape of each letter, plus ligatures such as lam-alef. By replacing each letter with the correct presentation form, the text looks joined even in software that knows nothing about Arabic. Then, by reversing the line, it appears in the right order in software that writes left to right.

Lam-alef

Lam followed by alef is never written as two separate letters in Arabic; it becomes the ligature لا. The reshaper applies this for plain alef and the hamza and madda forms.

Numbers and Latin text

When a line is reversed, numbers and English words would also come out backwards. The reshaper puts runs of digits and Latin letters back into reading order, so "2026" and "50%" stay correct.

Using the tool

Paste your Arabic text, keep "Reverse to visual order" ticked for software without right-to-left support, choose whether to keep diacritics, and copy the result into your app. Test it on screen. If the letters are joined but in the wrong order, toggle the reverse option.

A worked example

"مرحبا بكم في السعودية 2026" is converted into joined presentation forms in visual order. Pasted into a text component of a game engine that lacks Arabic support, it displays as a correctly joined, right-to-left sentence, with 2026 reading normally.

Persian and diacritics

Persian letters پ, چ, ژ, ک, گ and ی are supported. Diacritics are removed by default because basic renderers place them badly; keep them only if your software positions combining marks correctly.

When not to use it

Reshaped text is for display only. Do not store it in databases, use it on websites, or send it in documents. Presentation forms break searching, sorting, copying, spell-checking and screen readers, because the characters are no longer the normal Arabic letters. Keep the original text and reshape only the copy you display.

Better long-term solutions

If you control the software, use a text engine with proper Arabic support, such as HarfBuzz-based rendering, or a plugin for your game engine. Reshaping is a practical workaround when that is not possible.

Line breaks

Reshape each displayed line separately. If your app wraps text automatically, long reshaped lines may break in the wrong place, so insert line breaks yourself before reshaping.

Limits

This tool covers standard Arabic and common Persian letters with basic ligatures. Complex typography needs proper Arabic support. Your text never leaves your browser.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages