Convert Urdu characters into their Unicode codes, in hex, JavaScript escapes, decimal, or HTML entities.
Quick Answer
The Urdu Character-to-Code Converter turns each character in your text into its Unicode code. It can give the code as a U+ hex value, a JavaScript escape, a decimal number, or an HTML entity, so you can drop the codes straight into code or markup. Everything runs in your browser.
Convert Characters to Codes
Paste Urdu text to get the Unicode code for each character.
Codes
- Characters
- 0
- Code points
- 0
- Formats shown
- 0
- Highest code
- –
Rate This Tool
Tap a star to rate the Urdu Character-to-Code Converter.
What the Urdu Character-to-Code Converter Does
The Urdu Character-to-Code Converter turns each character in your text into its Unicode code point, in the format you choose. It can show the code as a U+ hex value, a JavaScript escape, a decimal number, or an HTML entity, and it can show more than one format at once.
This is handy when you need the exact code of an Urdu character to use in a program, a stylesheet, or a web page.
Everything runs on your own device. Your text is never uploaded or stored, so it stays private while you convert it.
How to Convert to Codes
- Paste your text. Enter the characters you want the codes for.
- Pick the formats. Choose U+ hex, the escape, decimal, or the HTML entity.
- Read the codes. Each chosen format appears on its own line.
- Copy or download. Copy the codes, or save them as a file.
The Code Formats
The U+ hex format, like U+0627, is the standard way to write a code point. The JavaScript escape, like backslash u followed by the hex, drops into a string in code. The decimal is the plain number. The HTML entity, like an ampersand hash number semicolon, is for web pages.
Characters Beyond the Basic Set
Most Urdu characters have a code point below U+FFFF and fit in a single unit. A few characters, such as some symbols and emoji, sit higher and are made of a pair in JavaScript. The converter reads the full code point, so it gives the correct single code for these too.
Going Back
To turn codes back into characters, use the code-to-character converter, which reads U+ hex, escapes, decimals, and entities and rebuilds the text. Together the two tools convert in both directions.
A Worked Example
Text:
Loading example…
Codes:
Loading example…
The live converter 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 Converter
Developers use it to get code points for strings and stylesheets. Web authors use it for HTML entities. Anyone who needs the code of an Urdu character uses it.
Accuracy and Limits
The converter reads the full code point of each character and writes it exactly in each format. It handles characters above U+FFFF as a single code point, not as a surrogate pair. The hex is written in uppercase, the standard style.
Good to know: a character you see may be a base letter plus a separate mark, giving two codes.
Your Data Stays Private
The converter 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 Character-to-Code Converter do?
It turns each character in your text into its Unicode code point, in U+ hex, a JavaScript escape, decimal, or an HTML entity.
Can it show more than one format?
Yes. Turn on as many formats as you like, and each appears on its own line for easy comparison.
What is the U+ hex format?
The standard way to write a code point, such as U+0627 for the Urdu letter alef.
Does it handle emoji and rare symbols?
Yes. It reads the full code point, so characters above U+FFFF get the correct single code, not a surrogate pair.
How do I go back to characters?
Use the code-to-character converter, which reads these formats and rebuilds the text.
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 turns each character in your text into its Unicode code point, in U+ hex, a JavaScript escape, decimal, or an HTML entity. It reads full code points, so characters above U+FFFF get a single code. Your star rating is stored on the site.