🎓 Computer Science • Programming 100% Client-Side Privacy

Text to ASCII Converter (Dec, Hex, Binary)

Encodes text strings into standard ASCII numerical byte sequences and decodes ASCII numbers back to text.

Presets:
12 characters
Character Bit-Level Inspection (Click to Inspect)Selected: 'H' (Dec 72, 0x48)
2^70128
2^6164
2^5032
2^4016
2^318
2^204
2^102
2^001
ASCII Decimal (Base 10)
72 101 108 108 111 32 87 111 114 108 100 33
ASCII Hexadecimal (Base 16)
48 65 6C 6C 6F 20 57 6F 72 6C 64 21
ASCII Binary (8-Bit Bytes)
01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100 01100100 00100001
C / JS Hex Escaped
\x48\x65\x6C\x6C\x6F\x20\x57\x6F\x72\x6C\x64\x21
Byte Array Literal
[72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33]

What is ASCII?

ASCII (American Standard Code for Information Interchange) is a character encoding standard for electronic communication, assigning numbers 0–127 to English letters, digits, and punctuation.

Formula & Step-by-Step Calculation

Character 'A' = Decimal 65 = Hex 0x41 = Binary 01000001₂

7-bit standard character code.

Worked Step-by-Step Examples

Example 1

Convert "ABC" to ASCII decimal and hex

Solution: 65 66 67 (Hex: 41 42 43)
• A=65 (0x41), B=66 (0x42), C=67 (0x43)

Common Real-World & Academic Use Cases

  • ✓ Serial communication debugging (RS-232, UART)
  • ✓ Network protocol header inspections (HTTP, SMTP)
  • ✓ Assembly language string constant arrays

How to Use the Text to ASCII Converter (Dec, Hex, Binary)

1

Type or Paste Text

Enter string.

2

Inspect Byte Stream

Read decimal, hex, and binary byte outputs.

Frequently Asked Questions

Q: How many characters are in standard ASCII?

Exactly 128 characters (codes 0 to 127), fitting within 7 bits.

Related Computer Science Calculators