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
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat 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
Type or paste your text into the input field
Choose the output format: Decimal, Hexadecimal, Octal, or Binary
Choose the separator between codes: Space, Comma, or Newline
The ASCII codes for your text appear instantly
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.
Hello72 101 108 108 111Privacy
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.

