HandyBench

Text to ASCII Converter

Convert text to character codes and back.

How to use the Text to ASCII Converter

  1. 1 Choose Text → Codes or Codes → Text.
  2. 2 Select decimal or hexadecimal output.
  3. 3 Enter your text or codes and copy the result.

What the numbers mean

ASCII is a 7-bit table of 128 codes: 0 to 31 and 127 are control characters (newline is 10), and 32 to 126 are the printable letters, digits and punctuation. Unicode keeps those same 128 values for its first block, then continues upward, so the code for A is 65 in both. This tool reports the full Unicode code point of each character, so it works beyond ASCII, and the name is just what people search for.

Text is walked one code point at a time, which means an emoji counts as one character, not two. Decimal output is the plain number; hexadecimal output is upper-case with no 0x or U+ prefix and no padding.

CharacterDecimalHex
A6541
a9761
space3220
é233E9
€836420AC
😀1285121F600

Worked example

Hi! becomes 72 105 33 in decimal and 48 69 21 in hex. Decoding goes the other way: each token is parsed in the base you selected and turned back into a character. Tokens can be separated by spaces, commas or both.

Pitfalls when decoding

  • The base applies to every token. The token 41 is the character ) in decimal mode but A in hexadecimal mode, so match the dropdown to your data before reading the output.
  • Parsing is strict. Every token must be made up entirely of digits of the chosen base (hex also allows a leading 0x), so 65abc in decimal mode raises an error naming that token. Negative numbers, decimals and values above 1114111 (0x10FFFF) are rejected the same way.
  • "Extended ASCII" is not one thing. Values 128 to 255 differ between code pages. In Windows-1252 the euro sign is 128, whereas in Unicode it is 8364. This tool follows Unicode, so a table from an old Windows document may not match.
  • Control codes are real characters. A line break typed into the box is reported as 10, and a tab as 9.

If you need the bit patterns instead of the numbers, use the binary text converter. For arbitrary number base conversions the number base converter is more flexible.

Examples

  • ▸ Converting "A" to 65 (decimal) or 41 (hex).
  • ▸ Decoding "72 105" back to "Hi".

Frequently asked questions

Is this ASCII or Unicode?

It uses each character’s Unicode code point, which matches ASCII for the first 128 characters and also handles letters, symbols and emoji beyond ASCII.

How should I separate codes when decoding?

Separate each numeric code with a space or comma. Choose the matching base (decimal or hexadecimal) before decoding, because the same token means different characters in each: 41 is ")" in decimal but "A" in hex.

What is the ASCII code for a space or a new line?

A space is 32 (hex 20) and a line feed is 10 (hex A). Codes 0 to 31 are non-printing control characters, and printable ASCII runs from 32 to 126.

How are emoji and symbols handled?

Each character is reported by its Unicode code point, so the euro sign is 8364 (hex 20AC) and the grinning-face emoji is 128512 (hex 1F600). These are not ASCII values because ASCII only covers 0 to 127.

What happens with an invalid code when decoding?

A token that is not a whole number in the chosen base, is negative, or is above 1114111 (hex 10FFFF) produces an error naming that token. The whole token is checked, so 65abc in decimal mode is rejected rather than quietly read as 65. In hex mode an optional 0x prefix is accepted.