fast&private

Convert Text to ASCII Codes

Convert any text into its list of decimal ASCII codes.

Your data is never sent to any server.

Text → ASCII ASCII → Text

The text to ASCII converter shows the numeric code of each character in your text, separated by spaces and ready to copy. The conversion is instant and runs as you type.

The codes people look up most

CharacterCodeCharacterCode
space32A65
048Z90
957a97
line feed10z122

Digits start at 48, capitals at 65 and lowercase letters at 97. Two well-known programming tricks come straight out of that: subtracting 48 from a digit gives its numeric value, and adding or subtracting 32 flips a letter’s case.

Why accented letters have no ASCII code

The original ASCII is 7-bit: it defines characters 0 to 127, and there are no accented letters in that range. Everything sold as “extended ASCII” is really a set of different tables that filled the remaining 128 slots in mutually incompatible ways, which is where the disagreements come from:

CharacterUnicode / Latin-1CP437 (MS-DOS)ASCII
é233130not defined
ñ241164not defined
ü252129not defined
€8364not definednot defined

This tool always returns the Unicode column, the current standard used by browsers, programming languages and text files alike. The CP437 column only survives in the Alt shortcuts inherited from MS-DOS on Windows.

If your text is plain ASCII, the distinction doesn’t affect you: Unicode’s first 128 code points are exactly ASCII’s, so “A” is 65 in both columns.

Finding invisible characters

Looking at the codes is the quickest way to find what you cannot see. Text copied from a web page may carry a non-breaking space (160) instead of a normal space (32), and a Windows file puts a 13 before every line feed 10. Both break comparisons and searches without anything looking wrong on screen.

How to use Text to ASCII

  1. 1

    Type or paste your text

    The conversion runs as you type, without pressing any button.

  2. 2

    Read the codes

    Each character appears as its decimal number, separated by spaces and in the same order as the text.

  3. 3

    Mind the non-ASCII note

    If your text has accents or emoji, a note reminds you that those characters fall outside 7-bit ASCII and that what you see is their Unicode code point.

Frequently asked questions

What is the ASCII code of a character?

It is the number the ASCII standard assigns to that character, from 0 to 127. For example, "A" is 65, "a" is 97 and a space is 32. It is the historical basis of text encoding in computing.

What is the ASCII code for the letter A?

Capital "A" is 65 and lowercase "a" is 97. That gap of 32 between cases repeats across the whole alphabet, which is why changing case is so cheap for a computer.

What format are the codes returned in?

Decimal, separated by spaces. That is the usual format in exercises and in most programming languages; if you need hexadecimal, run the numbers through a base converter.

Why does "e" with an accent give 233 and not 130?

Because 233 is the Unicode code point for that character, which also matches its Latin-1 value. 130 comes from CP437, the MS-DOS table behind the old Alt+130 shortcut on Windows. Neither is really ASCII, since the original standard stops at 127 and has no accented letters at all.

What codes do spaces and line breaks have?

A space is 32, a line feed is 10 and a carriage return is 13. They are invisible control characters, and looking at their codes is the fastest way to find out why a text does not behave as you expect.