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

Text to hex

Plain text

Hi

Hex

48 69

Hex to text

Hex

41

Plain text

A

Continuous hex decode

Hex

48656c6c6f

Plain text

Hello

0x prefix decode

Hex

0x48 0x69

Plain text

Hi

Unicode example

Plain text

café

Hex (UTF-8)

63 61 66 C3 A9

Invalid hex warning

Input

48 G9

Result

Error — G is not a hex digit

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

Hi

48 69

Hello

48 65 6C 6C 6F

A

41

Space

20

123

31 32 33

café

63 61 66 C3 A9

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

ASCII bytes

Basic English letters, digits, and symbols use one byte each—A is 41, space is 20.

UTF-8 compatibility

UTF-8 uses the same single-byte hex values for ASCII characters.

Accented letters

Non-ASCII characters use multiple bytes. The letter é in UTF-8 is C3 A9, not one byte.

Emoji expansion

Emoji often produce four or more hex byte pairs because their Unicode code points need multiple UTF-8 bytes.

How Text Becomes Hex

Character

Each character is encoded as one or more bytes using UTF-8 rules.

Byte

One byte is shown as two hex digits—values from 00 to FF.

UTF-8

Non-English characters may expand to multiple byte pairs in the output.

Spaces

A space character encodes as 20—just like any other byte.

Emoji

Emoji usually produce multiple hex byte pairs because UTF-8 stores them as several bytes.

Common Uses

Computer science lessons

Debugging byte data

CTF puzzles

API payload inspection

Color code learning

Firmware/log dumps

UTF-8 learning

Classroom activities

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.