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:
- ASCII to String: Convert ASCII codes back into text.
How to use String to ASCII?
Using this converter is fast and flexible:
- Input Text: Type or paste your text into the Input String panel.
- You can also upload a text file directly.
- Output Delimiter: Choose how the ASCII codes are separated.
- Space, Comma, Newline, or a Custom delimiter.
- Pad Output (Optional): Enable padding to format values as 3 digits.
- Example:
39becomes039,1becomes001.
- Example:
- Get Result: The ASCII Output panel updates instantly.
- Copy or download the result for later use.
Examples
Example 1: Basic ASCII Text
Input:
HiSettings: 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 033Why 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:
| Decimal | Character | Hex |
|---|---|---|
| 0 | NUL (Null) | 00 |
| 1 | SOH (Start of Header) | 01 |
| 2 | STX (Start of Text) | 02 |
| 3 | ETX (End of Text) | 03 |
| 4 | EOT (End of Transmission) | 04 |
| 5 | ENQ (Enquiry) | 05 |
| 6 | ACK (Acknowledge) | 06 |
| 7 | BEL (Bell) | 07 |
| 8 | BS (Backspace) | 08 |
| 9 | HT (Horizontal Tab) | 09 |
| 10 | LF (Line Feed) | 0A |
| 11 | VT (Vertical Tab) | 0B |
| 12 | FF (Form Feed) | 0C |
| 13 | CR (Carriage Return) | 0D |
| 14 | SO (Shift Out) | 0E |
| 15 | SI (Shift In) | 0F |
| 16 | DLE (Data Link Escape) | 10 |
| 17 | DC1 (Device Control 1) | 11 |
| 18 | DC2 (Device Control 2) | 12 |
| 19 | DC3 (Device Control 3) | 13 |
| 20 | DC4 (Device Control 4) | 14 |
| 21 | NAK (Negative Acknowledge) | 15 |
| 22 | SYN (Synchronous Idle) | 16 |
| 23 | ETB (End of Trans. Block) | 17 |
| 24 | CAN (Cancel) | 18 |
| 25 | EM (End of Medium) | 19 |
| 26 | SUB (Substitute) | 1A |
| 27 | ESC (Escape) | 1B |
| 28 | FS (File Separator) | 1C |
| 29 | GS (Group Separator) | 1D |
| 30 | RS (Record Separator) | 1E |
| 31 | US (Unit Separator) | 1F |
| 32 | Space | 20 |
| 33 | ! | 21 |
| 34 | ” | 22 |
| 35 | # | 23 |
| 36 | $ | 24 |
| 37 | % | 25 |
| 38 | & | 26 |
| 39 | ’ | 27 |
| 40 | ( | 28 |
| 41 | ) | 29 |
| 42 | * | 2A |
| 43 | + | 2B |
| 44 | , | 2C |
| 45 | - | 2D |
| 46 | . | 2E |
| 47 | / | 2F |
| 48 | 0 | 30 |
| 49 | 1 | 31 |
| 50 | 2 | 32 |
| 51 | 3 | 33 |
| 52 | 4 | 34 |
| 53 | 5 | 35 |
| 54 | 6 | 36 |
| 55 | 7 | 37 |
| 56 | 8 | 38 |
| 57 | 9 | 39 |
| 58 | : | 3A |
| 59 | ; | 3B |
| 60 | < | 3C |
| 61 | = | 3D |
| 62 | > | 3E |
| 63 | ? | 3F |
| 64 | @ | 40 |
| 65 | A | 41 |
| 66 | B | 42 |
| 67 | C | 43 |
| 68 | D | 44 |
| 69 | E | 45 |
| 70 | F | 46 |
| 71 | G | 47 |
| 72 | H | 48 |
| 73 | I | 49 |
| 74 | J | 4A |
| 75 | K | 4B |
| 76 | L | 4C |
| 77 | M | 4D |
| 78 | N | 4E |
| 79 | O | 4F |
| 80 | P | 50 |
| 81 | Q | 51 |
| 82 | R | 52 |
| 83 | S | 53 |
| 84 | T | 54 |
| 85 | U | 55 |
| 86 | V | 56 |
| 87 | W | 57 |
| 88 | X | 58 |
| 89 | Y | 59 |
| 90 | Z | 5A |
| 91 | [ | 5B |
| 92 | \ | 5C |
| 93 | ] | 5D |
| 94 | ^ | 5E |
| 95 | _ | 5F |
| 96 | ` | 60 |
| 97 | a | 61 |
| 98 | b | 62 |
| 99 | c | 63 |
| 100 | d | 64 |
| 101 | e | 65 |
| 102 | f | 66 |
| 103 | g | 67 |
| 104 | h | 68 |
| 105 | i | 69 |
| 106 | j | 6A |
| 107 | k | 6B |
| 108 | l | 6C |
| 109 | m | 6D |
| 110 | n | 6E |
| 111 | o | 6F |
| 112 | p | 70 |
| 113 | q | 71 |
| 114 | r | 72 |
| 115 | s | 73 |
| 116 | t | 74 |
| 117 | u | 75 |
| 118 | v | 76 |
| 119 | w | 77 |
| 120 | x | 78 |
| 121 | y | 79 |
| 122 | z | 7A |
| 123 | { | 7B |
| 124 | | | 7C |
| 125 | } | 7D |
| 126 | ~ | 7E |
| 127 | DEL (Delete) | 7F |