Browser-Based Client-Side No Upload

ASCII Converter

Convert text into ASCII decimal, hexadecimal, binary, or octal codes, or turn numeric character codes back into readable text. ASCII characters use codes 0–127. For other characters, the tool can show their Unicode code points where supported.

Text Input0 characters
0LINES
0CHARS
Decimal Character Codes
Client-Side Engine: Text and numeric character conversions run directly in your browser. TryFormatter does not upload your text to external servers.

What is ASCII?

ASCII stands for American Standard Code for Information Interchange. It defines numeric codes for 128 characters, including English letters, digits, punctuation, spaces, and control characters.

Standard ASCII uses values from 0 through 127. Each value fits within 7 bits, although ASCII values are commonly shown as 8-bit binary with a leading zero for readability. For example, uppercase A is decimal 65, hexadecimal 41, binary 01000001, and octal 101.

How to convert text to ASCII codes

  1. Enter source text Enter or paste text into the input area.
  2. Select output format Select Decimal, Hexadecimal, Binary, or Octal as the output format.
  3. Choose a delimiter Choose how codes should be separated, such as spaces, commas, new lines, or a custom delimiter.
  4. Copy or inspect results Copy the result or inspect individual characters in the character details table.

Text to ASCII code examples

Each standard ASCII character has the same numeric value regardless of whether that value is displayed in decimal, hexadecimal, binary, or octal.

Character Decimal Hex Binary Octal
H 72 48 01001000 110
e 101 65 01100101 145
l 108 6C 01101100 154
l 108 6C 01101100 154
o 111 6F 01101111 157

With spaces between values, Hello becomes:

  • Decimal: 72 101 108 108 111
  • Hexadecimal: 48 65 6C 6C 6F
  • Binary: 01001000 01100101 01101100 01101100 01101111
  • Octal: 110 145 154 154 157

How to convert ASCII codes back to text

You can also reverse the conversion and turn numeric character codes back into readable text.

  1. Switch to decode mode Select Codes → Text mode from the top switcher.
  2. Paste character codes Enter your numeric sequence, such as 84 114 121.
  3. Select the numeric format Choose Decimal, Hexadecimal, Binary, or Octal, or use automatic detection when the input format is clear.
  4. Review the decoded text The converter maps each value back to its character. In this example, 84 maps to T, 114 to r, and 121 to y, producing Try.

ASCII vs Unicode

Standard ASCII contains only 128 codes from 0 through 127. It covers basic English letters, digits, punctuation, whitespace, and control characters.

Unicode supports a much larger range of characters, including accented letters, non-Latin scripts, currency symbols, mathematical symbols, and emoji. The first 128 Unicode code points match standard ASCII values exactly.

  • A: ASCII 65 / Unicode U+0041
  • é: Unicode U+00E9 — not standard ASCII
  • : Unicode U+20B9 — not standard ASCII
  • 😀: Unicode U+1F600 — not standard ASCII

If the input contains a character outside the ASCII range, the tool should label it as a Unicode code point instead of incorrectly calling it an ASCII value.

Decimal, hexadecimal, binary, and octal ASCII values

The same character code can be displayed using different number systems:

  • Decimal: Base 10. Uppercase A is 65.
  • Hexadecimal: Base 16 using digits 0–9 and letters A–F. A is 41 or 0x41.
  • Binary: Base 2 using only 0 and 1. A is commonly shown as 01000001.
  • Octal: Base 8 using digits 0–7. A is 101.

Hexadecimal and binary are especially useful when inspecting bytes, debugging low-level data, or working with embedded systems. Decimal is often easier for learning and quick character-code lookups.

ASCII control characters and whitespace

Not every ASCII value is a visible character. Codes 0–31 and 127 are control characters.

  • TAB: Decimal 9, hexadecimal 09
  • LF (Line Feed): Decimal 10, hexadecimal 0A
  • CR (Carriage Return): Decimal 13, hexadecimal 0D
  • ESC (Escape): Decimal 27, hexadecimal 1B
  • SPACE: Decimal 32, hexadecimal 20

The character details view should use labels such as TAB, LF, and SPACE so invisible characters are easy to identify.

