WebToolsPlanet
Converter Tools

Text to ASCII Converter

Type or paste any text and get the ASCII codes for each character in decimal, hex, octal, or binary format.

Last updated: May 29, 2026

Client-Side Processing
Input Data Stays on Device
Instant Local Execution

Find this tool useful? Support the project to keep it free!

Buy me a coffee

What is Text to ASCII Converter?

Text to ASCII conversion maps each character in a string to its numeric ASCII code. ASCII (American Standard Code for Information Interchange) is the foundational character encoding standard used in virtually all computing systems.

For example, the text "ABC" converts to decimal codes 65 66 67, hexadecimal 41 42 43, octal 101 102 103, or binary 01000001 01000010 01000011.

This tool is the starting point for understanding how computers store text. It is commonly used by: - **Developers** encoding strings for protocols, headers, or binary file formats - **Students** learning character encoding in computer science courses - **Security researchers** analysing encoded payloads in CTF challenges - **Engineers** working with serial communication, embedded systems, or network protocols

How to Use Text to ASCII Converter

1

Type or paste your text into the input field

2

Choose the output format: Decimal, Hexadecimal, Octal, or Binary

3

Choose the separator between codes: Space, Comma, or Newline

4

The ASCII codes for your text appear instantly

5

Click "Copy" or "Download" to save the result

Common Use Cases

  • Converting a text message to decimal ASCII codes for protocol or encoding documentation.
  • Getting hex ASCII values for each character to build binary file headers or HTTP payloads.
  • Generating octal escape sequences for embedding string literals in C source code.
  • Producing binary representations of text for teaching binary encoding concepts.
  • Analysing encoded CTF challenge strings by breaking them into ASCII code lists.
  • Verifying that all characters in a string are within the printable ASCII range (32–126).

Example Input and Output

The text "Hello" is converted to decimal ASCII codes showing the code for each character.

Text input
Hello
ASCII codes (decimal)
72 101 108 108 111

Privacy

All text-to-ASCII conversion runs in your browser. No data is sent to any server.

Binary output

When binary output is selected, each code is padded to 8 bits. For example, space (code 32) becomes 00100000. This matches the standard 8-bit byte representation used in data communication and computer memory.

Frequently Asked Questions

What output formats are available?
Decimal (standard), Hexadecimal (hex), Octal, and Binary. All four represent the same ASCII code values in different number bases: decimal is base 10, hex is base 16, octal is base 8, and binary is base 2.
What is the ASCII code range for printable text?
Printable ASCII characters are codes 32–126. Code 32 is a space, 48–57 are digits, 65–90 are uppercase letters, 97–122 are lowercase letters. Codes 0–31 and 127 are control characters and may not display visibly.
Why does my emoji or accented character show a large number?
Emoji and many accented characters have Unicode code points above 127, which is outside the standard 7-bit ASCII range. The tool returns the JavaScript UTF-16 code unit. For characters in the Basic Multilingual Plane (up to U+FFFF), this matches the Unicode code point. Surrogate pairs (emoji and other high code points) may produce two separate code values.
Can I convert text to binary ASCII?
Yes. Select "Binary" as the output format. Each character is shown as an 8-bit binary string (e.g., "A" = 01000001). Binary is padded with leading zeros to 8 bits.
Is this tool the reverse of ASCII to Text?
Yes. Text to ASCII converts text → codes. ASCII to Text converts codes → text. Use both together for encoding and decoding.