ASCII Code Converter

Convert between characters and ASCII codes (decimal/hex/binary).

Category: Converters

When to use?

Use it to find a character's ASCII code, or to find which character an ASCII code number is. Useful for learning programming and data handling.

How to use

  • Enter a character to see its decimal/hex/binary ASCII code.
  • Or enter an ASCII code number to see the character.

Input Explanation

Enter an English letter, number, or symbol to check its ASCII value, or a decimal/hex number.

Calculation Basis

It calls charCodeAt() on the first character for the decimal ASCII code, then converts it to hex and binary with toString(16) and toString(2), shown together.

Usage Examples

  • Check a character code - Check a character's ASCII code in decimal and hex.
  • Convert codes - Enter an ASCII code number to see the character.
  • Check control characters - Check the ASCII code of characters like newline or tab.

Examples

  • "A" → 65 (decimal), 0x41 (hex), 01000001 (binary)
  • "a" → 97 (decimal)

Cautions

  • Malformed source data can cause parsing errors or broken output.
  • A mismatched encoding standard or complex nested data may break or drop the structure.

Guides

What ASCII code is

ASCII assigns numbers 0–127 to letters, numbers, and symbols. For example, uppercase A is 65, lowercase a is 97, and space is 32.

Encoding conversion

Use it to turn text into ASCII code numbers or back. Characters above 128 are beyond ASCII and need Unicode or an extended encoding.

FAQ

How many ASCII codes are there?

ASCII defines 128 characters (0–127). Extended ASCII adds 128–255.

Can it convert non-ASCII text?

Characters beyond ASCII range are shown as Unicode code points.

What is ASCII?

A US-standard encoding representing letters, numbers, and symbols as 7-bit numbers.

Can I see binary and hex too?

Yes. It shows hex and binary alongside decimal.

Related Tools

  • Unicode Converter - Convert a character to its Unicode code point (U+XXXX), or a code point to a character.
  • Number Base Converter - Convert between binary, octal, decimal, and hexadecimal.
  • Caesar Cipher - Encrypt and decrypt text with a Caesar cipher that shifts letters by a set amount.
  • URL Encode / Decode - Encode text into URL-safe form (%XX) or decode an encoded URL back to text.
  • Base64 Converter - Encode text to Base64 or decode a Base64 string back to text.
  • HTML Escape / Unescape - Convert HTML special characters to entities, and restore entity strings back to characters.