TOP

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.

No signupFree online conversion

Interactive tool

Convert Unicode text to decimal values

Ready

Mode and output format

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.

InputOutputMeaning
A6565
é233195 169
20320228 189 160
😀128512240 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

Choose the converter for the direction and representation you need.

Advertisement

Sponsored link