Hex Encoder and DecoderText ↔ hex, UTF-8 safe
en

AppHelp

Convert text and hex in both directions

Encode UTF-8 text to hex bytes or decode a hex string back to readable text — everything runs locally.

48 65 6c 6c 6f 2c 20 41 70 70 48 65 6c 70 21

Quick answer

Hex encoding represents bytes with base-16 characters from 0-9 and a-f. This tool converts UTF-8 text into hexadecimal bytes and decodes hex strings back into readable text, including inputs with spaces, colons, dashes, or 0x prefixes.

How to use

  1. 1. Choose text to hex or hex to textEncode mode converts plain text into UTF-8 bytes. Decode mode converts hexadecimal byte pairs back into text.
  2. 2. Adjust output styleUse uppercase output or space-separated bytes when you need a format that matches code, logs, packet notes, or documentation.
  3. 3. Copy or swap the resultCopy the converted value, or swap it into the input field to test round-trip behavior.

Examples

Text to hex

Input
Hello
Output
48 65 6c 6c 6f

Hex to text

Input
e4 bd a0 e5 a5 bd
Output
你好

The decoder uses UTF-8, so non-ASCII text can round-trip correctly.

Decode prefixed bytes

Input
0x41 0x70 0x70
Output
App

Common use cases

  • Inspect byte values for strings used in protocols, hashes, or binary docs
  • Decode copied hex dumps during debugging
  • Create hex literals for code examples and test cases
  • Check whether non-ASCII text is being encoded as expected

Edge cases

  • Hex decode requires an even number of hexadecimal digits after separators are removed
  • 0x prefixes, spaces, colons, commas, and dashes are ignored before decoding
  • Hex is an encoding, not encryption; it does not protect sensitive data
  • Decoded bytes are interpreted as UTF-8 text, so arbitrary binary data may not display cleanly

Features

  • Encode UTF-8 text to hexadecimal
  • Decode hex strings back to text
  • Uppercase and space-separated output options
  • Runs entirely in the browser

Frequently asked questions

Is the conversion UTF-8 aware?
Yes. Text is encoded with UTF-8 before conversion, so non-ASCII characters round-trip correctly.
Can I paste hex with spaces or 0x prefixes?
Yes. Spaces, colons, dashes, and 0x prefixes are stripped before decoding.
Does it upload my input?
No. Everything runs locally in your browser.