ASCII to Binary

Convert ASCII to binary code

0/500 characters. Space or comma separated decimal codes (0-255).

ASCII to Binary: Convert Character Codes into Eight-Bit Values

ASCII assigns numeric codes to letters, digits, punctuation, and control characters. Writing those codes in base two shows the same values as groups of 0s and 1s. This ASCII to Binary guide explains the relationship, shows how to check the conversion by hand, and describes exactly what the calculator accepts. Enter decimal character-code numbers such as 72 105 in the tool above to get 01001000 01101001.

One distinction matters: the calculator expects decimal ASCII codes, not letters typed directly. The number 72 represents uppercase H, and its eight-bit binary form is 01001000. If you want to enter the letter H itself, use a text-to-binary converter; this page formats the numeric code that you provide. This separation makes the ASCII code to binary conversion explicit and easy to verify.

Decimal ASCII code 72 represents uppercase H and is written as the eight-bit binary byte 01001000.
One code, one byte: decimal 72 becomes 01001000, the ASCII code for H.

How ASCII Codes Become Binary

Binary is a base-2 number system. Each position represents a power of two: from right to left, an eight-bit byte has place values 1, 2, 4, 8, 16, 32, 64, and 128. To express a decimal code in binary, identify which place values add up to the number and put a 1 in those positions. Put 0 in the other positions.

For H, the decimal code is 72. Since 72 = 64 + 8, set the 64 place and the 8 place to 1. The other six places are 0, producing 01001000. This eight-bit form is the byte representation. The same method applies to every ASCII code, and the order of the codes follows the order of the characters in the text.

Eight-bit value = 128b₇ + 64b₆ + 32b₅ + 16b₄ + 8b₃ + 4b₂ + 2b₁ + b₀

Each b is either 0 or 1. For instance, the byte 01000001 equals 64 + 1 = 65, the decimal code for A. An ASCII to binary conversion is therefore a number-base conversion applied to each character code separately—not one conversion of the entire sentence as a single number.

  1. Find the character code. Look up the character in an ASCII table and note its decimal value.
  2. Convert the value to base two. Repeatedly divide by 2 or use the powers-of-two place values.
  3. Pad to eight digits. Add leading zeros until the result is one byte wide.
  4. Repeat in order. Convert each following character code to its own eight-bit group.

ASCII to Binary Table for Common Characters

This compact ASCII to binary table lists common printable characters, decimal codes, and their eight-bit bytes. It doubles as an ASCII to binary chart for checking a result or learning the code patterns. Standard ASCII defines values 0–127; control codes within that range may not have a visible glyph.

Selected ASCII table to binary values
CharacterDecimal ASCII codeEight-bit binaryHex
Space320010000020
!330010000121
0480011000030
1490011000131
A650100000141
B660100001042
H720100100048
i1050110100169
a970110000161
?63001111113F

Uppercase and lowercase letters have different codes. For example, A is 65 and a is 97, so their binary values differ. Spaces and punctuation also have assigned codes. Keeping a full byte for each value preserves clear boundaries when the output is read, copied, or passed to another program.

Worked Examples: Convert ASCII to Binary

Convert ASCII code 65 to binary

Decimal 65 is 64 + 1. Set the 64 and 1 positions to 1 and the other positions to 0: 01000001. In a standard ASCII table, decimal 65 is uppercase A. So the code-to-binary result is 01000001.

Convert the codes for “Hi”

H has code 72, which becomes 01001000. Lowercase i has code 105, which becomes 01101001. Entering 72 105 or 72, 105 returns 01001000 01101001. The byte sequence corresponds to “Hi” when interpreted as ASCII text, although this converter itself only transforms the numbers.

Convert “A B” including its space

A is code 65, the space is code 32, and B is code 66. Convert them in order to get 01000001 00100000 01000010. Omitting the space code would join the visible letters when the sequence is decoded.

Represent zero and the maximum byte

Code 0 is 00000000; it is a non-printing NUL control value. Code 255 is 11111111. The latter fits in a byte but is not part of standard ASCII. These examples show why the converter accepts byte values through 255 while describing 0–127 as standard ASCII.

ASCII decimal codes 72, 105, and 33 convert in order to binary bytes 01001000, 01101001, and 00100001, representing Hi followed by an exclamation mark.
Convert each decimal code separately and retain its position: 72 105 33 → 01001000 01101001 00100001.
Example conversions from decimal ASCII codes to binary bytes
Decimal inputCharacter meaningBinary output
65A01000001
72 105Hi01001000 01101001
65, 32, 66A B01000001 00100000 01000010
48 490100110000 00110001

Using the Online ASCII to Binary Converter

The online ASCII to binary converter takes decimal code numbers and returns one eight-bit group per value. Use spaces or commas between codes. The output is separated with spaces for readability; the spaces are delimiters and are not extra binary bits.

  • Enter decimal whole numbers from 0 through 255.
  • Separate multiple values with spaces or commas, such as 72, 105.
  • Do not enter letters, hexadecimal prefixes, negative signs, or fractional values.
  • Each result is padded with leading zeros to exactly eight bits.
  • The complete input is limited to 500 characters.
  • Use Convert, Copy to clipboard, Clear, or Ctrl+Enter to operate the tool.

