Skip to content
Tezmy Tools

Text to ASCII Converter

Turn text into ASCII character codes in decimal, hex, binary or octal, and back

13 characters.

Runs in your browser. Nothing is uploaded.

About the Text to ASCII Converter

Every character on a computer has a number. The letter A is 65, a space is 32 and the digit 0 is 48. This tool shows those numbers for any text you type, in decimal, hexadecimal, binary or octal, with the separator you want between them. It also works in reverse: choose codes to text, paste the numbers and get the words back. Characters beyond plain English, such as accented letters and emoji, use their Unicode number, and the note says how many went beyond ASCII. Hex, binary and octal codes can be padded with zeros to a fixed width. It all runs in your browser.

Updated October 2026

How to use the Text to ASCII Converter

  1. 1Type or paste your text into the left box.
  2. 2Choose Text to character codes, or the reverse.
  3. 3Choose the code format: decimal, hex, binary or octal.
  4. 4Choose the separator and whether to pad with zeros.
  5. 5Copy the result or download it.

Uses for ASCII codes

Students learn character encoding by converting words to codes. Programmers check what a character really is when a file contains an odd symbol. Puzzle makers hide messages in numbers. Embedded developers build tables of character codes. Looking up one character in a table is easy, but a whole sentence is faster with a tool.

The reverse direction decodes messages that were given as a row of numbers.

    Choosing a format

    Decimal is the traditional way to list ASCII codes. Hex is what programmers use in code and dumps. Binary shows the actual bits of each character, eight per byte. Octal appears in Unix tools. All four are the same numbers in different notations.

    • A in decimal: 65
    • A in hex: 41
    • A in binary: 01000001
    • A in octal: 101

    Tips

    Use a space or a comma as the separator if you will convert the codes back with this tool. For a list you want to paste into a spreadsheet, choose a new line. If you need the UTF-8 bytes of non-English text instead of code points, use the Text to Octal Converter or the Text Encoding Converter.

      Using it on phone and computer

      Type or paste your text and the codes appear straight away. On a phone, change the code format with the selector and tap Copy to move the codes to another app. On a computer you can also download them as a file.

        Accuracy and privacy

        Codes for English letters, digits and symbols are the classic ASCII values. Anything beyond that gets its Unicode code point, which can be larger than 255, so a table of single bytes would not fit. Nothing you type is uploaded or stored, and closing the tab removes it. For hexadecimal codes use the Hex to ASCII Converter, and the Binary Translator shows the same text in bits.

          Features

          • Decimal, hex, binary and octal codes
          • Works in both directions
          • Choice of separator
          • Optional zero padding
          • Reports characters beyond ASCII
          • Private: nothing is uploaded

          Frequently asked questions

          How do I convert text to ASCII?

          Type the text. Each character becomes its code, so Hi becomes 72 105 in decimal. Pick hex for 48 69, binary for 01001000 01101001, or octal for 110 151.

          What is ASCII?

          The American Standard Code for Information Interchange gives numbers 0 to 127 to English letters, digits, punctuation and control characters. Capital A is 65 and small a is 97.

          What happens with accents and emoji?

          They are outside ASCII, so the tool gives their Unicode code point instead: for example e with an acute accent is 233 and a smiling face is 128512. The note counts how many characters were beyond ASCII.

          How do I convert ASCII codes back to text?

          Choose Character codes to text, set the code format that matches your numbers and paste them, separated by spaces, commas or lines. The words appear on the right.

          Why pad hex and binary codes?

          Padding makes every code the same width: a hex value of 4 becomes 04, and a binary value of 1001000 becomes 01001000. It helps when you need bytes to line up or to be read by another program.

          Is my text uploaded?

          No. The conversion happens in your browser and your text is not sent to a server.

          Related tools