blackdroid.dev

Text to Hex Converter

Convert text to hexadecimal and back online for free. UTF-8 byte output, handles any character, no upload needed.

About Text to Hex Converter

Convert text to its hexadecimal byte representation or decode a hex string back to readable text.

Output uses UTF-8 bytes, so multi-byte characters work as expected. Everything runs locally in your browser.

Text-to-hex exposes the bytes: each character becomes its byte value in hexadecimal. ASCII is one byte per character — 'A' is 41, 'a' is 61 — but the moment Unicode enters, UTF-8 multi-byte encoding takes over: 'é' is C3 A9, emoji run four bytes. The hex view is the truth of how text is actually stored.

The debugging applications are constant: invisible characters (zero-width spaces, BOM) become visible in hex when they are invisible in editors, encoding mismatches reveal themselves (UTF-8 bytes interpreted as Latin-1 is the mojibake signature), and binary protocol debugging starts with knowing exactly which bytes your string produces.

How to use Text to Hex Converter

  1. Type or paste text into the Text field — the Hex pane shows the two-digit hex code for every byte.
  2. Or paste hex digits (spaces optional) into the Hex field — the decoded text appears instantly.
  3. Copy either side with the copy button; the input is saved locally.

Frequently asked questions

How do I convert text to hexadecimal?

Type into the left field — each character is shown as its UTF-8 hex bytes (e.g. 'A' becomes 41). Paste hex back on the right to decode.

What format should hex input be?

Pairs of hex digits per byte, with or without spaces — '48 65 6c' and '48656c' both decode to 'Hel'.

Does this handle non-ASCII text?

Yes — characters are encoded as UTF-8 first, so accented letters and emoji produce correct multi-byte hex.

Why does é produce two hex bytes?

UTF-8 encodes non-ASCII characters as multi-byte sequences — é is C3 A9. If you expected E9, that is Latin-1 thinking; UTF-8's multi-byte scheme is what lets one encoding cover all of Unicode.

How do I spot invisible characters?

Convert to hex — zero-width spaces (E2 80 8B), BOMs (EF BB BF) and non-breaking spaces (C2 A0) all become visible as byte values. Classic cause of 'two identical strings that do not compare equal'.