For example, enter 65 66 67 to get 01000001 01000010 01000011. The calculator is a decimal-code formatter, rather than a character-input encoder: if you enter A instead of 65, it reports an invalid ASCII code. This distinction helps users select the right converter and understand what the result means.

ASCII, Hexadecimal, and Binary Compared

The same character code can be written in several bases. Uppercase A is decimal 65, hexadecimal 41, and binary 01000001. These are three representations of one numeric code. This converter takes the decimal form and returns binary. To begin with hexadecimal, convert HEX to Decimal first or use a direct hexadecimal-to-binary tool.

“ASCII hex to binary” may describe a workflow that begins with an ASCII code written in hexadecimal. For example, hexadecimal 41 equals decimal 65, which becomes 01000001. The ASCII-to-binary calculator expects 65, not 41 as a hexadecimal string; entering 41 will correctly treat it as decimal forty-one. Labeling the source base prevents a common conversion error.

ASCII is a character assignment, while binary is a number representation. Standard ASCII has 128 code points, from 0 through 127. Eight-bit containers can hold 256 possible values. Values 128–255 may be used by other encodings or applications, but their meaning is not universal ASCII. This tool simply formats each allowed input value as a byte.

ASCII to Binary in C and File Conversion

Searches for ASCII to binary C or ASCII to binary C code usually refer to a program that prints each character code as bits. In a typical implementation, a program gets a numeric code, validates its range, and formats the value with eight binary positions. This web calculator performs the numeric conversion in the browser; it does not compile or run C source code.

An ASCII to binary file converter would need to read file bytes and preserve or interpret its encoding. This page does not upload files; it accepts pasted decimal code numbers. A file may also contain UTF-8 text, binary data, or another format, so simply treating every byte as standard ASCII can produce incorrect or unreadable results. Check the file encoding and use an appropriate file-processing tool when converting actual files.

The phrase ASCII FBX to binary refers to a different kind of task when FBX means the 3D interchange file format. An ASCII FBX to binary FBX conversion changes how a 3D scene file is serialized; it is not the same operation as changing an ASCII character code into binary digits. This code converter does not open or convert FBX assets.

Choose the Right Number Converter

Use HEX to Decimal when a hexadecimal value needs to be read as a base-10 number. Binary to Decimal converts a base-2 value into decimal, while Decimal to Binary changes a base-10 number into bits. For the other decimal-to-hex direction, use Decimal to HEX.

These tools handle numeric bases. Character-code tools add a character mapping: ASCII-to-binary starts with decimal character codes, whereas a text encoder starts with letters. Decide whether your input is text, a code number, or a value written in another base before converting.

“A character has a code; a code has a binary representation. Convert the code in the correct base, one byte at a time.”

Conclusion: Format Each ASCII Code as One Byte

To convert ASCII codes to binary, take each decimal value, express it in base two, and pad it to eight digits. The converter accepts comma- or space-separated whole numbers from 0 to 255 and returns one byte for each value. Standard ASCII covers 0–127; higher accepted values are byte values, not standard ASCII characters. Enter decimal codes rather than letters or hexadecimal text, and keep each code in its original order.

How do I convert ASCII to binary?

Find the decimal ASCII code for each character, then write each code as an eight-bit binary value. For example, uppercase H is code 72, which becomes 01001000.

What does an ASCII to binary converter do?

This converter takes decimal character codes from 0 to 255 and formats each value as an eight-bit binary byte. Enter codes separated by spaces or commas, such as 72 105 for Hi.

How do I use this ASCII to binary converter online?

Enter decimal ASCII code values in the input field, separated by spaces or commas, and select Convert. Each valid code from 0 to 255 is returned as an eight-bit group. The input field accepts up to 500 characters.

Does this tool accept letters as input?

No. The input field expects decimal code numbers, not literal characters. For example, enter 65 to convert the ASCII code for A into 01000001. Use a text-to-binary tool if you want to type letters directly.

What is the ASCII code to binary conversion for H?

Uppercase H has decimal ASCII code 72. Its eight-bit binary representation is 01001000.

What is the ASCII to binary conversion for Hi?

H is decimal code 72 and i is decimal code 105. Enter 72 105 to get 01001000 01101001. This page accepts the numeric codes; it does not take the characters Hi as input.

How do I convert from ASCII to binary by hand?

Look up each character’s decimal ASCII value, convert that value to base 2, and pad the result with leading zeros until it has eight bits. Converting ASCII to binary is a per-code operation: preserve the character order and keep one byte for each code.

What is an ASCII table to binary lookup?

An ASCII table to binary lookup starts with a character, finds its assigned decimal code, and writes that value as eight binary digits. For example, A maps to decimal 65 and binary 01000001.

Can I use an ASCII to binary table?

Yes. The article includes a compact ASCII-to-binary table for common printable characters. Standard ASCII assigns codes 0 through 127; the converter also accepts values through 255 and formats them as bytes.

