Format Code Now
/

Decimal to ASCII Converter

ED-55

Paste decimal character codes such as 72 101 108 108 111 and read them as text. Text back to decimal codes is one click away.

Runs in your browser. Nothing is uploaded.

Decimal codes (or text)

Result

How to use it

  1. Paste the decimal numbers into the input box. Spaces, commas, semicolons and line breaks all work as separators.
  2. Under Numbers are, choose Unicode code points, or UTF-8 bytes if the numbers came from bytes.
  3. Click Decimal to ASCII to read the numbers as text.
  4. For the reverse, paste text and click ASCII to decimal. Pick a separator for the output.

Reading the numbers

In the default mode each number is a Unicode code point, which equals the ASCII code for 0 to 127. So 72 101 108 108 111 reads as Hello and 246 reads as ö. In UTF-8 bytes mode the numbers are bytes, so 195 182 together are ö. Use that mode when the numbers come from a file dump or a network capture, and the code point mode when they come from a character table.

Strict ASCII and invalid values

ASCII only covers 0 to 127. Tick Only accept ASCII to get an error for any larger number instead of a Latin or Unicode character. Independent of that setting, numbers above 1114111 and the surrogate range 55296 to 57343 are rejected, because they are not valid characters. Codes 0 to 31 give control characters, which often do not show up on screen.

Text to decimal

ASCII to decimal prints the code of every character, separated by a space, a comma or a line break. Characters above 127 print their Unicode code point, or their UTF-8 bytes in byte mode. The output can be pasted straight back into Decimal to ASCII with the same settings to restore the text.

Error messages and what to do

MessageWhat it meansFix
is not a decimal numberA token contains something other than digits 0 to 9.Check the position in the message. Hex or other bases are not read on this page.
is above U+10FFFFThe number is larger than the biggest Unicode code point, 1114111.Check for a missing separator between two numbers.
is not ASCIIOnly accept ASCII is on and a character above 127 was found.Turn the option off or remove that character.

Questions people ask

How do I convert decimal to ASCII?

Paste the numbers and click Decimal to ASCII. Each number is turned into the character with that code, so 72 becomes H and 105 becomes i. The tool joins the characters and shows the text.

What is the ASCII decimal value of A?

Capital A is 65, B is 66 and so on to Z at 90. Lowercase a is 97 up to z at 122. The digit 0 is 48 and the space is 32. Paste any of these to check.

Why do I get an error for a number like 300?

In ASCII-only mode 300 is above 127 and is rejected. Without that option it is read as a Unicode code point, U+012C, so it works. In UTF-8 bytes mode 300 is above 255 and cannot be a single byte.

Can I separate the numbers with commas?

Yes. Spaces, commas, semicolons and line breaks are all accepted between numbers, in any mix. For the text to decimal direction you choose the separator that is written to the output.

What is the difference between code points and UTF-8 bytes?

A code point is the number of a character, for example 246 for ö. UTF-8 bytes are how files store it: 195 182 for ö. Pick the mode that matches where your numbers came from.

How do I convert text to decimal ASCII codes?

Paste the text and click ASCII to decimal. Each character becomes its decimal code. Hello gives 72 101 108 108 111. Choose a comma or new line separator if you want a different layout.

About this tool

Numbers can be separated by spaces, commas, semicolons or line breaks. By default each number is a Unicode code point, which matches ASCII for 0 to 127, so 246 becomes ö. Switch to UTF-8 bytes if the numbers are the bytes of a file or message, in which case 195 182 is ö. Tick the ASCII-only option to reject anything above 127 instead of reading it as a Latin or Unicode character. Numbers above 1114111 and surrogate values (55296 to 57343) are errors. Control codes such as 0 to 31 are decoded as the control characters, which usually do not show on screen.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.