string to ascii
you can entry to open tools search modal
Input String
ASCII Output
Tool Options

Convert String to ASCII Online - Free ASCII Encoder

What is String to ASCII Converter?

The String to ASCII Converter transforms readable text into ASCII decimal codes (0-255). It is useful for debugging, legacy protocols, and learning how characters map to numeric values.

This tool focuses on ASCII bytes. If you need full Unicode encoding, use String to Bytes or String to Binary.

Related Tools:

How to use String to ASCII?

Using this converter is fast and flexible:

  1. Input Text: Type or paste your text into the Input String panel.
    • You can also upload a text file directly.
  2. Output Delimiter: Choose how the ASCII codes are separated.
    • Space, Comma, Newline, or a Custom delimiter.
  3. Pad Output (Optional): Enable padding to format values as 3 digits.
    • Example: 39 becomes 039, 1 becomes 001.
  4. Get Result: The ASCII Output panel updates instantly.
    • Copy or download the result for later use.

Examples

Example 1: Basic ASCII Text

Input:

Hi

Settings: Space delimiter Output:

72 105

(H = 72, i = 105)

Example 2: Padded ASCII Output

Input:

A1!

Settings: Pad to 3 digits, Space delimiter Output:

065 049 033

Why Convert Text to ASCII?

1. Debugging and Protocol Work

ASCII codes are common in network protocols, hardware logs, and legacy systems. Converting text helps verify exact numeric values.

2. Education

Seeing A map to 65 makes character encoding easy to understand for students and beginners.

3. Legacy System Compatibility

Some older systems only accept numeric ASCII codes, not raw text. This tool bridges that gap.

4. Scripted Data Generation

ASCII code lists are useful for test fixtures, puzzles, or language-agnostic data files.

FAQ

Q: What range does ASCII use?

Standard ASCII uses values 0-127. This tool outputs 0-255 because it works on 8-bit bytes (extended ASCII).

Q: What happens with non-ASCII characters?

Characters outside standard ASCII are converted by taking the low 8-bit value. For full Unicode support, use String to Bytes.

Q: Can I add leading zeros?

Yes. Enable Pad Output to format every value as a 3-digit number.

Q: Is this tool free and private?

Yes. The converter runs entirely in your browser, so your data never leaves your device.

ASCII Conversion Table

Below is the standard ASCII table (0-127) with decimal and hexadecimal values:

DecimalCharacterHex
0NUL (Null)00
1SOH (Start of Header)01
2STX (Start of Text)02
3ETX (End of Text)03
4EOT (End of Transmission)04
5ENQ (Enquiry)05
6ACK (Acknowledge)06
7BEL (Bell)07
8BS (Backspace)08
9HT (Horizontal Tab)09
10LF (Line Feed)0A
11VT (Vertical Tab)0B
12FF (Form Feed)0C
13CR (Carriage Return)0D
14SO (Shift Out)0E
15SI (Shift In)0F
16DLE (Data Link Escape)10
17DC1 (Device Control 1)11
18DC2 (Device Control 2)12
19DC3 (Device Control 3)13
20DC4 (Device Control 4)14
21NAK (Negative Acknowledge)15
22SYN (Synchronous Idle)16
23ETB (End of Trans. Block)17
24CAN (Cancel)18
25EM (End of Medium)19
26SUB (Substitute)1A
27ESC (Escape)1B
28FS (File Separator)1C
29GS (Group Separator)1D
30RS (Record Separator)1E
31US (Unit Separator)1F
32Space20
33!21
3422
35#23
36$24
37%25
38&26
3927
40(28
41)29
42*2A
43+2B
44,2C
45-2D
46.2E
47/2F
48030
49131
50232
51333
52434
53535
54636
55737
56838
57939
58:3A
59;3B
60<3C
61=3D
62>3E
63?3F
64@40
65A41
66B42
67C43
68D44
69E45
70F46
71G47
72H48
73I49
74J4A
75K4B
76L4C
77M4D
78N4E
79O4F
80P50
81Q51
82R52
83S53
84T54
85U55
86V56
87W57
88X58
89Y59
90Z5A
91[5B
92\5C
93]5D
94^5E
95_5F
96`60
97a61
98b62
99c63
100d64
101e65
102f66
103g67
104h68
105i69
106j6A
107k6B
108l6C
109m6D
110n6E
111o6F
112p70
113q71
114r72
115s73
116t74
117u75
118v76
119w77
120x78
121y79
122z7A
123{7B
124|7C
125}7D
126~7E
127DEL (Delete)7F