How does an ASCII to binary chart help?

An ASCII to binary chart shows the character, its decimal code, and its eight-bit representation together. It is useful for checking a result or understanding how a byte such as 01000001 represents A.

What does the ASCII to binary formula mean?

For a decimal code n between 0 and 255, express n as a sum of powers of two from 128 down to 1, then write the corresponding bits in that order. Add leading zeros so every result has eight places.

Why are there eight binary digits for each code?

The converter represents each value as one byte, or eight bits. Leading zeros are added to shorter binary values so the byte width stays consistent, which makes the output easier to read and combine.

Can I enter codes separated by commas?

Yes. Use either spaces or commas to separate decimal codes. For example, 72, 105 and 72 105 both produce 01001000 01101001.

Can I convert several ASCII codes at once?

Yes. Enter multiple values separated by spaces or commas. The converter returns one eight-bit group for each code in the same order, with spaces between the binary bytes.

What range of ASCII code values is accepted?

Each input must be a whole decimal number from 0 to 255. Standard ASCII is 0–127; values 128–255 are byte values beyond standard ASCII, but this converter still formats them as eight-bit binary.

What happens when I convert ASCII code 0?

Decimal code 0 becomes 00000000. It is the NUL control value, not a printable letter, but it is valid as a numeric byte.

What happens when I convert ASCII code 255?

Decimal 255 becomes 11111111. This is a byte value, not a standard ASCII character, because standard ASCII only defines values through 127.

Can I convert lowercase and uppercase letters?

Yes, by entering their respective decimal codes. Uppercase A is 65 and becomes 01000001; lowercase a is 97 and becomes 01100001. Letter case changes the code.

What does ASCII hex to binary mean?

It can mean converting an ASCII character code written in hexadecimal into bits. This tool expects decimal code values, not hexadecimal input. For example, hexadecimal 41 is decimal 65, which this converter accepts as 65 and outputs as 01000001.

What is the difference between ASCII to binary and text to binary?

This ASCII-to-binary page expects decimal character codes such as 65. A text-to-binary converter accepts characters such as A directly and looks up their code for you. Both can produce 01000001 for A.

What should I expect from a converter ASCII to binary search?

A converter ASCII to binary workflow changes decimal character-code values into binary bytes. On this page, enter codes such as 65 rather than typing the letter A itself.

Can I use ASCII to binary C or ASCII to binary C code?

Those phrases usually refer to implementing the conversion in the C programming language. The principle is to validate a code value and print its bits; this browser tool performs the conversion directly and does not compile or run C code.

Does this work as an ASCII to binary file converter?

No. This page converts decimal code numbers pasted into its input; it does not upload, read, or transform files. To process a file, use software that reads its bytes and identifies the text encoding.

What do “ASCII FBX to binary” and “ASCII FBX to binary FBX” mean?

FBX is a 3D scene and asset interchange format, not a character code. Converting ASCII FBX files to binary FBX is a file-format task and is different from converting decimal ASCII codes into binary bytes; this calculator does not convert FBX files.

Why does the converter reject my input?

Check that every item contains decimal digits only, is a whole number from 0 through 255, and is separated from the next item with a space or comma. The total input must not exceed 500 characters.

Can I convert negative numbers or decimal fractions?

No. ASCII byte codes are whole-number values, so negative numbers and fractions are not accepted. Enter an integer code from 0 to 255 for each byte.

Does this tool decode Unicode or UTF-8 characters?

No. It formats each supplied number as one eight-bit group; it does not encode Unicode text or assemble UTF-8 sequences. For non-ASCII text, use a text encoder that supports the intended character encoding.

Can I copy or clear the binary result?

Yes. Select Copy to clipboard after converting. Clear resets the input and result, and Ctrl+Enter in the input field runs the conversion.

Which related converters can help with number bases?

Use HEX to Decimal to read a hexadecimal number in base 10, Binary to Decimal for base 2 to base 10, Decimal to Binary for base 10 to base 2, and Decimal to HEX for base 10 to base 16.

Latest Posts

Browse practical guides and updates to help with PDF conversion, document editing, and everyday file workflows.

SEO Audit Explained: A Complete Website Health Check and Improvement Guide

SEO Audit Explained: A Complete Website Health Check and Improvement Guide

By M Seemab •

A website can have useful content, attractive design, and a growing collection of pages, yet still struggle to appear in search results. Sometimes the...

Read More →
How to Increase Website Traffic in 2026: SEO, GEO, AEO and Paid Growth Strategies

How to Increase Website Traffic in 2026: SEO, GEO, AEO and Paid Growth Strategies

By M Seemab •

Getting visitors to a website is important, but attracting the right visitors is what creates long-term value. A website may receive thousands of visi...

Read More →
Meta Tags: Complete Guide to SEO Meta Tags, Examples, Optimization, and Best Practices

Meta Tags: Complete Guide to SEO Meta Tags, Examples, Optimization, and Best Practices

By M Seemab •

Meta tags are an important part of technical SEO because they provide search engines and other platforms with information about individual web pages....

Read More →