Text ⇄ ASCII / Binary / Hex Converter

Encoding Client-side ascii binary hex hexadecimal text converter encode decode

This tool runs entirely client-side, in your browser: your data is never sent anywhere.

What it does

Converts plain text into its ASCII decimal codes, binary representation, or hexadecimal representation — and back again. Handy for debugging encodings, understanding how characters are stored, crafting payloads, or just satisfying curiosity about what's "under the hood" of a string of text.

Everything runs entirely in your browser — nothing you type is ever sent anywhere.

Try it

How it works

  1. Text → Format: each character in the input text is read as a Unicode code point (via charCodeAt), then rendered as:
  1. Format → Text: the reverse — the tool splits the input on whitespace, parses each chunk according to the selected format (base 2, base 16, or base 10), and converts each resulting number back into a character with String.fromCharCode.
  2. Extended characters (code point > 127, i.e. non-ASCII/Unicode) are still supported for binary/hex/decimal conversion, even though strictly "ASCII" only covers 0–127 — this makes the tool usable for basic Unicode text too, not just strict 7-bit ASCII.

Examples

TextBinaryHexASCII (decimal)
A010000014165
Hi01001000 0110100148 6972 105
!001000012133

Notes