Text to Hex, Binary & Decimal Converter

Convert text to hexadecimal, binary, decimal or octal bytes (UTF-8) and back. Choose separators like spaces, colons, 0x or \x. Great for debugging encodings.

Runs 100% in your browser. Nothing you paste is uploaded.

Text

—

Bytes

—

About the Text ↔ Hex / Binary

See exactly which bytes make up a string. Text is encoded as UTF-8, so you can spot invisible characters, byte-order marks, non-breaking spaces or mojibake. The reverse direction decodes hex dumps, binary strings and decimal byte lists back into text.

Features

  • Hex, binary, decimal and octal
  • UTF-8 encoding
  • Separators: space, none, colon, comma, 0x, \x
  • Parses unseparated hex and binary strings
  • Upper/lower-case hex

How to use it

  1. Choose a direction and number format.
  2. Type text or paste bytes.
  3. Copy the result.

Frequently asked questions

Why does “é” produce two bytes?

In UTF-8, characters outside ASCII take 2–4 bytes. “é” is c3 a9; an emoji takes 4 bytes.

Esc