Text to ASCII Converter

Type or paste a string. Every character turns into its ASCII number in decimal, hex, binary, or octal, with tabs, line breaks, accented letters, and emoji flagged so nothing hides in the output.

Convert text to ASCII codes

Try:
Number system

11 characters, all inside ASCII

Character by character

  1. H72
  2. i105
  3. ,44
  4. ␠32
  5. T84
  6. o111
  7. o111
  8. l108
  9. e101
  10. x120
  11. e101
  • Printable ASCII
  • Space, tab, line break, control
  • Outside ASCII, shown as Unicode

A login fails. The password looks right. Paste the string here and a stray 32 at the end gives the answer: a trailing space. Fonts hide characters, numbers do not. The tile strip pairs each character with its code, so you read the string the way a parser does.

Hi, Toolexe in four number systems

The first five characters of the default sample, spelled every way the converter offers:

CharDecimalHexBinaryOctal
H724801001000110
i1056901101001151
,442C00101100054
space322000100000040
T845401010100124

Three ranges worth memorizing

48 to 57
Digits 0 through 9. Subtract 48 to get the digit's value: 7 is 55, and 55 minus 48 is 7. Hand-written number parsers in C work this way.
65 to 90
Uppercase A through Z.
97 to 122
Lowercase a through z.

Each lowercase letter sits 32 above its capital. A is 65, a is 97. In binary, 01000001 against 01100001, a single bit apart. Plenty of old case-conversion code flips this one bit instead of using a lookup table, which is why the trick breaks on é and every other letter past 127.

Invisible characters get a number too

Whitespace and control characters render as nothing on screen. In the tile strip they turn teal and get a symbol, so a tab never passes for four spaces again.

CharacterDecHexTileWhere the character causes trouble
Tab909⇥Makefiles demand tabs. TSV exports break when an editor swaps tabs for spaces.
Line feed100A↵The line ending on Linux and macOS.
Carriage return130D␍Windows ends lines with 13 then 10. A shell script saved this way fails with a bad interpreter error on Linux.
Space3220␠Trailing spaces in passwords, API keys, CSV headers.
Delete1277F^?Rare in text. Shows up in terminal paste junk.

Pasted line breaks always read as 10

Browsers rewrite every line break typed or pasted into a text box as a single 10. Paste a Windows file here and the 13s vanish before the converter sees them. To check real line endings, use Open a file instead. The file is read as saved, so a CRLF file shows 13 10 at each line end, and a byte order mark at the start shows up as 65279.

Copy a phrase out of a web page or a Word document and the gap between two words is often 160, a non-breaking space, not 32. On screen the two look identical. To == or a regex, the two differ. The tile for 160 turns amber. The summary line counts the character as outside ASCII.

Accented letters, emoji, and everything past 127

ASCII stops at 127. The word café ends in é, a letter with no ASCII slot. The converter prints 233, the Unicode code point U+00E9, and marks the tile amber. Emoji sit much higher: 👍 is 128077, or U+1F44D.

A code point is not a byte. Saved as UTF-8, é takes two bytes, C3 A9. The thumbs-up takes four, F0 9F 91 8D. When you need the bytes a file or a network packet holds, the UTF-8 converter is the right page. This one answers which character you have, not how many bytes the character costs.

An earlier version of this page used charCodeAt() and split 👍 into two numbers, 55357 and 56397. Those are UTF-16 surrogate halves, meaningless on their own. The converter now reads whole code points, so one emoji gives one number.

Picking a separator

Where this converter stops

Text to ASCII questions

Short answers to the questions people bring to this page.

What is the ASCII code for a space?

32 in decimal, 20 in hex, 00100000 in binary. URLs encode a space as %20 for this reason.

Why does a file show 13 10 at the end of every line?

The file has Windows line endings: a carriage return (13) followed by a line feed (10). Linux and macOS use 10 alone. Switch the line ending setting in your editor if a script or a diff complains. Pasted text always shows 10 alone, since browsers rewrite line breaks in text boxes, so load the file with Open a file to see the real endings.

Do uppercase and lowercase letters have different codes?

Yes, 32 apart. A is 65, a is 97. Compare codes only after both strings use the same case.

Why is é shown as 233 when ASCII ends at 127?

ASCII has no accented letters, so the converter falls back to the Unicode code point, 233 (U+00E9), and colors the tile amber. Stored as UTF-8, the same letter takes two bytes, C3 A9.

How do I get one hex string with no spaces?

Pick Hex, set the separator to None, and keep Fixed width on. Hi, Toolexe becomes 48692C20546F6F6C657865.

Does my text get sent anywhere?

No. The conversion runs in JavaScript inside your browser. Nothing you type reaches Toolexe servers.