Hex Encoder/Decoder

Convert UTF-8 text and hexadecimal bytes locally.

Text

Enter UTF-8 text to encode locally.

Hexadecimal bytesRead-only

Conversion output appears here.

Read-only output remains selectable and can be copied manually.

Options

Decode expects exactly the selected separator and prefix. Compact input has no whitespace and needs two hexadecimal digits per byte.

Your text stays in your browser.

Nothing you enter is uploaded or automatically saved. Conversion, copying, and downloads happen only in your browser.

Statistics

Input: 0 characters · 0 lines

Output: 0 characters · 0 lines

UTF-8 bytes: 0

Hex byte count: 0 · Expansion ratio:

What this hexadecimal tool represents

Hexadecimal represents each byte with two digits, from 00 through FF. This tool encodes UTF-8 bytes: A is 41, é is C3 A9, and 🚀 is F0 9F 9A 80.

UTF-8 bytes are not Unicode code points

Unicode code points describe characters, while UTF-8 describes the bytes used to store text. For example, é is U+00E9 as a code point but its UTF-8 bytes are C3 A9. Use Unicode Converter when you need U+ code points or escapes.

How to use

  1. Choose Text → Hex or Hex → Text.
  2. Select the separator, optional 0x prefix, and output case.
  3. Enter text or exact selected-format bytes; results update locally.
  4. Copy, download, or move the result into the opposite direction.

Privacy

Conversion happens entirely in your browser. No text is sent to a server, placed in URLs, logged, or automatically stored.

Frequently asked questions

Why does an emoji use multiple hex bytes?

UTF-8 uses one to four bytes per Unicode code point. Emoji commonly need four bytes.

Why is é C3 A9 rather than E9?

C3 A9 is the UTF-8 byte sequence for é. E9 is its Unicode code point value, not its UTF-8 encoding.

What is the difference between this and Unicode Converter?

This tool works with UTF-8 bytes. Unicode Converter represents code points and Unicode escape formats.

What does 0x mean?

0x is a conventional prefix that indicates the following digits are hexadecimal. It does not change the byte value.

Why must compact hex have even length?

Each byte has exactly two hexadecimal digits, so a compact sequence must have a multiple of two digits.

Why can valid hex still fail UTF-8 decoding?

Hex digits can describe any bytes, but not every byte sequence is valid UTF-8 text. Invalid UTF-8 is reported clearly.

Practical guide

When to use it

Use it when debugging byte-oriented data, documenting a UTF-8 payload, or converting a known hexadecimal text representation.

Three steps

  1. Choose text-to-hex or hex-to-text.
  2. Set the separator, prefix, and letter case you need.
  3. Convert and check that the byte format matches the target system.

Example and a common mistake

The UTF-8 text "Hi" is 48 69 in hexadecimal bytes.

Hex pairs represent bytes, so a character such as é may require more than one pair in UTF-8.

Encoding

Available

Unicode Converter

Convert Unicode characters, escapes, and code points.

Encoding

Available

ASCII Converter

Translate text between ASCII characters and numeric codes.