HCODX/Text to ASCII
100% browser-based · UTF-8 aware · Decimal / hex / binary / octal

Text to ASCII

Convert text to ASCII (and Unicode) code points in your browser. Decimal by default, with hex / binary / octal options. Multi-byte characters are reported as their Unicode code point (which extends ASCII).

Plain text
ASCII codes
Encode options
Reverse (ASCII → Text)
Input size
0 B
Output size
0 B
Char count
Status
Ready
Example

Text in, codes out

Each character maps to one decimal (or hex, binary, octal) value. ASCII covers 0-127; Unicode extends it to over a million code points.

Plain text
Hello
ASCII codes
72 101 108 108 111
Use cases

What you'll use this for

From debugging mysterious Unicode strings to generating byte arrays for embedded code — text-to-ASCII is a handy primitive.

Debugging Unicode

See the exact code points behind a weird-looking string.

Embedded systems

Generate byte arrays for C / Arduino sketches.

CTF challenges

Decode ASCII-encoded flags or convert text for transformation.

Education

Show students the numeric encoding of characters.

Step by step

How to convert text to ASCII

1

Paste your text

Any Unicode is fine — emoji, CJK, accents all map to their proper Unicode code point.

2

Pick base

Decimal, hex, binary, or octal — whichever your target needs.

3

Pick separator / padding / prefix

Match the format your target expects — space, comma, dash, newline, with or without zero-padding and base prefixes.

4

Click Convert

Output appears on the right. Copy or download instantly.

FAQ

Frequently asked questions

ASCII is a subset of Unicode (code points 0–127). This tool reports each character's full Unicode code point, so non-ASCII characters (emoji, accents) get their proper number rather than a multi-byte sequence.

Characters beyond 127 (everything outside basic Latin) have Unicode code points 128 and up. Emoji can be 100000+.

Yes. No signup, no limits, no ads.

Decimal is most common in education. Hex (0x48) is standard in programming. Binary shows bit patterns. Octal is rare today but supported.

Yes — use the ASCII to Text tool.

About

About this converter

ASCII (American Standard Code for Information Interchange) is a 7-bit character encoding that maps 128 symbols to numbers 0–127. Modern systems use Unicode, which extends ASCII to over a million code points while keeping the first 128 identical.

What it does

  • Decimal / hex / binary / octal output, padded or unpadded.
  • Unicode-aware — handles surrogate pairs as single code points, so emoji and CJK characters get their real code point (not two halves).
  • Separator choice — space, comma, dash, newline.
  • Prefixes0x, 0b, 0o to match programming-language literals.

Limitations

  • Not bytes. If you want UTF-8 bytes (each emoji might be 4 bytes), use the Text to Hex tool instead.
  • One code point per character. Combining sequences (e.g. é as e+◌́) are reported as two code points.
Related

Related tools