Urdu JavaScript String Inspector

See exactly how JavaScript sees your Urdu string: its length, its code points, its bytes, and every character laid out with its Unicode value.

Quick Answer

The Urdu JavaScript String Inspector shows how a program really sees your Urdu text. It reports the string length that JavaScript counts, the true number of characters, the byte size, and a table of every code point with its Unicode value and its escape. Everything runs in your browser.

Inspect a String

Paste Urdu text to see its code points and bytes.

Paste any Urdu text to inspect it character by character.0 characters
Options

String report

Code points
0
Length (.length)
0
UTF-8 bytes
0
Combining marks
0
#CharCode pointEscapeDecBytes
Enter text to inspect it.

Rate This Tool

Tap a star to rate the Urdu JavaScript String Inspector.

No ratings yet. Be the first to rate.
Your text is inspected right here in your browser. Nothing is uploaded, saved, or shared.

What the Urdu JavaScript String Inspector Does

The Urdu JavaScript String Inspector shows how a program really sees your Urdu text. It reports the length that JavaScript’s own count gives, the true number of characters, and the byte size, and it lays out every character in a table with its Unicode code point, its escape, and its byte count.

Urdu text often holds more than meets the eye: combining marks, joiners, and letters that sit outside the basic range. This inspector makes all of it visible, so you can see why a string behaves the way it does in your code.

Everything runs on your own device. Your text is never uploaded or stored, so it stays private while you work.

How to Inspect

  1. Paste your text. Enter any Urdu text.
  2. Read the counts. See the length, the code points, and the byte size.
  3. Read the table. Look at each character with its Unicode value and escape.
  4. Copy or download. Copy the report, or save it as a text file.
Tip: When the length and the code-point count differ, your string holds a character built from two units or a combining mark.

Length Versus Code Points

JavaScript counts a string in units of sixteen bits, which is what its length property reports. Most Urdu letters fit in one such unit, but some characters take two, and a combining mark counts as its own unit on top of the letter it sits on. The true number of characters, the code points, can therefore be smaller than the length. The inspector shows both, so you know which count your code is using.

The Escape Column

For each character the inspector shows the JavaScript escape, the backslash-u form you can paste straight into code. A character that takes two units shows both units, which is exactly how you would write it in a string. This makes it easy to put an exact Urdu character into source code without typing it directly.

Combining Marks and Joiners

Urdu uses combining marks for some vowel signs and invisible joiners to shape letters. These are real characters that a program counts, even though they may not look like separate letters on screen. The inspector flags them, so you can see where a string carries a mark or a joiner that affects its length, its comparison, or its display.

A Worked Example

Text:

Loading example…

String report:

Loading example…

The live inspector 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 Inspector

Developers use it to debug string length. Testers use it to build edge cases. Students use it to learn Unicode.

Accuracy and Limits

The inspector reads the string with the same rules a JavaScript engine uses, so its counts and code points are exact. It reports the characters as they are given; a letter and a following combining mark are shown as the separate code points they are, which is how a program stores them, even when they display as one shape.

Good to know: to see the same text as JSON escapes, the JSON Unicode viewer shows that form.

Your Data Stays Private

The inspector 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 JavaScript String Inspector do?

It shows the string length JavaScript counts, the true number of code points, the byte size, and a table of every character with its Unicode value and escape.

Why do the length and the code-point count differ?

JavaScript counts in sixteen-bit units, so a character built from two units or a combining mark makes the length larger than the true number of characters.

What is the escape column for?

It gives the backslash-u form of each character, which you can paste straight into source code to include an exact Urdu character.

What are combining marks and joiners?

They are real characters that shape or accent a letter, such as a vowel sign or an invisible joiner; the inspector flags them because a program counts them.

How do I see the JSON form instead?

The JSON Unicode viewer shows the same text as it would appear escaped inside a JSON string.

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 Developer Tools

Encoders, inspectors, regex testers, and RTL playgrounds built for real Urdu web work.

Open the Urdu Tools hub
Reviewed by Daud Khalil (Front-End Developer, RTL & i18n Specialist) Last updated:
[(‘MDN – encodeURIComponent and percent-encoding’, ‘https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent’), (‘MDN – CSS logical properties and values’, ‘https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values’), (‘Unicode Standard – UTF-16, code points, and surrogate pairs’, ‘https://en.wikipedia.org/wiki/UTF-16’)]

This free tool reads your string with the same rules a JavaScript engine uses, so its counts and code points are exact. A letter and a following combining mark are shown as the separate code points a program stores. Your star rating is stored on the site.