Hex Converter

Convert text to hexadecimal (UTF-8 bytes) and decode hex strings back to text. Supports delimiters, 0x prefix, and uppercase or lowercase hex.

Convert Text to Hex

Text is encoded as UTF-8; each byte is converted to two hexadecimal digits. Use options to add a prefix or change case.

Characters: 0 Bytes (UTF-8): 0

Encoding Options

Convert Hex to Text

Paste a hex string (with or without spaces, commas, 0x prefixes). Bytes are decoded as UTF-8.

Ready to decode

Decoding Options

About Hex Converter

Private by Design

All conversion runs in your browser. Nothing is sent to any server.

Text ↔ Hex

Encode text to hex (UTF-8 bytes) and decode hex back to text with one click.

Developer Friendly

Optional 0x prefix, uppercase/lowercase, and flexible delimiters for code and logs.

UTF-8 Support

Full Unicode: every character is encoded as UTF-8 bytes then converted to hex.

Hex Converter FAQ

What is hexadecimal?

Hexadecimal (base 16) uses digits 0–9 and A–F. Each byte is two hex digits (e.g. 255 = FF). It's common in programming, color codes, and binary data.

How is text converted to hex?

Text is encoded as UTF-8 bytes; each byte (0–255) is written as two hex digits. For example, "Hi" becomes 48 69.

Can I decode hex with 0x or spaces?

Yes. The decoder ignores spaces, commas, and 0x prefixes and reads only hex digit pairs.

Is there an odd number of hex digits?

Valid input must have an even number of hex digits (pairs). A leading zero is assumed if you have an odd count (e.g. "414" → 04 14).