Skip to main content

Convert ASCII text to decimal, hexadecimal or binary codes, or decode codes back to text. Supports values 0–127; use the Unicode converter for characters outside ASCII.

Only ASCII 0–127 is supported; 0–31 and 127 are control characters and may not be visible. When decoding, use spaces or commas to separate them without adding 0x prefix.

14 / 100,000 characters

Shortcut key: Ctrl/⌘+Enter. Modifying inputs or options clears old results.

Instructions for use

  1. Select encoding or decoding, and then select the numeric base.
  2. Encoding input is ASCII text; decoding input is numbers separated by spaces or commas.
  3. View the results, or use the results as input for reverse transformation.

Input and output examples

Example input
Hello (hex encoding)
Example output
48 65 6C 6C 6F

Separators are required between numbers; no 0x prefix is used. The hexadecimal representation of line feed LF is 0A.

FAQ

ASCII has only 128 encoding positions and cannot represent Chinese or emoji. Please use the relevant Unicode tools and do not get erroneous results by truncating the high bits.

0–31 and 127 are control characters such as newline, tab, NUL. They are not necessarily visible, but are still included in the copy results.

Calculation basis and reference materials

Converts between characters and encoded values 0–127 according to the 7-bit ASCII character table. Chinese, emoji, and extended encodings should use tools such as Unicode; this page does not automatically guess character sets.

Content check: · About this site and content description

Related tools