ToolHarbor

Text to ASCII Converter

Convert text to ASCII codes (decimal, hex, binary, octal) or ASCII codes back to text. See the code value of every character instantly.

Features

  • Convert text to decimal, hexadecimal, binary, or octal ASCII codes
  • Convert ASCII codes back to readable text
  • Shows a character table with all formats side by side
  • Supports full Unicode (not just ASCII 0-127)
  • Custom separator between code values
  • Swap between text-to-ASCII and ASCII-to-text modes
  • Works entirely offline — your text never leaves your browser

How to Use

  1. 1Choose "Text → ASCII" or "ASCII → Text" mode
  2. 2Select the output format: Decimal, Hex, Binary, or Octal
  3. 3Type or paste your input
  4. 4The converted result appears instantly
  5. 5Use the character table to see all formats at once
  6. 6Copy the result with the Copy button

Examples

Text to decimal ASCII codes

Input

Hello

Output

72 101 108 108 111
Text to hexadecimal

Input

Hello

Output

48 65 6C 6C 6F
Text to binary

Input

Hi

Output

01001000 01101001
Decimal ASCII to text

Input

72 101 108 108 111

Output

Hello

What Is ASCII and How Do ASCII Codes Work?

ASCII (American Standard Code for Information Interchange) is a character encoding standard that assigns a numeric code to each character. The original ASCII table defines 128 characters (codes 0-127): uppercase and lowercase letters, digits 0-9, punctuation marks, and control characters like newline and tab. For example, the letter "A" has ASCII code 65, "a" is 97, and "0" is 48.

Every piece of text on a computer is ultimately stored as numbers. When you type "Hello", the computer stores the sequence 72, 101, 108, 108, 111 — the decimal ASCII codes for each character. This tool lets you see those underlying numeric values in multiple formats: decimal (base 10), hexadecimal (base 16), binary (base 2), and octal (base 8).

Hexadecimal is the most common format in programming — you will see it in color codes (#48656C), escape sequences (\x48), memory dumps, and network protocols. Binary is useful for understanding how data is stored at the bit level, which matters for bitwise operations, flags, and low-level programming. Octal is used in Unix file permissions (chmod 755) and some older systems.

This tool goes beyond the original 128-character ASCII table. It supports the full Unicode range, so you can see the code point for any character: accented letters (é = 233), CJK characters (中 = 20013), emoji (🚀 = 128640), and more. The reverse conversion works the same way — enter the numeric codes and get the corresponding text.

All processing happens in your browser. No data is sent to any server. Type, convert, and copy — it is instant and private.

Frequently Asked Questions

Related Tools