About the Text to ASCII Converter
Every character your keyboard produces has a numeric identity, and this converter exposes it. Codes for the first 128 characters match the original ASCII table exactly, while anything beyond that reports its Unicode code point, so a Greek letter or a currency symbol still produces a single meaningful number instead of a pair of bytes.
The base dropdown covers the four you actually see in the wild: decimal for teaching material and quick lookups, hexadecimal for protocol documentation, octal for legacy Unix tooling, and binary when you want to show the bit pattern. Padding puts every value at the same width, which is what makes a column of codes line up: two digits in hex, three in octal or decimal, eight in binary. Turn padding off when the codes go into a comma list for source code.
By default line breaks in the input are converted to spaces so the output stays one long run. Tick the line break option and each input line produces its own output line, which is the layout you want when annotating a file line by line. The separator dropdown ranges from a single space to nothing at all, and choosing nothing only makes sense with padding on, since without a fixed width the digits run together. ASCII to Text reverses the process, and Char to ASCII prints a labelled table when you want to inspect one character at a time.
How to use
- Type or paste the sentence you want turned into codes.
- Pick the number base and the separator that suit your target format.
- Tick Pad to a fixed width when the codes need to line up in columns.
- Copy the codes or download them as a text file.
Common questions
- Does it output bytes or code points?
- Code points. One character always gives one number, even when that character needs several bytes in UTF-8.
- How do I get a comma list for an array literal?
- Set the separator to Comma only and leave padding off, then paste the run straight between square brackets.
- What happens to spaces in my text?
- A space is a character like any other and comes out as 32 in decimal, or 20 in hexadecimal.
- Are hex letters upper or lower case?
- Upper case, which matches the convention used in most protocol tables and hex dumps.