ASCII Converter

Convert text to ASCII decimal, hexadecimal, binary, and octal codes, or decode ASCII codes back to characters. Limited to standard ASCII (0-127) - non-ASCII characters are flagged, not silently mislabeled.

Conversion Mode
Output Format
Separator
0 characters

About ASCII

ASCII (American Standard Code for Information Interchange) is a character encoding standard that assigns each letter, digit, punctuation mark, and control signal a number from 0 to 127. Codes 32-126 are printable; 0-31 and 127 are control characters that were originally used to operate hardware like teletypes and printers.

ASCII Character Sets

Control Characters (0-31, 127)

  • • 0: NUL (null character)
  • • 7: BEL (bell/alert)
  • • 8: BS (backspace)
  • • 9: TAB (horizontal tab)
  • • 10: LF (line feed/newline)
  • • 13: CR (carriage return)
  • • 27: ESC (escape)
  • • 127: DEL (delete)

Printable Characters (32-126)

  • • 32: Space
  • • 33-47: Punctuation (!@#$%)
  • • 48-57: Digits (0-9)
  • • 65-90: Uppercase (A-Z)
  • • 97-122: Lowercase (a-z)
  • • 123-126: Symbols ({|}~)

Full ASCII Table (0-127)

Every standard ASCII code, decimal and hex, with control codes shown in brackets.

DecHexCharDecHexCharDecHexCharDecHexChar
000[NUL]3220[Space]6440@9660`
101[SOH]3321!6541A9761a
202[STX]3422"6642B9862b
303[ETX]3523#6743C9963c
404[EOT]3624$6844D10064d
505[ENQ]3725%6945E10165e
606[ACK]3826&7046F10266f
707[BEL]3927'7147G10367g
808[BS]4028(7248H10468h
909[TAB]4129)7349I10569i
100A[LF]422A*744AJ1066Aj
110B[VT]432B+754BK1076Bk
120C[FF]442C,764CL1086Cl
130D[CR]452D-774DM1096Dm
140E[SO]462E.784EN1106En
150F[SI]472F/794FO1116Fo
1610[DLE]483008050P11270p
1711[DC1]493118151Q11371q
1812[DC2]503228252R11472r
1913[DC3]513338353S11573s
2014[DC4]523448454T11674t
2115[NAK]533558555U11775u
2216[SYN]543668656V11876v
2317[ETB]553778757W11977w
2418[CAN]563888858X12078x
2519[EM]573998959Y12179y
261A[SUB]583A:905AZ1227Az
271B[ESC]593B;915B[1237B{
281C[FS]603C<925C\1247C|
291D[GS]613D=935D]1257D}
301E[RS]623E>945E^1267E~
311F[US]633F?955F_1277F[DEL]

ASCII vs Unicode

FeatureASCIIUnicode (UTF-8)
Character Count128 (7-bit, codes 0-127)Over 140,000 characters
Language SupportEnglish onlyAll world languages
Emoji SupportNoYes
Size1 byte per character1-4 bytes per character
CompatibilityUniversal legacy supportBackward compatible with ASCII

This converter works character by character, mapping each one to its standard ASCII code point (0-127) and flagging anything outside that range. If you need byte-level UTF-8 encoding instead - translating whole text into 8-bit binary and back, including accented letters and emoji - the Binary Translator is built specifically for that. For other number-base conversions, see the Hex Converter and Decimal to Binary tools.

Common Use Cases

  • Data Transmission: Sending text data between systems
  • File Formats: CSV, TXT, and plain text files
  • Programming: Character manipulation and string processing
  • Debugging: Inspecting character codes in data
  • Protocols: HTTP, SMTP, and FTP headers use ASCII
  • Sorting: Alphabetical ordering based on ASCII values

Interesting ASCII Facts

Case Conversion Trick

To convert between uppercase and lowercase, flip the 6th bit (add or subtract 32). For example: 'A' (65) + 32 = 'a' (97). This works because uppercase and lowercase letters are placed exactly 32 positions apart.

Digit to Number Conversion

To convert the character '5' to the number 5, subtract 48 (the ASCII code of '0'): '5' (53) - 48 = 5. This pattern works for all digits 0-9.

Historical Origin

ASCII was standardized in the 1960s for teletype machines. Code 127 (DEL) was designed to erase mistakes on paper tape by punching every hole in a column.

Frequently Asked Questions

What is the difference between ASCII and UTF-8?

ASCII is a 7-bit standard that encodes 128 characters (codes 0-127). UTF-8 is a variable-length Unicode encoding that represents well over 140,000 characters, including emoji and non-Latin scripts, while staying byte-compatible with ASCII for codes 0-127.

Why do printable ASCII characters start at code 32?

Codes 0-31 (plus 127) are reserved for control characters such as tab, line feed, and escape. Code 32 is the first printable character: a space.

Can ASCII represent accented letters, emoji, or non-Latin scripts?

No. Standard ASCII only covers codes 0-127, which is enough for unaccented English letters, digits, and basic punctuation. Characters like e with an accent, the euro sign, Chinese characters, or emoji require Unicode encodings such as UTF-8. This converter flags any character outside 0-127 instead of mislabeling it as ASCII.

What is 'extended ASCII', and does this converter support it?

Extended ASCII refers to various 8-bit character sets (codes 128-255) such as ISO-8859-1 or Windows-1252. There is no single universal standard for this range - the mapping depends on the code page in use. This converter only processes standard ASCII (0-127) so results stay unambiguous.

Why is the space character code 32?

Code 32 sits exactly 32 positions before the uppercase letters, which start at 65. That gap is what makes the uppercase/lowercase conversion trick (plus or minus 32) work. It was a deliberate choice in the original ASCII standard.

Popular Ways to Use This Tool

Explore focused ASCII converter guides for common use cases.