Free browser converter
Unicode to Decimal Converter
Convert Unicode text to decimal values in your browser with explicit ASCII, Unicode code point, and UTF-8 byte handling.
Interactive tool
Convert Unicode text to decimal values
Ready
Choose the exact representation you need; the tool does not guess an encoding.
Detailed conversion guide
How to Convert Unicode to Decimal
Code point mode outputs one base-10 Unicode scalar per character: A is 65, é is 233, 你 is 20320, and 😀 is 128512. These numbers identify characters independent of storage encoding.
UTF-8 mode outputs stored byte values. The character é becomes 195 169, while 😀 becomes 240 159 152 128. Byte output is useful for files, APIs, and network payloads.
| Input | Output | Meaning |
|---|---|---|
A | 65 | 65 |
é | 233 | 195 169 |
你 | 20320 | 228 189 160 |
😀 | 128512 | 240 159 152 128 |
Unicode Decimal Values in JavaScript and Python
Use codePointAt with code-point iteration in JavaScript or ord in Python for scalars. Use TextEncoder or encode('utf-8') for decimal bytes.
// validate first, then convert
const value = Number.parseInt(token, radix);
if (!Number.isInteger(value)) throw new Error("Invalid input");Decimal Code Points vs UTF-8 Decimal Bytes
ASCII characters have matching scalar and single-byte values, which hides the difference. Non-ASCII characters expose it because UTF-8 may use two to four bytes.
The converter preserves combining sequences and does not normalize text. Each actual code point or byte remains visible in order.
Related converters
Continue converting ASCII and Unicode
Choose the converter for the direction and representation you need.