Skip to main content

Char To ASCII Converter

Convert individual characters to their ASCII and Unicode code point values in decimal, hexadecimal, octal, binary, and HTML entity formats simultaneously. Control characters, whitespace, and extended Unicode code points display with standard abbreviation labels so non-printable entries remain identifiable in the results table.

Runs entirely in your browser

This tool sends nothing over the network. Everything you enter is processed on your device and never reaches our servers.

Development
Data
Loading the tool
Reference

Documentation

Character-to-ASCII conversion maps text into the numeric code values computers use to represent it internally. Every character carries a Unicode code point, and for standard English letters, digits, and punctuation that code point falls within the ASCII range of 0 through 127. Extended characters beyond that range still convert, showing their full Unicode code point instead.

  • Every character in a string, including spaces, tabs, and line breaks, is processed and converted on its own, so the result reflects each character individually rather than the string as a whole.
  • Results appear as a compact summary alongside a full per-character breakdown, so a single value or the complete mapping is available depending on what is needed.
  • Available code formats are decimal (base 10), hexadecimal (base 16, prefixed with 0x), octal (base 8, prefixed with 0), binary (base 2), and HTML entity (ampersand-hash notation), and any combination of these can appear together.
  • A delimiter, space, comma, newline, or tab, controls how values in the summary are separated, which matters when the output is pasted into a spreadsheet, a code editor, or documentation that expects a specific format.
  • Non-printable characters such as space (SP), tab (HT), carriage return (CR), and line feed (LF) carry descriptive abbreviation labels, since their code values alone would not identify them in a results table.
  • The uppercase letter A is 65 in decimal, 0x41 in hexadecimal, 0101 in octal, and 1000001 in binary. Lowercase a is 97, 0x61, 0141, and 1100001 respectively. Digits 0 through 9 occupy codes 48 through 57, in sequence.
  • Settings and prior input persist in the browser between visits, so a repeated conversion workflow does not need reconfiguring each time.

Translating characters into their numeric code representations serves technical, educational, and creative workflows. The scenarios below cover common applications across multiple fields.

  • Programming and Debugging: Verify that a string contains expected byte values when working with binary protocols, serial communication, or low-level file formats. Check a suspicious character to confirm whether it is a standard ASCII space (32) or a non-breaking space (160).
  • Web Development: Look up HTML entity codes for special characters such as ampersands (&), angle brackets (< and >), and copyright symbols (©) to embed them safely in markup without triggering parsing errors.
  • Data Cleaning: Identify hidden control characters, zero-width joiners, or byte-order marks embedded in CSV files, database exports, or pasted text. Converting each character reveals invisible code points that cause import failures or display glitches.
  • Education: Teach how computers represent text internally by walking through the ASCII table letter by letter, observing that A through Z maps to 65 through 90 while a through z maps to 97 through 122, which reinforces the fixed offset between uppercase and lowercase.
  • Cryptography and Ciphers: Convert plaintext characters to their numeric equivalents as the first step in implementing substitution ciphers, XOR encryption, or frequency analysis exercises. Export the decimal values with a comma delimiter for direct use in cipher scripts.
  • Network Analysis: Inspect payload bytes captured from packet sniffers or log files by converting raw characters and cross-referencing their hexadecimal values against protocol specifications such as HTTP headers or SMTP commands.
  • Accessibility Testing: Confirm that special Unicode characters used in interface labels, icons, or emoji render at the expected code points across different browsers and operating systems.
  • Game Development: Map keyboard input to character codes when building custom key-binding systems or text-based adventure parsers that respond to specific ASCII values rather than named key events.
Inputs, outputs, and what the Char To ASCII Converter computes

What the Char To ASCII Converter asks for and what it returns, as a plain list. Defaults, units, and ranges are the ones the form loads with.

Inputs

  • Characters
  • Show Decimal · default: on
  • Show Hexadecimal · default: on
  • Show Octal · default: off
  • Show Binary · default: off
  • Show HTML Entity · default: off
  • Summary Delimiter · default: Space

Controls

Convert · Reset · Copy