Hex Encode / Decode

Hex Encode / Decode

Convert text to hexadecimal bytes, or hex back to UTF-8. Type or paste below — the result updates as you type.

Free
No signup
Instant
Private
Input
0 words • 0 characters • 0 without spaces • 0 lines
Mode
Output
0 words • 0 characters • 0 without spaces • 0 lines

Private by design

This conversion runs entirely in your browser. Your text is not sent to a server.

Tip

Hex is a byte dump, not encryption. Decode needs an even number of hex digits; 0x and spaces are allowed.

How to convert with Hex Encode / Decode

  1. Paste UTF-8 text or an even-length hex string.

  2. The result updates as you type — nothing is uploaded.

  3. Choose Text → Hex or Hex → Text on this page.

  4. Copy the result, or use it as the next input.

When should you use it?

  • Bytes

    See the exact UTF-8 bytes behind a string.

  • Debugging

    Compare a hex dump from logs or a protocol with readable text.

  • UTF-8

    Non-ASCII characters become multi-byte hex, then decode back.

  • Round-trip

    Encode, copy, switch to Hex → Text, and paste to verify.

Your text stays private.

Hex encoding and decoding run entirely in your browser. Bytes never leave this tab.

Learn more about privacy →

About hex bytes in the browser

Hex Encode / Decode dumps UTF-8 bytes as hexadecimal or restores text from an even-length hex string. 0x prefixes and spaces are allowed on decode. Odd-length hex is rejected. This is a byte dump, not encryption and not a hash — Hash Generator is the sibling when you need a digest.

Worked example: hi becomes 6869. International text uses UTF-8 code units, so é is C3 A9, not a single Latin-1 byte. Number Base Converter is for integers in binary/octal/decimal/hex, not UTF-8 strings.

Related: Base64 for ASCII transport, URL Encode for query values, HMAC Generator when a keyed hex digest is required. Nothing is uploaded. Convert to keeps input while you switch Text → Hex and Hex → Text.

Related encoding tools

Hex Encode / Decode examples

ASCII

Input
hello
Output
68656c6c6f

Brand name

Input
Toolora
Output
546f6f6c6f7261

Unicode

Input
café
Output
636166c3a9

Encode vs decode

ActionExampleTypical use
Text → Hex68656c6c6fInspect UTF-8 bytes as hexadecimal
Hex → TexthelloRestore text from an even-length hex string

Hex Encode / Decode FAQ

Choose Text → Hex in Hex Encode / Decode and paste UTF-8 text. The hex updates as you type. Use Hex → Text to decode an even-length hex string.