Text to ASCII Converter
Convert text to ASCII/Unicode character codes and back.
Convert text to ASCII/Unicode character codes and back.
The Text to ASCII Converter changes each character in a text into its numeric character code, useful for understanding encoding, debugging text issues or simple obfuscation. It can also convert a list of codes back into readable text.
For related tasks, try Base64 Encoder / Decoder, URL Encoder / Decoder or HTML Entity Encoder / Decoder.
Each character's code point is read with the string charCodeAt method and displayed as a decimal number; the reverse direction rebuilds characters with fromCharCode.
The text “Hi” converts to the codes 72 105, since H is character code 72 and i is character code 105.
Yes, the underlying character codes work for the full Unicode range, not only the original 128-character ASCII set.
Codes are separated by single spaces.
Yes, though some characters outside the basic plane may be represented as a pair of codes.