Text to ASCII
Convert text into its ASCII/Unicode character codes, in decimal, hex, or binary.
About this tool
Convert any piece of text into the numeric code behind each character — useful for learning how computers represent text, debugging an encoding issue, or generating a list of codes to feed into another program.
Full Unicode, not just the first 128 codes
Despite the name, this isn't limited to the traditional 0–127 ASCII table — every character is converted using its true Unicode code point, so accented letters, symbols, emoji, and non-Latin scripts all produce a valid code, just a larger number than plain English letters.
Choosing a format and separator
Decimal is the format most people recognize from an ASCII table; hex is what shows up most often in programming and byte dumps; binary shows the raw bits. The separator between codes — space, comma, or newline — just depends on how you plan to use the output afterward, whether that's pasting into a spreadsheet or a script.
Frequently asked questions
Does a space or line break in my text get its own code?
Yes — every character is converted, including whitespace. A space becomes code 32, so leading or trailing spaces in your input aren't silently dropped.
How is this different from Base64 encoding?
Base64 repacks raw bytes into a compact, printable alphabet meant for storage or transmission. This instead lists each character's own numeric identity one by one — it's for inspection and learning, not for compact encoding.