ASCII represents characters using integer codes from 0 - 127. This tool converts between readable text and ASCII code representations for quick inspection, copy/paste, and debugging. π§°π
What you can do
- Encode text into ASCII codes (Numbers) or HTML numeric entities (Entities).
- Decode ASCII codes or entities back into readable text.
- Swap inputs to quickly convert back and forth while testing.
How it works
- Encode turns each character into an ASCII code using your chosen Format:
- Entities (default): concatenated HTML entities like
Hello - Numbers: space-separated decimal values like
72 101 108 108 111
- Entities (default): concatenated HTML entities like
- Decode reverses the process:
- From Entities: parses sequences like
&#NNN; - From Numbers: accepts decimal tokens separated by spaces, commas, or new lines
- From Entities: parses sequences like
Format quick reference
| Format | What it looks like | Best for | Decoding input accepts |
|---|---|---|---|
| Entities | He... |
HTML-safe copy/paste | &#NNN; sequences (optionally mixed with text) |
| Numbers | 72 101 108... |
Debugging / logs | Decimals split by spaces, commas, tabs, or new lines |
Buttons
- Encode »: Encode the left textarea into the selected format and show it on the right.
- Decode »: Decode the left textarea according to the selected format and show it on the right.
- « Swap »: Swap left and right textareas to continue converting back and forth.
- Copy Result π: Copy the right textarea to your clipboard.
Examples
- Hello → Numbers:
72 101 108 108 111 - Hello → Entities:
Hello - A! → Numbers:
65 33 - Space () → Numbers:
32
Tips
- If decoding numbers, you can paste messy input like
72,101,108or line-separated values - separators don't matter much β - If you only see entities in your output, that's normal for the Entities format - those are meant to be HTML-friendly.
Notes & limitations
- ASCII is 0 - 127. Characters above 127 are not standard ASCII and may not round-trip as expected.
- Control codes (0 - 31 and 127) may not display as readable characters.
- For full Unicode support, use the Unicode or UTF-8 converters.


