ASCII to String Converter
Convert ASCII decimal codes to strings instantly (e.g., 65 = 'A'). Optionally output as a JSON string. Free online ASCII to string converter for developers.
100% Client-Side Processing
Your data is converted entirely in your browser. No data is sent to any server.
Table of Contents
What is ASCII ↔ String conversion?
These conversions are useful when you want to convert between decimal byte values and a string representation, especially when dealing with escape sequences or needing a JSON-safe output.
This tool treats text as UTF-8 bytes for numeric formats (decimal/hex/binary/octal). Non-ASCII characters (like emoji) will convert to multiple bytes.
How it Works
- For String → ASCII: paste a string (optionally with escapes like \n).
- For ASCII → String: paste decimal byte values (0–255).
- Convert instantly and copy output.
All conversion runs locally in your browser for privacy.
Common Use Cases
When to use String → ASCII
- Turning escaped sequences (\n, \t) into numeric bytes
- Building test fixtures for parsers and protocol code
- Inspecting exactly which bytes are produced by a string
When to use ASCII → String
- Reconstructing readable text from decimal byte dumps
- Generating a JSON-escaped string for copy/paste into code
- Debugging invisible characters like newline or tab
Examples
Newline byte
- Input:
\n - Output:
10
Enable “interpret escapes” for this input.
Hello
- Input:
Hello - Output:
72 101 108 108 111
Emoji (UTF-8 bytes)
- Input:
👋 - Output:
240 159 145 139
Want to look up a character code first? Check the ASCII Table for a complete reference.
Conversion Tips
Interpret escapes
If you type \n, \t, etc., enable “interpret escapes” so they become the intended characters before conversion.
JSON output
For ASCII → String, enable “Output as JSON string” to get a quoted + escaped string suitable for JavaScript/JSON.
Frequently Asked Questions
If “Output as JSON string” is enabled, the result is wrapped in quotes and escaped to be copy/pasted into JSON/JavaScript safely.
Quick Reference (common escapes)
- \n = newline (10)
- \t = tab (9)
- \r = carriage return (13)
- \\ = backslash (92)