Use cases: when ASCII conversion is useful

  • Character lookup: Find the decimal, hexadecimal, binary, or octal value of a character.
  • Debugging text data: Inspect spaces, tabs, line endings, and other characters that may not be visible in normal text.
  • Embedded development: Prepare or inspect character values used in serial communication and byte-oriented applications.
  • Log inspection: Decode numeric character values found in diagnostic output or low-level data.
  • Learning: Compare how the same ASCII character appears in different number systems.
  • Testing: Create predictable numeric character sequences for parsers, protocols, or application test cases.

Common ASCII conversion mistakes

  • Calling values above 127 standard ASCII: Standard ASCII ends at decimal 127. Values from 128–255 may have different meanings in legacy single-byte encodings and should not automatically be labeled ASCII characters.
  • Confusing ASCII with UTF-8: ASCII defines character codes from 0–127. UTF-8 is a Unicode encoding that represents those same ASCII characters using identical single-byte values.
  • Removing delimiters: A decimal string such as 72101108 is ambiguous because individual character codes can contain different numbers of digits. Use spaces, commas, or new lines between decimal values.
  • Dropping binary padding: 1000001 and 01000001 represent the same numeric value, but the 8-bit form makes byte boundaries easier to read.
  • Treating Unicode characters as ASCII: Characters such as , é, and emoji require Unicode handling and should be identified separately.

ASCII reference table (0–127)

Standard ASCII contains 128 values. Codes 0–31 and 127 are control characters, while codes 32–126 are printable characters.

Use the expandable reference table to compare decimal, hexadecimal, binary, octal, and character names.

