Code to ASCII Converter

Decode character codes in any notation into readable text.

0 chars
0 words
0 lines
0 chars
0 words
0 lines

Code to ASCII Converter – Decode Character Codes in Any Notation

Character codes turn up in many disguises: 0x48 in C, \x48 in Python and shell scripts, %48 in URLs, H in HTML, U+0048 in Unicode charts, and 0b01001000 in binary exercises. This converter understands all of them – even mixed in one input – and turns them into readable text. The sample 0x46 0b01101111 0o167 T U+006F \x6F %6C s uses eight different notations and still decodes to FowTools.

How auto-detection works

Each code is examined on its own. The prefix tells the tool which base to use:

  • 0x, \x, %, &#x, \u, U+ → hexadecimal
  • 0b → binary
  • 0o or a single backslash (\101) → octal
  • &# → decimal HTML entity

Codes without a prefix are treated as a group: if every value is an 8-digit string of zeros and ones the list is binary, if any value contains the letters a–f it is hex, otherwise decimal. When your data is ambiguous, pick the base manually with the Codes are option.

The reverse direction

ASCII to Code writes every character of your text in one notation of your choice: decimal, 0x hex, \x escapes, HTML numeric entities, U+ code points, or 0b binary. That is handy for building test strings, escaping a character for a config file, or giving students exercises in several bases. Characters beyond ASCII are written with their full Unicode code point, e.g. € becomes 0x20AC or €.

Where you meet encoded characters

Obfuscated JavaScript, malware strings in security reports, log files with escaped bytes, CTF puzzles, spreadsheet exports, and legacy HTML all contain characters written as codes. Rather than decoding them one by one with a lookup chart, paste the whole block here.

For plain decimal lists, Decimal to ASCII has a simpler interface, and Text to ASCII lets you choose base, separator, and prefix independently.

Frequently Asked Questions

Hex with 0x, \x, %, &#x…; or U+ prefixes, binary with 0b, octal with 0o or a backslash (\101), decimal HTML entities (A), and JavaScript \u escapes. Unprefixed lists are detected too: eight-digit groups of 0 and 1 are binary, anything with the letters a–f is hex, and the rest is decimal.

Prefixed codes can be mixed freely, as in the sample. If you mix prefixed codes with bare numbers, the bare numbers are ambiguous – is 10 decimal ten or hex sixteen? – so either add prefixes to all of them or set 'Codes are' to the base your bare numbers use.

Yes. The codes are read as Unicode code points, so U+00E9 gives é, 0x20AC gives €, and U+1F44B gives 👋. For UTF-8 byte sequences such as \xC3\xA9, use the UTF-8 Decode tool, which combines multiple bytes into one character.