Decimal Char Code Converter

Convert text to space-separated decimal char code points

Outputs the decimal Unicode code point of each character in your text, and rebuilds text from space-separated decimal code points. Handles emoji and astral characters as single values. Runs entirely in your browser. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

Are these byte values or code points?

They are Unicode code points, not bytes. Each character maps to one decimal number — its position in the Unicode table. For ASCII this matches the byte value, but for higher characters it is the scalar value, not a UTF-8 byte.

Every character has a numeric Unicode code point. This converter lists those code points in decimal for any text, and turns a list of decimal numbers back into a string.

When you need decimal code points

Decimal Unicode values appear in several specific technical contexts where this converter is directly useful:

  • HTML numeric character references — the &#NNNNN; entity format uses the decimal code point, so 🚀 renders the rocket emoji. This converter gives you those numbers.
  • Debugging encoding issues — when a character looks wrong or renders as a box, checking its code point tells you exactly what Unicode value the system is storing, which is often the first step in diagnosing a charset or encoding mismatch.
  • Character identity across fonts — two glyphs that look nearly identical may have different code points. Encoding lets you verify you have the right one, not a lookalike or homoglyph.
  • Data transfer over plain-text channels — some legacy systems, protocols, or file formats can only transmit ASCII safely. Encoding non-ASCII content as decimal code points gives you a plain ASCII representation that can be decoded at the other end.
  • Building test fixtures — generating specific control characters, combining marks, or out-of-BMP characters by code point number rather than copy-pasting a glyph that may not survive your editor.

How it works

For encoding, the tool reads the string one code point at a time (so emoji and other astral characters stay whole) and prints each code point as a decimal number:

A   -> 65
z   -> 122
🚀  -> 128640

For decoding, the input is split on whitespace, each token is parsed as a decimal number, and String.fromCodePoint rebuilds the character. Values must be valid Unicode scalar values (0 to 1114111, excluding the surrogate block).

Code points versus bytes — the important distinction

Decimal code points are not the same as the bytes of a UTF-8 encoding, and confusing them is the single most common mistake with this kind of tool.

For ASCII characters (code points 0–127) the code point equals the UTF-8 byte value — A is both code point 65 and UTF-8 byte 0x41. But for characters above U+007F the values diverge. For example, the euro sign has code point 8364, but in UTF-8 it is three bytes: 0xE2, 0x82, 0xAC. This tool gives you the code point (8364), not the bytes.

If you need UTF-8 byte values for a character, use a hex text or byte encoding tool instead.

Worked examples

Hi72 105

Café67 97 102 233 (the é is code point 233, a single Latin Extended value, not two UTF-8 bytes)

🚀A128640 65 (the emoji is a single code point above the Basic Multilingual Plane)

The word Hi becomes 72 105. These are code points, which equal byte values only for ASCII; for anything above U+007F the decimal number is the character’s Unicode scalar value, not a UTF-8 byte. That makes this tool ideal for building HTML numeric entities (🚀) or debugging which exact character a glyph maps to.