Cipher & Code Tools

Hex Text Converter

Convert plain text to spaced UTF-8 hex bytes—or decode hex dumps, 0x-prefixed strings, and continuous hex back to readable text.

Hex Text Converter

Encode UTF-8 bytes as hex or decode hex strings back to text.

Live

Examples

Conversion direction
Encoding
Spacing
Case
Options
Plain text or hex string
Hex or decoded text
Input: 0 chars Output: 0 chars Bytes: 0 Hex pairs: 0 Invalid groups: 0 Status: ready

Your text stays in your browser — nothing is uploaded.

How to Use

  1. Choose Text to Hex or Hex to Text, then pick UTF-8 or ASCII encoding mode.
  2. Set spacing, uppercase/lowercase output, and optional 0x prefix.
  3. Paste plain text or hex like 48 65 6C 6C 6F or continuous 48656c6c6f.
  4. Use Swap ↔ to verify round-trip conversion, then copy or download the result.

Example

Text

Hello

Hex bytes (UTF-8)

48 65 6C 6C 6F

Before and After Examples

Hex Reference

Each UTF-8 byte appears as two hexadecimal digits. ASCII characters use one byte each.

Uppercase A–C

    A → 41 B → 42 C → 43

Lowercase a–b

    a → 61 b → 62

Digits & space

    0 → 30 1 → 31 Space → 20

Hex Examples

What This Tool Does

Hex Text Converter encodes each UTF-8 byte as two hexadecimal digits and decodes spaced, continuous, or 0x-prefixed hex back into readable text. Live validation flags non-hex characters, odd-length strings, and invalid byte groups.

ASCII vs UTF-8 in Hex

How Text Becomes Hex

Common Uses

Popular Workflows

Notes & Limitations

All conversion runs locally in your browser. ASCII mode skips characters above code point 127. This tool converts text bytes—it does not parse color pickers or image files.

Frequently Asked Questions

Are spaces required between hex bytes?

No. Spaced output like 48 69 is easier to read, but continuous strings like 48656c6c6f also decode correctly.

Can I decode continuous hex?

Yes. Paste a continuous hex string with no spaces—the tool splits it into byte pairs automatically.

What is 0x hex format?

0x is a common prefix marking hexadecimal values, as in 0x48 0x69. Enable the 0x prefix option to encode or decode this format.

Uppercase or lowercase hex?

Both decode correctly. Use the case toggle to choose uppercase (6C) or lowercase (6c) output when encoding.

What is ASCII?

ASCII maps English letters, digits, and common symbols to numbers 0–127, each stored in one byte.

What is UTF-8?

UTF-8 encodes Unicode characters as one or more bytes. ASCII characters still use one byte; emoji and accented letters use more.

Why does é become C3 A9?

The letter é has a Unicode code point beyond ASCII. UTF-8 represents it as two bytes: C3 and A9.

Why do emoji create many bytes?

Emoji code points are large numbers. UTF-8 stores them as multiple bytes, so one emoji may produce four or more hex pairs.

What happens with invalid hex?

Characters outside 0–9 and A–F trigger a friendly error. Odd-length hex strings show a warning when validation is enabled.

Can I decode hex back to text?

Yes. Select Hex to Text, paste your hex, and the decoded UTF-8 string appears instantly. Use Swap ↔ to reverse direction.

Is my text uploaded?

No. All encoding and decoding runs locally in your browser—nothing is sent to a server.

Can I download the result?

Yes. Click Download .txt to save the output panel contents as a plain-text file.