View full ASCII reference table
Dec Hex Binary Oct Char / Name Category
00000000000000NUL (Null)Control
10100000001001SOH (Start of Heading)Control
20200000010002STX (Start of Text)Control
30300000011003ETX (End of Text)Control
40400000100004EOT (End of Transmission)Control
50500000101005ENQ (Enquiry)Control
60600000110006ACK (Acknowledge)Control
70700000111007BEL (Bell / Beep)Control
80800001000010BS (Backspace)Control
90900001001011HT (Tab, )Control / Whitespace
100A00001010012LF (Newline, )Control / Whitespace
110B00001011013VT (Vertical Tab)Control
120C00001100014FF (Form Feed)Control
130D00001101015CR (Carriage Return, )Control / Whitespace
140E00001110016SO (Shift Out)Control
150F00001111017SI (Shift In)Control
161000010000020DLE (Data Link Escape)Control
171100010001021DC1 (XON)Control
181200010010022DC2 (Device Control 2)Control
191300010011023DC3 (XOFF)Control
201400010100024DC4 (Device Control 4)Control
211500010101025NAK (Negative Ack)Control
221600010110026SYN (Synchronous Idle)Control
231700010111027ETB (End of Trans. Block)Control
241800011000030CAN (Cancel)Control
251900011001031EM (End of Medium)Control
261A00011010032SUB (Substitute)Control
271B00011011033ESC (Escape)Control
281C00011100034FS (File Separator)Control
291D00011101035GS (Group Separator)Control
301E00011110036RS (Record Separator)Control
311F00011111037US (Unit Separator)Control
322000100000040SPACEPrintable / Whitespace
332100100001041!Printable
342200100010042"Printable
352300100011043#Printable
362400100100044$Printable
372500100101045%Printable
382600100110046&Printable
392700100111047'Printable
402800101000050(Printable
412900101001051)Printable
422A00101010052*Printable
432B00101011053+Printable
442C00101100054,Printable
452D00101101055-Printable
462E00101110056.Printable
472F00101111057/Printable
4830001100000600Printable (Digit)
4931001100010611Printable (Digit)
5032001100100622Printable (Digit)
5133001100110633Printable (Digit)
5234001101000644Printable (Digit)
5335001101010655Printable (Digit)
5436001101100666Printable (Digit)
5537001101110677Printable (Digit)
5638001110000708Printable (Digit)
5739001110010719Printable (Digit)
583A00111010072:Printable
593B00111011073;Printable
603C00111100074<Printable
613D00111101075=Printable
623E00111110076>Printable
633F00111111077?Printable
644001000000100@Printable
654101000001101APrintable (Uppercase)
664201000010102BPrintable (Uppercase)
674301000011103CPrintable (Uppercase)
684401000100104DPrintable (Uppercase)
694501000101105EPrintable (Uppercase)
704601000110106FPrintable (Uppercase)
714701000111107GPrintable (Uppercase)
724801001000110HPrintable (Uppercase)
734901001001111IPrintable (Uppercase)
744A01001010112JPrintable (Uppercase)
754B01001011113KPrintable (Uppercase)
764C01001100114LPrintable (Uppercase)
774D01001101115MPrintable (Uppercase)
784E01001110116NPrintable (Uppercase)
794F01001111117OPrintable (Uppercase)
805001010000120PPrintable (Uppercase)
815101010001121QPrintable (Uppercase)
825201010010122RPrintable (Uppercase)
835301010011123SPrintable (Uppercase)
845401010100124TPrintable (Uppercase)
855501010101125UPrintable (Uppercase)
865601010110126VPrintable (Uppercase)
875701010111127WPrintable (Uppercase)
885801011000130XPrintable (Uppercase)
895901011001131YPrintable (Uppercase)
905A01011010132ZPrintable (Uppercase)
915B01011011133[Printable
925C01011100134\Printable
935D01011101135]Printable
945E01011110136^Printable
955F01011111137_Printable
966001100000140` (Backtick)Printable
976101100001141aPrintable (Lowercase)
986201100010142bPrintable (Lowercase)
996301100011143cPrintable (Lowercase)
1006401100100144dPrintable (Lowercase)
1016501100101145ePrintable (Lowercase)
1026601100110146fPrintable (Lowercase)
1036701100111147gPrintable (Lowercase)
1046801101000150hPrintable (Lowercase)
1056901101001151iPrintable (Lowercase)
1066A01101010152jPrintable (Lowercase)
1076B01101011153kPrintable (Lowercase)
1086C01101100154lPrintable (Lowercase)
1096D01101101155mPrintable (Lowercase)
1106E01101110156nPrintable (Lowercase)
1116F01101111157oPrintable (Lowercase)
1127001110000160pPrintable (Lowercase)
1137101110001161qPrintable (Lowercase)
1147201110010162rPrintable (Lowercase)
1157301110011163sPrintable (Lowercase)
1167401110100164tPrintable (Lowercase)
1177501110101165uPrintable (Lowercase)
1187601110110166vPrintable (Lowercase)
1197701110111167wPrintable (Lowercase)
1207801111000170xPrintable (Lowercase)
1217901111001171yPrintable (Lowercase)
1227A01111010172zPrintable (Lowercase)
1237B01111011173{Printable
1247C01111100174|Printable
1257D01111101175}Printable
1267E01111110176~Printable
1277F01111111177DEL (Delete)Control

Privacy and browser-based processing

Text and numeric character-code conversion runs in your browser. TryFormatter does not need to upload the entered text to its server to perform the conversion.

Frequently Asked Questions

What is the ASCII code for uppercase A?

Uppercase A has decimal ASCII code 65, hexadecimal 41, binary 01000001, and octal 101.

What is the ASCII code for a space?

The ASCII code for a space is decimal 32, hexadecimal 20, binary 00100000, and octal 040.

What is the standard ASCII range?

Standard ASCII contains 128 codes numbered from 0 through 127. Codes 0–31 and 127 are control characters, while codes 32–126 are printable characters.

Can ASCII codes be converted back to text?

Yes. In Codes → Text mode, numeric character codes can be converted back into readable characters. For example, decimal values 72 101 108 108 111 decode to Hello.

What is the difference between ASCII and Unicode?

ASCII defines 128 basic character codes from 0 through 127. Unicode supports a much larger range of writing systems, symbols, and emoji while preserving those original ASCII values as its first 128 code points.

Can this tool convert binary, hexadecimal, and octal ASCII values?

Yes. The converter supports text and character-code conversion using decimal, hexadecimal, binary, and octal formats. Prefixes such as 0x or 0b should only be described as automatically detected if the implemented parser supports them.

Does TryFormatter upload my text to a server?

No server upload is required for the conversion. Text and numeric character-code processing run locally in your browser.