Text to ASCII and Unicode Converter
Enter text to list the code of every character in decimal and hexadecimal, plus its UTF-8 bytes. Or enter decimal codes to rebuild the text.
Result
72 101 108 108 111
U+0048 U+0065 U+006C U+006C U+006F
48 65 6c 6c 6f
- Characters
- 5
- Plain ASCII only
- Yes
Formula
- ASCII covers codes 0 to 127
- A = 65, a = 97, 0 = 48, space = 32
- Unicode code points are written as U+ followed by hexadecimal digits
How the Text to ASCII and Unicode Converter works
ASCII is a 7-bit standard from the 1960s that assigns the numbers 0 to 127 to English letters, digits, punctuation and control codes. Unicode extends the same idea to every writing system and keeps the first 128 codes identical to ASCII.
A Unicode code point is the number of a character. UTF-8 is the usual way of storing it as bytes: one byte for ASCII and up to four for other characters.
Worked example
"Hello" is 72 101 108 108 111 in decimal, or U+0048 U+0065 U+006C U+006C U+006F as Unicode code points.
Frequently asked questions
What is the ASCII code for A?
Capital A is 65 and lowercase a is 97. The lowercase letters are always 32 higher than the capitals.
What is the difference between ASCII and Unicode?
ASCII defines 128 characters. Unicode defines more than 140,000 and includes ASCII as its first 128 code points.
Related calculators
- Binary Translator: Text to BinaryConvert text to binary code and binary back to text. Uses 8-bit bytes with UTF-8, so it handles ASCII and every other character.
- Hex Translator: Text to HexadecimalConvert text to hexadecimal bytes and hex back to text using UTF-8. Useful for reading hex dumps and encoding strings.
- Letter to Number Converter (A1Z26)Convert letters to their alphabet position numbers, where A is 1 and Z is 26, or convert numbers back to letters.
- Morse Code TranslatorTranslate text to Morse code and Morse code back to text. Supports letters, numbers and punctuation in International Morse Code.
- Base64 Encoder and DecoderEncode text to Base64 or decode Base64 back to text, with full UTF-8 support and a URL-safe variant.
- Caesar Cipher Encoder and SolverEncrypt or decrypt text with a Caesar shift cipher. Shows all 25 possible shifts so you can solve a cipher without knowing the key, including ROT13.
- Hex CalculatorAdd, subtract, multiply and divide hexadecimal, binary, octal or decimal numbers, and apply bitwise AND, OR and XOR. Results in all four bases.
- Chmod CalculatorBuild Unix file permissions by ticking read, write and execute for owner, group and others. Get the octal number, symbolic notation and chmod command.
- IEEE 754 Floating Point ConverterConvert a decimal number to its IEEE 754 single and double precision representation: sign, exponent and mantissa bits, hex value and the exact stored number.
- Subnet CalculatorCalculate the network address, broadcast address, host range, subnet mask and number of hosts for any IPv4 address and CIDR prefix.
Related unit converters
Calculations run in your browser and nothing you enter is sent to a server. Results are provided for general information. Check critical figures independently before relying on them.