Detect which characters in your text are right-to-left, which are left-to-right, and which are neutral, so you can see the direction of every character.
Quick Answer
The Urdu RTL Character Detector classifies every character in your text by its direction. It counts the right-to-left letters, the left-to-right letters, the numbers, and the neutral characters, works out the base direction, and can show the direction of each character in order. Everything runs in your browser.
Detect RTL Characters
Paste text to see the direction of each character.
Direction report
- Base direction
- –
- RTL characters
- 0
- LTR characters
- 0
- Numbers
- 0
Live preview (dir=auto)
Rate This Tool
Tap a star to rate the Urdu RTL Character Detector.
What the Urdu RTL Character Detector Does
The Urdu RTL Character Detector looks at every character in your text and reports its direction. It counts the right-to-left letters, such as Urdu, the left-to-right letters, such as English, the numbers, which have their own weak direction, and the neutral characters like spaces and punctuation.
This tells you the make-up of a piece of text by direction, which is the first thing to know when it does not lay out as expected.
Everything runs on your own device. Your text is never uploaded or stored, so it stays private while you scan it.
How to Detect Direction
- Paste your text. Enter a mix of Urdu, English, and numbers.
- Read the counts. See how many characters of each direction there are.
- Check the map. See the direction of each character in order.
- Copy or download. Copy the report, or save it as a text file.
The Direction Classes
Each character falls into a class. Right-to-left covers Urdu and other right-to-left letters. Left-to-right covers English and other left-to-right letters. Numbers are a weak class of their own, since they run left to right even inside right-to-left text. Neutral covers spaces, punctuation, and symbols.
Base Direction
The base direction is the overall direction of the text, decided by the first strong character. If the text starts with an Urdu letter, the base is right-to-left, and everything is laid out inside that flow. If it starts with an English letter, the base is left-to-right.
The Direction Map
The direction map shows a tag for each character in order, so you can see exactly where the text switches from one direction to another. A run of right-to-left tags followed by a left-to-right run marks a switch point.
A Worked Example
Text:
Loading example…
Direction report:
Loading example…
The live detector is preparing this example…
The result above comes from the same function the tool uses, so it reflects real behavior. Press Load Example to try it.
Who Uses This Detector
Developers use it to see the direction make-up of a string. Designers use it to check labels. Anyone whose text lays out oddly uses it to find the direction.
Accuracy and Limits
The detector classifies each character by its Unicode range into right-to-left, left-to-right, number, or neutral, and gives the base direction from the first strong character. It reports the characters; to see how they order on the page, use the live preview or the bidirectional text tester.
Good to know: a number always runs left to right, even inside right-to-left text.
Your Data Stays Private
The detector runs fully in your browser with standard web technology. Your text is not uploaded or stored, and it is not sent to any analytics service. Only your star rating is sent, to record the tool’s rating. When you close the page, your text is gone.
Frequently Asked Questions
What does the Urdu RTL Character Detector do?
It classifies every character in your text by direction, right-to-left, left-to-right, number, or neutral, and gives the base direction.
What are the direction classes?
Right-to-left for Urdu, left-to-right for English, number for digits, and neutral for spaces, punctuation, and symbols.
What is the base direction?
The overall direction, set by the first strong character. Urdu first means right-to-left, English first means left-to-right.
Why are numbers a separate class?
Because they run left to right even inside right-to-left text, so they behave differently from letters.
How do I see the visual order?
Use the live preview here, or the bidirectional text tester, to see how the characters order on the page.
Is my data safe?
Yes. Everything runs in your browser. Your text is never uploaded, saved, or shared.
Is this tool free?
Yes, it is completely free and needs no account to use.
Does it work on mobile?
Yes. It works on phones, tablets, and computers.
Explore More Free Urdu Unicode and RTL Tools
Inspectors, detectors, cleaners, and normalizers built for real Urdu Unicode text.
Open the Urdu Tools hubSources and standards
- The Unicode Standard and code charts (Arabic block U+0600, Arabic Supplement, Presentation Forms). unicode.org/charts
- UAX #9, Unicode Bidirectional Algorithm (RTL, marks, isolates, overrides). unicode.org/reports/tr9
- UAX #15, Unicode Normalization Forms (NFC, NFD, NFKC, NFKD). unicode.org/reports/tr15
- MDN Web Docs, String.prototype.normalize and code point methods. developer.mozilla.org
This free tool classifies each character in your text by direction, right-to-left, left-to-right, number, or neutral, and gives the base direction from the first strong character. To see the visual order, use the live preview or the bidirectional text tester. Your star rating is stored on the site.