Format Code Now
/

Byte to ASCII Converter

ED-42

Paste a list of byte values and click Bytes to ASCII to read them as text. Pick decimal, hex, binary or octal first. Use ASCII to bytes for the reverse.

Runs in your browser. Nothing is uploaded.

Byte values or ASCII text

Result

How to use it

  1. Paste your byte values, separated by spaces, commas or semicolons.
  2. Under Byte values are, choose decimal, hex, binary or octal to match your list.
  3. Click Bytes to ASCII to see the text.
  4. To go back, paste text and click ASCII to bytes to get the values in the chosen format.

What counts as ASCII here

ASCII defines 128 characters, numbered 0 to 127. A byte in that range becomes the matching character, so 72 is H and 101 is e. Bytes 128 to 255 are not ASCII. By default the tool stops with an error, so you notice. You can instead show them as a dot, or read each one as the Latin-1 character with the same number.

Formats and control codes

Hex values may carry 0x or \x prefixes and binary values 0b. Hex and binary can also be written together without gaps, for example 48656C6C6F. Control codes such as line feed are written as they are, or you can show them as dots, except tab and line breaks. This is not UTF-8 decoding: the bytes C3 A9 give two characters, not é. Use a UTF-8 tool for that.

Error messages and what to do

MessageWhat it meansFix
is above 255, so it is not a single byte.A decimal or octal value is too big for one byte.Check the number format setting, or split the value into bytes.
No bytes found.The input has no byte values.Paste values such as 72 101 108 108 111.
is above 127 and is not ASCII.A byte from 128 to 255 appeared and the option is set to stop.Choose Show as . or Latin-1 character under Bytes 128 to 255.

Questions people ask

How do I convert bytes to ASCII text?

Paste the byte values, choose their number format, and click Bytes to ASCII. Each value from 0 to 127 is replaced by its ASCII character, so 72 101 108 108 111 becomes Hello. Values are split on spaces, commas or semicolons.

Can it read hex bytes instead of decimal?

Yes. Set Byte values are to Hex and paste something like 48 65 6C 6C 6F or 0x48 0x65. Hex pairs may also be written together as 48656C6C6F. Each byte must be two hex digits, so a stray single digit is reported.

What happens with bytes above 127?

They are not ASCII, so the default is an error. You can show them as a dot, or treat each as the Latin-1 character with the same number. If the bytes are really UTF-8 text, use a UTF-8 decoder, because ASCII cannot represent them.

Can I convert ASCII text to bytes?

Yes. Paste the text and click ASCII to bytes. Each character becomes its number in the format you chose: decimal, hex padded to two digits, binary padded to eight, or octal padded to three. Characters above 127 are refused unless Latin-1 is allowed.

What is the difference between a byte array and an ASCII string?

A byte array is a list of numbers from 0 to 255. An ASCII string is those numbers read as characters, which only makes sense for 0 to 127. The same data can be shown either way, and this tool converts between the two.

About this tool

Bytes to ASCII reads byte values separated by spaces, commas or semicolons and writes the character for each one, using the number format you pick. Hex and binary also accept groups written together, such as 48656C6C6F, with 0x, \x or 0b prefixes allowed. ASCII only defines 0 to 127. By default a higher byte stops with an error, or you can show it as a dot or read it as the Latin-1 character with the same number. The result is not UTF-8 decoding, so bytes such as C3 A9 are not joined into one letter; use a UTF-8 tool for that. ASCII to bytes does the reverse and rejects characters above 127 unless Latin-1 is chosen. Nothing is uploaded.

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