Skip to content
LunaCalc

Other

ASCII Converter

Convert single-byte text, hexadecimal, binary, and decimal byte sequences.

Calculator

About this calculator

This byte-text converter moves between single-byte text and hexadecimal, binary, or decimal byte notation, including the defined Windows-1252 extension characters.

Formula notes

Each character maps to one byte from 0 through 255; a byte is printed as two hexadecimal digits, eight binary digits, or one decimal integer.

Worked examples

  1. Example: text A z becomes hexadecimal 41 20 7A, binary 01000001 00100000 01111010, and decimal 65 32 122.
  2. Decimal bytes 76, 117, 110, 97 become hexadecimal 4C 75 6E 61 and decode to the text Luna.

How to use it

  1. Choose the format of the input.
  2. Enter text or complete byte values.
  3. Choose an output separator and copy the needed representation.

Frequently asked questions

Does this encode arbitrary Unicode text?

No. It is deliberately limited to one-byte values and selected Windows-1252 characters, not UTF-8 byte sequences.

Why must binary groups contain eight bits?

The converter represents bytes, so every parsed binary value must contain exactly eight bits after separators are removed.

Limits and interpretation

  • The text path models single-byte Windows-1252-style characters, so code points outside that set are rejected and UTF-8 multibyte encoding is not performed.
  • Separators are formatting aids only; malformed, incomplete, signed, or out-of-range byte values are rejected instead of being silently truncated.